FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13] Rename typing._collect_parameters (GH-118900) by miss-islington · Pull Request #118917 · python/cpython · GitHub

/ cpython Public

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

Merged
AlexWaygood merged 1 commit into
python:3.13from
miss-islington:backport-ec9d12b-3.13
May 10, 2024
Merged

[3.13] Rename typing._collect_parameters (GH-118900)#118917
AlexWaygood merged 1 commit into
python:3.13from
miss-islington:backport-ec9d12b-3.13

Conversation

Copy link
Copy Markdown
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 commit ec9d12b)

Co-authored-by: Jelle Zijlstra jelle.zijlstra@gmail.com

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 commit ec9d12b)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
AlexWaygood enabled auto-merge (squash) May 10, 2024 17:02
AlexWaygood self-assigned this May 10, 2024
AlexWaygood merged commit b3074f0 into python:3.13 May 10, 2024
miss-islington deleted the backport-ec9d12b-3.13 branch January 2, 2026 18:55
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL