diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 70f4492..49ae72a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,6 +12,6 @@ repos: - id: mypy - repo: https://github.com/psf/black - rev: "22.8.0" + rev: "24.4.2" hooks: - id: black diff --git a/EorzeaEnv/eorzea_weather.py b/EorzeaEnv/eorzea_weather.py index bfe3da1..0b4ee21 100644 --- a/EorzeaEnv/eorzea_weather.py +++ b/EorzeaEnv/eorzea_weather.py @@ -39,8 +39,7 @@ def forecast( lang: Lang = EorzeaLang.EN, strict: bool = True, raw: Literal[False] = False, - ) -> str: - ... + ) -> str: ... @overload @classmethod @@ -52,8 +51,7 @@ def forecast( lang: Lang = EorzeaLang.EN, strict: bool = True, raw: Literal[True], - ) -> int: - ... + ) -> int: ... @overload @classmethod @@ -65,8 +63,7 @@ def forecast( lang: Lang = EorzeaLang.EN, strict: bool = True, raw: Literal[False] = False, - ) -> List[str]: - ... + ) -> List[str]: ... @overload @classmethod @@ -78,8 +75,7 @@ def forecast( lang: Lang = EorzeaLang.EN, strict: bool = True, raw: Literal[True], - ) -> List[int]: - ... + ) -> List[int]: ... @classmethod def forecast( diff --git a/EorzeaEnv/errors.py b/EorzeaEnv/errors.py index 74ee9af..ef89d7d 100644 --- a/EorzeaEnv/errors.py +++ b/EorzeaEnv/errors.py @@ -1,5 +1,4 @@ -class EorzeaEnvError(Exception): - ... +class EorzeaEnvError(Exception): ... class InvalidEorzeaPlaceName(EorzeaEnvError, ValueError): @@ -9,5 +8,4 @@ def __init__(self, *, place_name: str, is_strict: bool) -> None: super().__init__(message) -class WeatherRateDataError(EorzeaEnvError): - ... +class WeatherRateDataError(EorzeaEnvError): ...