Repository navigation
Fix stdlib stubtest on Python 3.14.9 and 3.15.1 - #16596
Merged
Merged
Conversation
Contributor
|
Diff from mypy_primer, showing the effect of this PR on open source code: sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/builders/_epub_base.py:34:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
scipy-stubs (https://github.com/scipy/scipy-stubs)
+ tests/misc/test_submodules_empty.pyi:3: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
|
AlexWaygood
marked this pull request as ready for review
October 22, 2026 01:14
hauntsaninja
approved these changes
Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #16595.
Update the stubs for
contains_token_typeonemail._header_value_parser.TokenListandTerminaland the optionalcontextargument tomultiprocessing.context.DefaultContext, both introduced in Python 3.14.9 and 3.15.1, and for_remote_debugging.BinaryWriter.limit_reached, introduced in Python 3.15.1.The
contains_token_typestubs acceptNonebecauseTokenList.token_typedefaults toNoneandTokenList.contains_token_typechecks that value against its arguments; for example,TokenList().contains_token_type(None)returnsTrue.Terminal.contains_token_typeacceptsNoneas well becauseTokenList.contains_token_type(None)can forward the argument toTerminalchildren.Related CPython PRs:
contains_token_type: python/cpython#134271DefaultContext: python/cpython#159254BinaryWriter.limit_reached: python/cpython#152892