]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44796: Unify TypeVar and ParamSpec substitution (GH-31143)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 11 Mar 2022 08:47:26 +0000 (10:47 +0200)
committerGitHub <noreply@github.com>
Fri, 11 Mar 2022 08:47:26 +0000 (10:47 +0200)
commitb6a5d8590c4bfe4553d796b36af03bda8c0d5af5
tree7cf1db87de08ddb22cc31ca426427e9f559dc321
parent2d5835a019a46573d5b1b614c8ef88d6b564d8d4
bpo-44796: Unify TypeVar and ParamSpec substitution (GH-31143)

Add methods __typing_subst__() in TypeVar and ParamSpec.
Simplify code by using more object-oriented approach, especially
the C code for types.GenericAlias and the Python code for
collections.abc.Callable.
Include/internal/pycore_global_strings.h
Include/internal/pycore_runtime_init.h
Lib/_collections_abc.py
Lib/test/test_typing.py
Lib/typing.py
Objects/genericaliasobject.c