@@ -10,7 +10,7 @@ extern "C" {
10
10
11
11
struct _mod ; // Type defined in pycore_ast.h
12
12
13
- typedef enum _block_type { FunctionBlock , ClassBlock , ModuleBlock , AnnotationBlock , TypeParamBlock }
13
+ typedef enum _block_type { FunctionBlock , ClassBlock , ModuleBlock , AnnotationBlock }
14
14
_Py_block_ty ;
15
15
16
16
typedef enum _comprehension_type {
@@ -49,11 +49,6 @@ typedef struct _symtable_entry {
49
49
PyObject * ste_varnames ; /* list of function parameters */
50
50
PyObject * ste_children ; /* list of child blocks */
51
8000
51
PyObject * ste_directives ;/* locations of global and nonlocal statements */
52
- int ste_active_typeparam_scope ; /* 0 if no active typeparam scope */
53
- int ste_num_typeparam_scopes ; /* number of typeparam scopes encountered */
54
- PyObject * ste_typeparam_map ; /* map of typeparam names to mangled names,
55
- only exists while we're in ste_active_typeparam_scope */
56
- PyObject * ste_parent_typeparam_map ; /* same, but represents typeparams present in parents */
57
52
_Py_block_ty ste_type ; /* module, class, function or annotation */
58
53
int ste_nested ; /* true if block is nested */
59
54
unsigned ste_free : 1 ; /* true if block has free variables */
@@ -109,7 +104,6 @@ extern PyObject* _Py_Mangle(PyObject *p, PyObject *name);
109
104
#define DEF_IMPORT 2<<6 /* assignment occurred via import */
110
105
#define DEF_ANNOT 2<<7 /* this name is annotated */
111
106
#define DEF_COMP_ITER 2<<8 /* this name is a comprehension iteration variable */
112
- #define DEF_TYPE_PARAM 2<<9 /* this name is a type parameter */
113
107
114
108
#define DEF_BOUND (DEF_LOCAL | DEF_PARAM | DEF_IMPORT)
115
109
0 commit comments