Skip to content

Sync typeshed - #17246

Merged
JelleZijlstra merged 4 commits into
masterfrom
mypybot/sync-typeshed
May 15, 2024
Merged

JelleZijlstra merged 4 commits into
masterfrom
mypybot/sync-typeshed

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Sync typeshed

Source commit:
python/typeshed@a9d7e86

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

mypybot and others added 4 commits May 15, 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)
@AlexWaygood AlexWaygood reopened this May 15, 2024
@github-actions

Copy link
Copy Markdown
Contributor Author

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

ignite (https://github.com/pytorch/ignite)
+ ignite/engine/engine.py:1010: error: No return value expected  [return-value]

mkdocs (https://github.com/mkdocs/mkdocs)
+ mkdocs/tests/__init__.py:16: error: Unused "type: ignore" comment  [unused-ignore]

@JelleZijlstra
JelleZijlstra merged commit b4f9869 into master May 15, 2024
@JelleZijlstra
JelleZijlstra deleted the mypybot/sync-typeshed branch May 15, 2024 01:11
JelleZijlstra pushed a commit that referenced this pull request May 15, 2024
During the last typehed update, we included the `@tests` folder which is
unnecessary for mypy.
Update the `sync-typeshed.py` script to exclude it in the future.

Refs:
- #17246
- python/typeshed#11762

---------

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
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