Skip to content

Sync typeshed#16721

Merged
JelleZijlstra merged 5 commits into
masterfrom
mypybot/sync-typeshed
Jan 1, 2024
Merged

Sync typeshed#16721
JelleZijlstra merged 5 commits into
masterfrom
mypybot/sync-typeshed

Conversation

@github-actions

@github-actions github-actions Bot commented Jan 1, 2024

Copy link
Copy Markdown
Contributor

Sync typeshed

Source commit:
python/typeshed@1d3c326

Note that you will need to close and re-open the PR in order to trigger CI.

mypybot and others added 5 commits January 1, 2024 00:05
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: #13987 (comment)
A manual cherry-pick of e437cdf.
@AlexWaygood AlexWaygood closed this Jan 1, 2024
@AlexWaygood AlexWaygood reopened this Jan 1, 2024
@AlexWaygood

Copy link
Copy Markdown
Member

Happy new year to you too, mypybot

@github-actions

github-actions Bot commented Jan 1, 2024

Copy link
Copy Markdown
Contributor Author

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

spack (https://github.com/spack/spack)
+ lib/spack/spack/oci/oci.py:142: error: Argument 1 to "endpoint" of "ImageReference" has incompatible type "Optional[str]"; expected "str"  [arg-type]

@JelleZijlstra JelleZijlstra merged commit b08c8b5 into master Jan 1, 2024
@JelleZijlstra JelleZijlstra deleted the mypybot/sync-typeshed branch January 1, 2024 23:58
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