mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 03:11:16 +08:00
Bump flake8-pyi and pytype test dependencies (#8656)
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -20,6 +20,7 @@ extra_standard_library = [
|
||||
"_collections_abc",
|
||||
"_compression",
|
||||
"_csv",
|
||||
"_ctypes",
|
||||
"_curses",
|
||||
"_heapq",
|
||||
"_markupbase",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user