def _get_max_day(self, is_leap_year: bool, month: str) -> int:
        """
        Returns the maximum day for the current month
        """
        if month in ["D", "H", "P", "S"]:
            max_day = 30
        elif month == "B":
            max_day = 29 if is_leap_year else 28
        else:
            max_day = 31
        return max_day

        Returns the maximum day for the current month
        
faker/providers/ssn/it_IT/__init__.py