Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sync typeshed#20415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
hauntsaninja merged 7 commits intomasterfrommypybot/sync-typeshed
Dec 15, 2025
Merged

Sync typeshed#20415

hauntsaninja merged 7 commits intomasterfrommypybot/sync-typeshed
Dec 15, 2025

Conversation

@github-actions
Copy link
Contributor

Sync typeshed

Source commit:
python/typeshed@2f3c3b7

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

mypybotand others added6 commitsDecember 15, 2025 00:08
This is allegedly causing large performance problems, see 13821typeshed/8231 had zero hits on mypy_primer, so it's not the worst thingto undo. Patching this in typeshed also feels weird, since there's amore general soundness issue. If a typevar has a bound or constraint, wemight not want to solve it to a Literal.If we can confirm the performance regression or fix the unsoundnesswithin mypy, I might pursue upstreaming this in typeshed.(Reminder: add this to the sync_typeshed script once merged)
@github-actions

This comment has been minimized.

@hauntsaninja
Copy link
Collaborator

Primer ispython/typeshed#15085

@github-actions
Copy link
ContributorAuthor

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

starlette (https://github.com/encode/starlette)+ tests/test_datastructures.py:171: error: No overload variant of "get" of "Mapping" matches argument types "str", "None"  [call-overload]+ tests/test_datastructures.py:171: note: Possible overload variants:+ tests/test_datastructures.py:171: note:     def get(self, str, /) -> str | None+ tests/test_datastructures.py:171: note:     def get(self, str, str, /) -> str+ tests/test_datastructures.py:171: note:     def [_T] get(self, str, _T, /) -> str | _T+ tests/test_datastructures.py:287: error: No overload variant of "get" of "Mapping" matches argument types "str", "None"  [call-overload]+ tests/test_datastructures.py:287: note: Possible overload variants:+ tests/test_datastructures.py:287: note:     def get(self, str, /) -> str | None+ tests/test_datastructures.py:287: note:     def get(self, str, str, /) -> str+ tests/test_datastructures.py:287: note:     def [_T] get(self, str, _T, /) -> str | _T+ tests/test_datastructures.py:371: error: No overload variant of "get" of "Mapping" matches argument types "str", "None"  [call-overload]+ tests/test_datastructures.py:371: note: Possible overload variants:+ tests/test_datastructures.py:371: note:     def get(self, str, /) -> UploadFile | str | None+ tests/test_datastructures.py:371: note:     def get(self, str, UploadFile | str, /) -> UploadFile | str+ tests/test_datastructures.py:371: note:     def [_T] get(self, str, _T, /) -> UploadFile | str | _T+ tests/test_datastructures.py:406: error: No overload variant of "get" of "Mapping" matches argument types "str", "None"  [call-overload]+ tests/test_datastructures.py:406: note: Possible overload variants:+ tests/test_datastructures.py:406: note:     def get(self, Any, /) -> Any | None+ tests/test_datastructures.py:406: note:     def get(self, Any, Any, /) -> Any+ tests/test_datastructures.py:406: note:     def [_T] get(self, Any, _T, /) -> Any | _Tscrapy (https://github.com/scrapy/scrapy)+ scrapy/cmdline.py:29: error: Return type "tuple[Action | None, str, str | None] | None" of "_parse_optional" incompatible with return type "list[tuple[Action | None, str, str | None, str | None]] | None" in supertype "argparse.ArgumentParser"  [override]+ scrapy/cmdline.py:37: error: Incompatible return value type (got "list[tuple[Action | None, str, str | None, str | None]] | None", expected "tuple[Action | None, str, str | None] | None")  [return-value]operator (https://github.com/canonical/operator)- ops/model.py:1016: note:          def get(self, str, /, default: Binding) -> Binding+ ops/model.py:1016: note:          def get(self, str, Binding, /) -> Binding- ops/model.py:1016: note:          def [_T] get(self, str, /, default: _T) -> Binding | _T+ ops/model.py:1016: note:          def [_T] get(self, str, _T, /) -> Binding | _Tsteam.py (https://github.com/Gobot1234/steam.py)- steam/ext/commands/utils.py:43: note:          def get(self, str, /, default: _VT) -> _VT+ steam/ext/commands/utils.py:43: note:          def get(self, str, _VT, /) -> _VT- steam/ext/commands/utils.py:43: note:          def [_T] get(self, str, /, default: _T) -> _VT | _T+ steam/ext/commands/utils.py:43: note:          def [_T] get(self, str, _T, /) -> _VT | _T- steam/ext/commands/utils.py:52: note:          def pop(self, str, /, default: _VT) -> _VT+ steam/ext/commands/utils.py:52: note:          def pop(self, str, _VT, /) -> _VT- steam/ext/commands/utils.py:52: note:          def [_T] pop(self, str, /, default: _T) -> _VT | _T+ steam/ext/commands/utils.py:52: note:          def [_T] pop(self, str, _T, /) -> _VT | _Tdiscord.py (https://github.com/Rapptz/discord.py)- ...venv/lib/python3.14/site-packages/mypy/typeshed/stdlib/typing.pyi:1041: note: "update" of "TypedDict" defined here+ ...venv/lib/python3.14/site-packages/mypy/typeshed/stdlib/typing.pyi:1046: note: "update" of "TypedDict" defined herepyodide (https://github.com/pyodide/pyodide)- pyodide-build/pyodide_build/xbuildenv_releases.py:220: note:     def get(self, str, /, default: str) -> str+ pyodide-build/pyodide_build/xbuildenv_releases.py:220: note:     def get(self, str, str, /) -> str- pyodide-build/pyodide_build/xbuildenv_releases.py:220: note:     def [_T] get(self, str, /, default: _T) -> str | _T+ pyodide-build/pyodide_build/xbuildenv_releases.py:220: note:     def [_T] get(self, str, _T, /) -> str | _T

@hauntsaninjahauntsaninja merged commite089abc intomasterDec 15, 2025
23 checks passed
@hauntsaninjahauntsaninja deleted the mypybot/sync-typeshed branchDecember 15, 2025 01:26
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@hauntsaninja@cdce8p@AlexWaygood

[8]ページ先頭

©2009-2025 Movatter.jp