Bump flake8-pyi test dependency to 23.3.1 (#9906)

This commit is contained in:
Alex Waygood
2023-03-20 18:19:01 +00:00
committed by GitHub
parent 8080e491d2
commit f3fc792620
4 changed files with 7 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ per-file-ignores =
# F811 redefinition of unused '...'
stdlib/typing.pyi: B, E701, E741, F401, F403, F405, F811, F822
# Generated protobuf files include docstrings
*_pb2.pyi: B, E701, E741, F401, F403, F405, F822, Y021, Y026
*_pb2.pyi: B, E701, E741, F401, F403, F405, F822, Y021, Y026, Y053, Y054
exclude = .venv*,.git
noqa_require_code = true

View File

@@ -34,7 +34,7 @@ repos:
additional_dependencies:
- "flake8-bugbear==23.3.12" # must match requirements-tests.txt
- "flake8-noqa==1.3.1" # must match requirements-tests.txt
- "flake8-pyi==23.3.0" # must match requirements-tests.txt
- "flake8-pyi==23.3.1" # must match requirements-tests.txt
types: [file]
types_or: [python, pyi]

View File

@@ -3,7 +3,7 @@ black==23.1.0 # must match .pre-commit-confi
flake8==6.0.0; python_version >= "3.8" # must match .pre-commit-config.yaml
flake8-bugbear==23.3.12; python_version >= "3.8" # must match .pre-commit-config.yaml
flake8-noqa==1.3.1; python_version >= "3.8" # must match .pre-commit-config.yaml
flake8-pyi==23.3.0; python_version >= "3.8" # must match .pre-commit-config.yaml
flake8-pyi==23.3.1; python_version >= "3.8" # must match .pre-commit-config.yaml
isort==5.12.0; python_version >= "3.8" # must match .pre-commit-config.yaml
mypy==1.1.1
packaging==23.0

View File

@@ -54,7 +54,10 @@ if sys.platform == "win32":
HIGH_PRIORITY_CLASS: Literal[0x80]
INFINITE: Literal[0xFFFFFFFF]
if sys.version_info >= (3, 8):
INVALID_HANDLE_VALUE: Literal[0xFFFFFFFFFFFFFFFF]
# Ignore the flake8 error -- flake8-pyi assumes
# most numbers this long will be implementation details,
# but here we can see that it's a power of 2
INVALID_HANDLE_VALUE: Literal[0xFFFFFFFFFFFFFFFF] # noqa: Y054
IDLE_PRIORITY_CLASS: Literal[0x40]
NORMAL_PRIORITY_CLASS: Literal[0x20]
REALTIME_PRIORITY_CLASS: Literal[0x100]