Skip to content

Add error code to typing_extensions suggestion#14881

Merged
JelleZijlstra merged 1 commit intopython:masterfrom
hauntsaninja:not
Mar 11, 2023
Merged

Add error code to typing_extensions suggestion#14881
JelleZijlstra merged 1 commit intopython:masterfrom
hauntsaninja:not

Conversation

@hauntsaninja
Copy link
Copy Markdown
Collaborator

@hauntsaninja hauntsaninja commented Mar 11, 2023

Fixes #14871

Note that this doesn't affect the exit code; it's just about what non-fatal notes get printed during successful runs

Copy link
Copy Markdown
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions
Copy link
Copy Markdown
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

PyWinCtl (https://github.com/Kalmat/PyWinCtl)
- src/pywinctl/xlibcontainer.py:7: note: Use `from typing_extensions import TypedDict` instead
- src/pywinctl/xlibcontainer.py:7: note: See https://mypy.readthedocs.io/en/stable/runtime_troubles.html#using-new-additions-to-the-typing-module

@JelleZijlstra JelleZijlstra merged commit 3098574 into python:master Mar 11, 2023
@hauntsaninja hauntsaninja deleted the not branch March 11, 2023 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mypy 1.1.1 no longer respects # type: ignore[attr-defined] when importing from typing

3 participants