Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Mar 1, 2025

Sync typeshed

Source commit:
python/typeshed@0b13c1d

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

mypybot and others added 6 commits March 1, 2025 00:06
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
Contributor Author

github-actions bot commented Mar 1, 2025

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

static-frame (https://github.com/static-frame/static-frame)
+ static_frame/core/node_fill_value.py:201: error: Returning Any from function declared to return "Frame[Any, Any, *tuple[Any, ...]] | Series[Any, Any]"  [no-any-return]
+ static_frame/core/node_fill_value.py:212: error: Unused "type: ignore" comment  [unused-ignore]
+ static_frame/core/quilt.py:162: error: Unused "type: ignore" comment  [unused-ignore]

materialize (https://github.com/MaterializeInc/materialize)
- misc/python/materialize/cli/gen-chroma-syntax.py:56: error: Incompatible types in assignment (expression has type "Element | None", variable has type "Element")  [assignment]
+ misc/python/materialize/cli/gen-chroma-syntax.py:56: error: Incompatible types in assignment (expression has type "Element[str] | None", variable has type "Element[str]")  [assignment]

@hauntsaninja hauntsaninja merged commit 9fe9525 into master Mar 2, 2025
18 checks passed
@hauntsaninja hauntsaninja deleted the mypybot/sync-typeshed branch March 2, 2025 03:43
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.

5 participants