From 4ea8a309848631b42f95122003ca5870dbf7034b Mon Sep 17 00:00:00 2001 From: Elton Chou Date: Tue, 2 Jul 2024 00:34:18 +0800 Subject: [PATCH] style: Format code. --- .pre-commit-config.yaml | 2 +- EorzeaEnv/eorzea_weather.py | 12 ++++-------- EorzeaEnv/errors.py | 6 ++---- 3 files changed, 7 insertions(+), 13 deletions(-) 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): ...