Skip to content

Add Python 3.15 typing updates#15725

Merged
JelleZijlstra merged 6 commits into
python:mainfrom
JelleZijlstra:codex/python315-typing
May 8, 2026
Merged

Add Python 3.15 typing updates#15725
JelleZijlstra merged 6 commits into
python:mainfrom
JelleZijlstra:codex/python315-typing

Conversation

@JelleZijlstra
Copy link
Copy Markdown
Member

@JelleZijlstra JelleZijlstra commented May 8, 2026

Summary

  • Add Python 3.15 typing additions and removals, including TypeForm, NoExtraItems, disjoint_base, TypeVarTuple attributes, and no_type_check_decorator removal.
  • Update typing_extensions and _collections_abc exports for the Python 3.15 runtime surface.
  • Remove corresponding 3.15 stubtest allowlist entries.

Relevant report entries

@github-actions

This comment has been minimized.

typing.__all__
typing.disjoint_base
typing.no_type_check_decorator
typing_extensions.__all__
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typing-extensions still has no_type_check_decorator in __all__ but it no longer exists at runtime, we'll have to fix this

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't this get fixed in python/typing_extensions#723

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not released yet I think

@JelleZijlstra JelleZijlstra marked this pull request as ready for review May 8, 2026 18:43
Comment thread stdlib/_collections_abc.pyi Outdated
Comment thread stdlib/typing.pyi Outdated
Copy link
Copy Markdown
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JelleZijlstra JelleZijlstra merged commit a7912d5 into python:main May 8, 2026
56 checks passed
@JelleZijlstra JelleZijlstra deleted the codex/python315-typing branch May 8, 2026 19:31
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