diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d57cd56a..4f15f438 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -48,7 +48,7 @@ repos: - hooks: - id: black repo: https://github.com/psf/black - rev: 23.10.1 + rev: 24.1.1 - hooks: - id: blacken-docs args: [-l80] @@ -57,7 +57,7 @@ repos: - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks - rev: v2.11.0 + rev: v2.12.0 hooks: - id: pretty-format-yaml args: [--autofix, --indent, '2'] @@ -70,7 +70,7 @@ repos: stages: - commit-msg repo: https://github.com/commitizen-tools/commitizen - rev: v3.12.0 + rev: v3.14.1 - repo: https://github.com/PyCQA/docformatter diff --git a/inline_snapshot/_inline_snapshot.py b/inline_snapshot/_inline_snapshot.py index fdc71a0a..a1f09fdd 100644 --- a/inline_snapshot/_inline_snapshot.py +++ b/inline_snapshot/_inline_snapshot.py @@ -383,13 +383,11 @@ def repr_wrapper(func: _T) -> _T: @overload -def snapshot() -> Any: - ... +def snapshot() -> Any: ... @overload -def snapshot(obj: T) -> T: - ... +def snapshot(obj: T) -> T: ... @repr_wrapper