@@ -29,7 +29,7 @@ use crate::{
2929 protocol:: { PyIter , PyIterReturn } ,
3030 scope:: Scope ,
3131 sliceable:: SliceableSequenceOp ,
32- stdlib:: { builtins, sys:: monitoring, typing } ,
32+ stdlib:: { _typing , builtins, sys:: monitoring} ,
3333 types:: { PyComparisonOp , PyTypeFlags } ,
3434 vm:: { Context , PyMethod } ,
3535} ;
@@ -9134,19 +9134,19 @@ impl ExecutingFrame<'_> {
91349134 }
91359135 bytecode:: IntrinsicFunction1 :: TypeVar => {
91369136 let type_var: PyObjectRef =
9137- typing :: TypeVar :: new ( vm, arg. clone ( ) , vm. ctx . none ( ) , vm. ctx . none ( ) )
9137+ _typing :: TypeVar :: new ( vm, arg. clone ( ) , vm. ctx . none ( ) , vm. ctx . none ( ) )
91389138 . into_ref ( & vm. ctx )
91399139 . into ( ) ;
91409140 Ok ( type_var)
91419141 }
91429142 bytecode:: IntrinsicFunction1 :: ParamSpec => {
9143- let param_spec: PyObjectRef = typing :: ParamSpec :: new ( arg. clone ( ) , vm)
9143+ let param_spec: PyObjectRef = _typing :: ParamSpec :: new ( arg. clone ( ) , vm)
91449144 . into_ref ( & vm. ctx )
91459145 . into ( ) ;
91469146 Ok ( param_spec)
91479147 }
91489148 bytecode:: IntrinsicFunction1 :: TypeVarTuple => {
9149- let type_var_tuple: PyObjectRef = typing :: TypeVarTuple :: new ( arg. clone ( ) , vm)
9149+ let type_var_tuple: PyObjectRef = _typing :: TypeVarTuple :: new ( arg. clone ( ) , vm)
91509150 . into_ref ( & vm. ctx )
91519151 . into ( ) ;
91529152 Ok ( type_var_tuple)
@@ -9179,7 +9179,7 @@ impl ExecutingFrame<'_> {
91799179 let name = name
91809180 . downcast :: < crate :: builtins:: PyStr > ( )
91819181 . map_err ( |_| vm. new_type_error ( "TypeAliasType name must be a string" ) ) ?;
9182- let type_alias = typing :: TypeAliasType :: new ( name, type_params, compute_value) ;
9182+ let type_alias = _typing :: TypeAliasType :: new ( name, type_params, compute_value) ;
91839183 Ok ( type_alias. into_ref ( & vm. ctx ) . into ( ) )
91849184 }
91859185 bytecode:: IntrinsicFunction1 :: ListToTuple => {
@@ -9225,7 +9225,7 @@ impl ExecutingFrame<'_> {
92259225 ) -> PyResult {
92269226 match func {
92279227 bytecode:: IntrinsicFunction2 :: SetTypeparamDefault => {
9228- crate :: stdlib:: typing :: set_typeparam_default ( arg1, arg2, vm)
9228+ crate :: stdlib:: _typing :: set_typeparam_default ( arg1, arg2, vm)
92299229 }
92309230 bytecode:: IntrinsicFunction2 :: SetFunctionTypeParams => {
92319231 // arg1 is the function, arg2 is the type params tuple
@@ -9235,14 +9235,14 @@ impl ExecutingFrame<'_> {
92359235 }
92369236 bytecode:: IntrinsicFunction2 :: TypeVarWithBound => {
92379237 let type_var: PyObjectRef =
9238- typing :: TypeVar :: new ( vm, arg1. clone ( ) , arg2, vm. ctx . none ( ) )
9238+ _typing :: TypeVar :: new ( vm, arg1. clone ( ) , arg2, vm. ctx . none ( ) )
92399239 . into_ref ( & vm. ctx )
92409240 . into ( ) ;
92419241 Ok ( type_var)
92429242 }
92439243 bytecode:: IntrinsicFunction2 :: TypeVarWithConstraint => {
92449244 let type_var: PyObjectRef =
9245- typing :: TypeVar :: new ( vm, arg1. clone ( ) , vm. ctx . none ( ) , arg2)
9245+ _typing :: TypeVar :: new ( vm, arg1. clone ( ) , vm. ctx . none ( ) , arg2)
92469246 . into_ref ( & vm. ctx )
92479247 . into ( ) ;
92489248 Ok ( type_var)
0 commit comments