mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Bump various test dependencies (#10378)
This commit is contained in:
@@ -31,9 +31,9 @@ repos:
|
||||
hooks:
|
||||
- id: flake8
|
||||
additional_dependencies:
|
||||
- "flake8-bugbear==23.5.9" # must match requirements-tests.txt
|
||||
- "flake8-noqa==1.3.1" # must match requirements-tests.txt
|
||||
- "flake8-pyi==23.5.0" # must match requirements-tests.txt
|
||||
- "flake8-bugbear==23.6.5" # must match requirements-tests.txt
|
||||
- "flake8-noqa==1.3.2" # must match requirements-tests.txt
|
||||
- "flake8-pyi==23.6.0" # must match requirements-tests.txt
|
||||
types: [file]
|
||||
types_or: [python, pyi]
|
||||
|
||||
|
||||
@@ -62,4 +62,4 @@ all = true
|
||||
disable_all_dunder_policy = true
|
||||
|
||||
[tool.typeshed]
|
||||
pyright_version = "1.1.315"
|
||||
pyright_version = "1.1.316"
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
# "tool.typeshed" section in pyproject.toml for additional type checkers.
|
||||
black==23.3.0 # must match .pre-commit-config.yaml
|
||||
flake8==6.0.0; python_version >= "3.8" # must match .pre-commit-config.yaml
|
||||
flake8-bugbear==23.5.9; 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.5.0; python_version >= "3.8" # must match .pre-commit-config.yaml
|
||||
flake8-bugbear==23.6.5; python_version >= "3.8" # must match .pre-commit-config.yaml
|
||||
flake8-noqa==1.3.2; python_version >= "3.8" # must match .pre-commit-config.yaml
|
||||
flake8-pyi==23.6.0; 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.4.1
|
||||
pre-commit-hooks==4.4.0 # must match .pre-commit-config.yaml
|
||||
pycln==2.1.5 # must match .pre-commit-config.yaml
|
||||
pytype==2023.6.2; platform_system != "Windows" and python_version < "3.11"
|
||||
pytype==2023.6.16; platform_system != "Windows" and python_version < "3.11"
|
||||
|
||||
# Libraries used by our various scripts.
|
||||
aiohttp==3.8.4; python_version < "3.12" # aiohttp can't be installed on 3.12 yet
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import sys
|
||||
from abc import abstractmethod
|
||||
from types import MappingProxyType
|
||||
from typing import ( # noqa: Y022,Y038
|
||||
from typing import ( # noqa: Y022,Y038,Y057
|
||||
AbstractSet as Set,
|
||||
AsyncGenerator as AsyncGenerator,
|
||||
AsyncIterable as AsyncIterable,
|
||||
|
||||
@@ -36,8 +36,8 @@ _T = TypeVar("_T")
|
||||
|
||||
# Aliases imported by multiple submodules in typeshed
|
||||
if sys.version_info >= (3, 12):
|
||||
_AwaitableLike: TypeAlias = Awaitable[_T]
|
||||
_CoroutineLike: TypeAlias = Coroutine[Any, Any, _T]
|
||||
_AwaitableLike: TypeAlias = Awaitable[_T] # noqa: Y047
|
||||
_CoroutineLike: TypeAlias = Coroutine[Any, Any, _T] # noqa: Y047
|
||||
else:
|
||||
_AwaitableLike: TypeAlias = Generator[Any, None, _T] | Awaitable[_T]
|
||||
_CoroutineLike: TypeAlias = Generator[Any, None, _T] | Coroutine[Any, Any, _T]
|
||||
|
||||
Reference in New Issue
Block a user