Skip to content

Ignore typeshed test files - #17249

Merged
JelleZijlstra merged 5 commits into
python:masterfrom
cdce8p:typeshed-ignore-tests
May 15, 2024
Merged

JelleZijlstra merged 5 commits into
python:masterfrom
cdce8p:typeshed-ignore-tests

Conversation

@cdce8p

@cdce8p cdce8p commented May 15, 2024

Copy link
Copy Markdown
Collaborator

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:

cdce8p and others added 5 commits May 15, 2024 12:07
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)
@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JelleZijlstra
JelleZijlstra merged commit cdc956b into python:master May 15, 2024
@cdce8p
cdce8p deleted the typeshed-ignore-tests branch May 15, 2024 19:49
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.

4 participants