Skip to content

Bump flake8-pyi and pytype test dependencies #8656

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repos:
additional_dependencies:
- 'flake8-bugbear==22.7.1' # must match requirements-tests.txt
- 'flake8-noqa==1.2.9' # must match requirements-tests.txt
- 'flake8-pyi==22.8.1' # must match requirements-tests.txt
- 'flake8-pyi==22.8.2' # must match requirements-tests.txt

ci:
autofix_commit_msg: '[pre-commit.ci] auto fixes from pre-commit.com hooks'
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ extra_standard_library = [
"_collections_abc",
"_compression",
"_csv",
"_ctypes",
"_curses",
"_heapq",
"_markupbase",
Expand Down
4 changes: 2 additions & 2 deletions requirements-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ black==22.6.0 # must match .pre-commit-config.yaml
flake8==5.0.4 # must match .pre-commit-config.yaml
flake8-bugbear==22.7.1 # must match .pre-commit-config.yaml
flake8-noqa==1.2.9 # must match .pre-commit-config.yaml
flake8-pyi==22.8.1 # must match .pre-commit-config.yaml
flake8-pyi==22.8.2 # must match .pre-commit-config.yaml
isort==5.10.1 # must match .pre-commit-config.yaml
mypy==0.971
packaging==21.3
pycln==2.1.1 # must match .pre-commit-config.yaml
pyyaml==6.0
pytype==2022.8.23; platform_system != "Windows"
pytype==2022.08.30; platform_system != "Windows"
termcolor
tomli==1.2.2
tomlkit==0.11.4
Expand Down
5 changes: 1 addition & 4 deletions stdlib/ctypes/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import sys
from _ctypes import RTLD_GLOBAL as RTLD_GLOBAL, RTLD_LOCAL as RTLD_LOCAL
from _typeshed import ReadableBuffer, Self, WriteableBuffer
from abc import abstractmethod
from collections.abc import Callable, Iterable, Iterator, Mapping, Sequence
from typing import Any, ClassVar, Generic, TypeVar, Union as _UnionT, overload
from typing_extensions import TypeAlias

# TODO: import these from _ctypes once it no longer breaks pytype
RTLD_GLOBAL: int
RTLD_LOCAL: int

if sys.version_info >= (3, 9):
from types import GenericAlias

Expand Down