SIGN IN SIGN UP

Rename typing._collect_parameters (#118900)

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.
J
Jelle Zijlstra committed
ec9d12be9648ee60a2eb02d67069d74f8b314df9
Parent: f5c6b99
Committed by GitHub <noreply@github.com> on 5/10/2024, 4:55:49 PM