Skip to content

Commit

Permalink
style: Format code.
Browse files Browse the repository at this point in the history
  • Loading branch information
EltonChou committed Jul 1, 2024
1 parent 522ce71 commit 4ea8a30
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ repos:
- id: mypy

- repo: https://github.com/psf/black
rev: "22.8.0"
rev: "24.4.2"
hooks:
- id: black
12 changes: 4 additions & 8 deletions EorzeaEnv/eorzea_weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ def forecast(
lang: Lang = EorzeaLang.EN,
strict: bool = True,
raw: Literal[False] = False,
) -> str:
...
) -> str: ...

@overload
@classmethod
Expand All @@ -52,8 +51,7 @@ def forecast(
lang: Lang = EorzeaLang.EN,
strict: bool = True,
raw: Literal[True],
) -> int:
...
) -> int: ...

@overload
@classmethod
Expand All @@ -65,8 +63,7 @@ def forecast(
lang: Lang = EorzeaLang.EN,
strict: bool = True,
raw: Literal[False] = False,
) -> List[str]:
...
) -> List[str]: ...

@overload
@classmethod
Expand All @@ -78,8 +75,7 @@ def forecast(
lang: Lang = EorzeaLang.EN,
strict: bool = True,
raw: Literal[True],
) -> List[int]:
...
) -> List[int]: ...

@classmethod
def forecast(
Expand Down
6 changes: 2 additions & 4 deletions EorzeaEnv/errors.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
class EorzeaEnvError(Exception):
...
class EorzeaEnvError(Exception): ...


class InvalidEorzeaPlaceName(EorzeaEnvError, ValueError):
Expand All @@ -9,5 +8,4 @@ def __init__(self, *, place_name: str, is_strict: bool) -> None:
super().__init__(message)


class WeatherRateDataError(EorzeaEnvError):
...
class WeatherRateDataError(EorzeaEnvError): ...

0 comments on commit 4ea8a30

Please sign in to comment.