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

[3.13] Rename typing._collect_parameters (GH-118900)#118917

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

Conversation

miss-islington
Copy link
Contributor

Unfortunately, released versions of typing_extensions
monkeypatch this function without the extra parameter, which makes
it so things break badly if current main is used with typing_extensions.

Fortunately, the monkeypatching is not needed on Python 3.13, because CPython
now implements PEP 696. By renaming the function, we prevent the monkeypatch
from breaking typing.py internals.

We keep the old name (raising a DeprecationWarning) to help other external users who call it.
(cherry picked from commitec9d12b)

Co-authored-by: Jelle Zijlstrajelle.zijlstra@gmail.com

Unfortunately, released versions of typing_extensionsmonkeypatch this function without the extra parameter, which makesit so things break badly if current main is used with typing_extensions.Fortunately, the monkeypatching is not needed on Python 3.13, because CPythonnow implements PEP 696. By renaming the function, we prevent the monkeypatchfrom breaking typing.py internals.We keep the old name (raising a DeprecationWarning) to help other external users who call it.(cherry picked from commitec9d12b)Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@JelleZijlstraJelleZijlstraAwaiting requested review from JelleZijlstraJelleZijlstra is a code owner

@AlexWaygoodAlexWaygoodAwaiting requested review from AlexWaygoodAlexWaygood is a code owner

Assignees

@AlexWaygoodAlexWaygood

Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@miss-islington@AlexWaygood@JelleZijlstra

[8]ページ先頭

©2009-2025 Movatter.jp