@@ -1241,7 +1241,7 @@ impl ExecutingFrame<'_> {
1241
1241
bytecode:: Instruction :: TypeVar => {
1242
1242
let type_name = self . pop_value ( ) ;
1243
1243
let type_var: PyObjectRef =
1244
- typing:: make_typevar ( vm, type_name. clone ( ) , vm. ctx . none ( ) , vm. ctx . none ( ) )
1244
+ typing:: TypeVar :: new ( vm, type_name. clone ( ) , vm. ctx . none ( ) , vm. ctx . none ( ) )
1245
1245
. into_ref ( & vm. ctx )
1246
1246
. into ( ) ;
1247
1247
self . push_value ( type_var) ;
@@ -1251,7 +1251,7 @@ impl ExecutingFrame<'_> {
1251
1251
let type_name = self . pop_value ( ) ;
1252
1252
let bound = self . pop_value ( ) ;
1253
1253
let type_var: PyObjectRef =
1254
- typing:: make_typevar ( vm, type_name. clone ( ) , bound, vm. ctx . none ( ) )
1254
+ typing:: TypeVar :: new ( vm, type_name. clone ( ) , bound, vm. ctx . none ( ) )
1255
1255
. into_ref ( & vm. ctx )
1256
1256
. into ( ) ;
1257
1257
self . push_value ( type_var) ;
@@ -1261,7 +1261,7 @@ impl ExecutingFrame<'_> {
1261
1261
let type_name = self . pop_value ( ) ;
1262
1262
let constraint = self . pop_value ( ) ;
1263
1263
let type_var: PyObjectRef =
1264
- typing:: make_typevar ( vm, type_name. clone ( ) , vm. ctx . none ( ) , constraint)
1264
+ typing:: TypeVar :: new ( vm, type_name. clone ( ) , vm. ctx . none ( ) , constraint)
1265
1265
. into_ref ( & vm. ctx )
1266
1266
. into ( ) ;
1267
1267
self . push_value ( type_var) ;
@@ -1288,7 +1288,7 @@ impl ExecutingFrame<'_> {
1288
1288
}
1289
1289
bytecode:: Instruction :: ParamSpec => {
1290
1290
let param_spec_name = self . pop_value ( ) ;
1291
- let param_spec: PyObjectRef = typing:: make_paramspec ( param_spec_name. clone ( ) )
1291
+ let param_spec: PyObjectRef = typing:: ParamSpec :: new ( param_spec_name. clone ( ) )
1292
1292
. into_ref ( & vm. ctx )
1293
1293
. into ( ) ;
1294
1294
self . push_value ( param_spec) ;
@@ -1297,7 +1297,7 @@ impl ExecutingFrame<'_> {
1297
1297
bytecode:: Instruction :: TypeVarTuple => {
1298
1298
let type_var_tuple_name = self . pop_value ( ) ;
1299
1299
let type_var_tuple: PyObjectRef =
1300
- typing:: make_typevartuple ( type_var_tuple_name. clone ( ) , vm)
1300
+ typing:: TypeVarTuple :: new ( type_var_tuple_name. clone ( ) , vm)
1301
1301
. into_ref ( & vm. ctx )
1302
1302
. into ( ) ;
1303
1303
self . push_value ( type_var_tuple) ;
0 commit comments