GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Sync typeshed by cdce8p · Pull Request #20605 · python/mypy

Conversation

@cdce8p

@cdce8p cdce8p commented Jan 17, 2026

Copy link
Copy Markdown
Collaborator

Source commit:
python/typeshed@b94c9e8

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
cdce8p and others added 7 commits January 17, 2026 12:27
@cdce8p
Update typeshed patches
e7ecb62
@cdce8p
Sync typeshed
3e09bb4
Source commit:
python/typeshed@b94c9e8
@cdce8p
Partially revert Clean up argparse hacks
71fdb07
@hauntsaninja @cdce8p
Remove use of LiteralString in builtins (python#13743)
855bd29
@cdce8p
Revert Remove redundant inheritances from Iterator in builtins
0cde403
@hauntsaninja @cdce8p
Revert sum literal integer change (python#13961)
42ac1f6
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 @cdce8p
Revert typeshed ctypes change
1fece34
The plugin provides superior type checking:
python#13987 (comment)
A manual cherry-pick of e437cdf.
@github-actions

github-actions Bot commented Jan 17, 2026

Copy link
Copy Markdown
Contributor

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

pydantic (https://github.com/pydantic/pydantic)
- pydantic/v1/main.py:924: error: Set comprehension has incompatible type Set[int | str]; expected Set[str | None]  [misc]
- pydantic/v1/main.py:924: note: Left operand is of type "set[str] | dict_keys[str, Any]"

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/dtypes/cast.py:869: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/core/dtypes/cast.py:870: error: Unused "type: ignore" comment  [unused-ignore]

ibis (https://github.com/ibis-project/ibis)
- ibis/backends/sql/datatypes.py:1398: error: Unsupported operand types for - ("set[type[Never]]" and "set[type[SqlglotType]]")  [operator]
- ibis/expr/datatypes/tests/test_core.py:581: error: Unsupported operand types for - ("set[type[Never]]" and "set[AnnotableMeta]")  [operator]

trio (https://github.com/python-trio/trio)
+ src/trio/_util.py:301: error: Item "None" of "FrameType | None" has no attribute "f_globals"  [union-attr]
+ src/trio/_socket.py:354: error: Argument 2 to "socketpair" has incompatible type "socket | int"; expected "SocketKind | int"  [arg-type]
+ src/trio/_core/_tests/test_asyncgen.py:309: error: Item "None" of "FrameType | None" has no attribute "f_locals"  [union-attr]
+ src/trio/_core/_tests/test_asyncgen.py:313: error: Item "None" of "FrameType | None" has no attribute "f_locals"  [union-attr]

openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/solr/data_provider.py: note: In member "preload_metadata" of class "DataProvider":
+ openlibrary/solr/data_provider.py:214: error: Argument 1 to "_get_lite_metadata" of "DataProvider" has incompatible type "tuple[tuple[str, ...], ...]"; expected "Sequence[str]"  [arg-type]
+ openlibrary/solr/data_provider.py:224: error: Argument 1 to "_get_lite_metadata_direct" of "DataProvider" has incompatible type "tuple[str, ...]"; expected "str"  [arg-type]
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cdce8p

cdce8p commented Jan 17, 2026

Copy link
Copy Markdown
Collaborator Author

Mypy primer hits

  • pydantic, pandas, ibis -> allow arbitrary types in set difference typeshed#15160
  • trio
    -> Make socketpair not support type: SocketType typeshed#15284
    -> [stdlib][types] fix *_frame type (may be None) typeshed#15219
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hauntsaninja
hauntsaninja merged commit b6b929b into python:master Jan 17, 2026
@cdce8p
cdce8p deleted the update-typeshed branch January 18, 2026 02:37
@hannes-ucsc hannes-ucsc mentioned this pull request Jan 18, 2026
Remove typing workaround for functools.cache DataBiosphere/azul#7686
Closed
@AlexWaygood AlexWaygood mentioned this pull request Jan 24, 2026
Incorrect / confusing invalid-method-override when overriding str.__iter__ astral-sh/ty#2612
Closed
@hauntsaninja hauntsaninja mentioned this pull request Apr 9, 2026
[1.19 regression] Incorrect return type inference on enum methods #20434
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@cdce8p @hauntsaninja @AlexWaygood
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.