Skip to content
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

Upgrade mypy to 0.990 #9123

Merged
merged 6 commits into from
Nov 7, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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 requirements-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ flake8-bugbear==22.10.27 # must match .pre-commit-config.yaml
flake8-noqa==1.2.9 # must match .pre-commit-config.yaml
flake8-pyi==22.10.0 # must match .pre-commit-config.yaml
isort==5.10.1 # must match .pre-commit-config.yaml
mypy==0.982
mypy==0.990
packaging==21.3
pathspec
pycln==2.1.1 # must match .pre-commit-config.yaml
Expand Down
1 change: 1 addition & 0 deletions stdlib/importlib/abc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ if sys.version_info >= (3, 9):
self, mode: str, buffering: int = ..., encoding: str | None = ..., errors: str | None = ..., newline: str | None = ...
) -> IO[Any]: ...
@property
@abstractmethod
def name(self) -> str: ...
@abstractmethod
def __truediv__(self, child: str) -> Traversable: ...
Expand Down
11 changes: 11 additions & 0 deletions tests/stubtest_allowlists/py3_common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,17 @@ types.WrapperDescriptorType.__get__
typing.[A-Z]\w+
typing_extensions\..*

# These are abstract properties at runtime,
# but marking them as such in the stub breaks half the the typed-Python ecosystem
typing.IO.closed
typing.IO.mode
typing.IO.name
typing.TextIO.buffer
typing.TextIO.encoding
typing.TextIO.errors
typing.TextIO.line_buffering
typing.TextIO.newlines

# Typing-related weirdness
_collections_abc.Callable
_typeshed.* # Utility types for typeshed, doesn't exist at runtime
Expand Down