diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 59bd490987d6..050f01b063cf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ repos: - id: trailing-whitespace - id: end-of-file-fixer - repo: https://github.com/psf/black-pre-commit-mirror - rev: 24.10.0 + rev: 25.1.0 hooks: - id: black exclude: '^(test-data/)' diff --git a/mypy/test/testinfer.py b/mypy/test/testinfer.py index 107c4d8dc98a..9c18624e0283 100644 --- a/mypy/test/testinfer.py +++ b/mypy/test/testinfer.py @@ -134,7 +134,7 @@ def expand_caller_kinds( def expand_callee_kinds( - kinds_and_names: list[ArgKind | tuple[ArgKind, str]] + kinds_and_names: list[ArgKind | tuple[ArgKind, str]], ) -> tuple[list[ArgKind], list[str | None]]: kinds = [] names: list[str | None] = [] diff --git a/mypy/types.py b/mypy/types.py index f3745695889f..1e85cd62cd82 100644 --- a/mypy/types.py +++ b/mypy/types.py @@ -3205,12 +3205,12 @@ def get_proper_types(types: list[Type] | tuple[Type, ...]) -> list[ProperType]: @overload def get_proper_types( - types: list[Type | None] | tuple[Type | None, ...] + types: list[Type | None] | tuple[Type | None, ...], ) -> list[ProperType | None]: ... def get_proper_types( - types: list[Type] | list[Type | None] | tuple[Type | None, ...] + types: list[Type] | list[Type | None] | tuple[Type | None, ...], ) -> list[ProperType] | list[ProperType | None]: if isinstance(types, list): typelist = types