summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_global_strings.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-03-11 08:47:26 (GMT)
committerGitHub <noreply@github.com>2022-03-11 08:47:26 (GMT)
commitb6a5d8590c4bfe4553d796b36af03bda8c0d5af5 (patch)
tree7cf1db87de08ddb22cc31ca426427e9f559dc321 /Include/internal/pycore_global_strings.h
parent2d5835a019a46573d5b1b614c8ef88d6b564d8d4 (diff)
downloadcpython-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/internal/pycore_global_strings.h')
-rw-r--r--Include/internal/pycore_global_strings.h1
1 files changed, 1 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__)