diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ba7b2cc..829497e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,11 +14,11 @@ repos: args: ["--application-directories", "src:tests"] additional_dependencies: ["setuptools>60.9"] - repo: https://github.com/psf/black - rev: 23.11.0 + rev: 24.1.1 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 additional_dependencies: [flake8-bugbear] diff --git a/src/itsdangerous/timed.py b/src/itsdangerous/timed.py index cad8da3..e4d88cd 100644 --- a/src/itsdangerous/timed.py +++ b/src/itsdangerous/timed.py @@ -63,8 +63,7 @@ def unsign( # type: ignore signed_value: _t_str_bytes, max_age: _t_opt_int = None, return_timestamp: "_te.Literal[False]" = False, - ) -> bytes: - ... + ) -> bytes: ... @typing.overload def unsign( @@ -72,8 +71,7 @@ def unsign( signed_value: _t_str_bytes, max_age: _t_opt_int = None, return_timestamp: "_te.Literal[True]" = True, - ) -> _t.Tuple[bytes, datetime]: - ... + ) -> _t.Tuple[bytes, datetime]: ... def unsign( self, diff --git a/tests/test_itsdangerous/test_serializer.py b/tests/test_itsdangerous/test_serializer.py index cdc4191..2837121 100644 --- a/tests/test_itsdangerous/test_serializer.py +++ b/tests/test_itsdangerous/test_serializer.py @@ -18,13 +18,11 @@ @overload -def coerce_str(ref: str, s: str) -> str: - ... +def coerce_str(ref: str, s: str) -> str: ... @overload -def coerce_str(ref: bytes, s: str) -> bytes: - ... +def coerce_str(ref: bytes, s: str) -> bytes: ... def coerce_str(ref: Union[str, bytes], s: str) -> Union[str, bytes]: