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

Sync typeshed for 1.6 #15918

Merged
merged 5 commits into from
Aug 21, 2023
Merged

Sync typeshed for 1.6 #15918

merged 5 commits into from
Aug 21, 2023

Conversation

koogoro
Copy link
Collaborator

@koogoro koogoro commented Aug 21, 2023

Use the sync-typeshed script to sync the latest typeshed before the 1.6 release.

koogoro and others added 5 commits August 20, 2023 20:28
This is allegedly causing large performance problems, see 13821

typeshed/8231 had zero hits on mypy_primer, so it's not the worst thing
to undo. Patching this in typeshed also feels weird, since there's a
more general soundness issue. If a typevar has a bound or constraint, we
might not want to solve it to a Literal.

If we can confirm the performance regression or fix the unsoundness
within mypy, I might pursue upstreaming this in typeshed.

(Reminder: add this to the sync_typeshed script once merged)
Since the plugin provides superior type checking: python#13987 (comment)
A manual cherry-pick of e437cdf.
@github-actions
Copy link
Contributor

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

steam.py (https://github.com/Gobot1234/steam.py)
- note:/old_mypy/venv/lib/python3.10/site-packages/mypy/typeshed/stdlib/builtins.pyi:100: note: "__new__" of "object" defined here
+ note:/new_mypy/venv/lib/python3.10/site-packages/mypy/typeshed/stdlib/builtins.pyi:100: note: "__new__" of "object" defined here
- note:/old_mypy/venv/lib/python3.10/site-packages/mypy/typeshed/stdlib/builtins.pyi:100: note: "__new__" of "object" defined here
+ note:/new_mypy/venv/lib/python3.10/site-packages/mypy/typeshed/stdlib/builtins.pyi:100: note: "__new__" of "object" defined here

@koogoro koogoro merged commit 5d909f1 into python:master Aug 21, 2023
17 checks passed
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.

3 participants