diff --git a/.flake8 b/.flake8 index 3b99b8818..cb6908cf9 100644 --- a/.flake8 +++ b/.flake8 @@ -3,7 +3,7 @@ # F821: Typeshed is a testing ground for flake8-pyi, which monkeypatches F821 select = Y, F821 # Ignore rules normally excluded by default -extend-ignore = Y090 +extend-ignore = Y090,Y091 per-file-ignores = # Generated protobuf files: # Y021: Include docstrings diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bf2fbc3f7..133c3c6fc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -36,7 +36,7 @@ repos: - id: flake8 language: python additional_dependencies: - - "flake8-pyi==24.9.0" + - "flake8-pyi==25.5.0" types: [file] types_or: [python, pyi] - repo: meta diff --git a/stubs/docutils/docutils/utils/math/math2html.pyi b/stubs/docutils/docutils/utils/math/math2html.pyi index 38fe09051..2c4eaffd1 100644 --- a/stubs/docutils/docutils/utils/math/math2html.pyi +++ b/stubs/docutils/docutils/utils/math/math2html.pyi @@ -180,7 +180,7 @@ class Globable: def globincluding(self, magicchar): ... def globexcluding(self, excluded): ... def pushending(self, ending, optional: bool = False) -> None: ... - def popending(self, expected: Incomplete | None = None): ... + def popending(self, expected=None): ... def nextending(self): ... class EndingList: