Skip to content

Conversation

@github-actions
Copy link
Contributor

Sync typeshed

Source commit:
python/typeshed@559ae97

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

mypybot and others added 4 commits October 18, 2024 02:20
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)
@hauntsaninja
Copy link
Collaborator

Syncing to pull in python/typeshed#12837 . If I cherry pick it to a release branch, I'd want to make sure master isn't still in the regressed state

@github-actions
Copy link
Contributor Author

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

setuptools (https://github.com/pypa/setuptools)
- pkg_resources/__init__.py:2651: error: Value of type variable "AnyStr" of "abspath" cannot be "Sequence[object]"  [type-var]

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
+ pandas-stubs/core/frame.pyi:608: error: Overloaded function signatures 2 and 3 overlap with incompatible return types  [overload-overlap]

@hauntsaninja hauntsaninja merged commit 8150b51 into master Oct 18, 2024
18 checks passed
@hauntsaninja hauntsaninja deleted the mypybot/sync-typeshed branch October 18, 2024 02:53
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