diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2022-03-11 08:47:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-11 08:47:26 (GMT) |
commit | b6a5d8590c4bfe4553d796b36af03bda8c0d5af5 (patch) | |
tree | 7cf1db87de08ddb22cc31ca426427e9f559dc321 /Include | |
parent | 2d5835a019a46573d5b1b614c8ef88d6b564d8d4 (diff) | |
download | cpython-b6a5d8590c4bfe4553d796b36af03bda8c0d5af5.zip cpython-b6a5d8590c4bfe4553d796b36af03bda8c0d5af5.tar.gz cpython-b6a5d8590c4bfe4553d796b36af03bda8c0d5af5.tar.bz2 |
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.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_global_strings.h | 1 | ||||
-rw-r--r-- | Include/internal/pycore_runtime_init.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_global_strings.h b/Include/internal/pycore_global_strings.h index 755d69a..35bffa7 100644 --- a/Include/internal/pycore_global_strings.h +++ b/Include/internal/pycore_global_strings.h @@ -199,6 +199,7 @@ struct _Py_global_strings { STRUCT_FOR_ID(__subclasshook__) STRUCT_FOR_ID(__truediv__) STRUCT_FOR_ID(__trunc__) + STRUCT_FOR_ID(__typing_subst__) STRUCT_FOR_ID(__warningregistry__) STRUCT_FOR_ID(__weakref__) STRUCT_FOR_ID(__xor__) diff --git a/Include/internal/pycore_runtime_init.h b/Include/internal/pycore_runtime_init.h index 5ba1826..20d543a 100644 --- a/Include/internal/pycore_runtime_init.h +++ b/Include/internal/pycore_runtime_init.h @@ -822,6 +822,7 @@ extern "C" { INIT_ID(__subclasshook__), \ INIT_ID(__truediv__), \ INIT_ID(__trunc__), \ + INIT_ID(__typing_subst__), \ INIT_ID(__warningregistry__), \ INIT_ID(__weakref__), \ INIT_ID(__xor__), \ |