diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bf1666c..e7c1878 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: hooks: - id: add-trailing-comma - repo: https://github.com/asottile/pyupgrade - rev: v3.16.0 + rev: v3.17.0 hooks: - id: pyupgrade args: [--py38-plus] diff --git a/astpretty.py b/astpretty.py index 48e1569..cf52e69 100644 --- a/astpretty.py +++ b/astpretty.py @@ -77,7 +77,7 @@ class state: indent = _indent @contextlib.contextmanager - def indented() -> Generator[None, None, None]: + def indented() -> Generator[None]: state.indent += 1 yield state.indent -= 1