@@ -69,11 +69,11 @@ pub(crate) mod typevar {
6969 #[ allow( dead_code) ]
7070 pub struct TypeVar {
7171 name : PyObjectRef , // TODO PyStrRef?
72- bound : parking_lot :: Mutex < PyObjectRef > ,
72+ bound : PyMutex < PyObjectRef > ,
7373 evaluate_bound : PyObjectRef ,
74- constraints : parking_lot :: Mutex < PyObjectRef > ,
74+ constraints : PyMutex < PyObjectRef > ,
7575 evaluate_constraints : PyObjectRef ,
76- default_value : parking_lot :: Mutex < PyObjectRef > ,
76+ default_value : PyMutex < PyObjectRef > ,
7777 evaluate_default : PyMutex < PyObjectRef > ,
7878 covariant : bool ,
7979 contravariant : bool ,
@@ -396,11 +396,11 @@ pub(crate) mod typevar {
396396
397397 Ok ( Self {
398398 name,
399- bound : parking_lot :: Mutex :: new ( bound_obj) ,
399+ bound : PyMutex :: new ( bound_obj) ,
400400 evaluate_bound,
401- constraints : parking_lot :: Mutex :: new ( constraints_obj) ,
401+ constraints : PyMutex :: new ( constraints_obj) ,
402402 evaluate_constraints,
403- default_value : parking_lot :: Mutex :: new ( default_value) ,
403+ default_value : PyMutex :: new ( default_value) ,
404404 evaluate_default : PyMutex :: new ( evaluate_default) ,
405405 covariant,
406406 contravariant,
@@ -418,11 +418,11 @@ pub(crate) mod typevar {
418418 ) -> Self {
419419 Self {
420420 name,
421- bound : parking_lot :: Mutex :: new ( vm. ctx . none ( ) ) ,
421+ bound : PyMutex :: new ( vm. ctx . none ( ) ) ,
422422 evaluate_bound,
423- constraints : parking_lot :: Mutex :: new ( vm. ctx . none ( ) ) ,
423+ constraints : PyMutex :: new ( vm. ctx . none ( ) ) ,
424424 evaluate_constraints,
425- default_value : parking_lot :: Mutex :: new ( vm. ctx . typing_no_default . clone ( ) . into ( ) ) ,
425+ default_value : PyMutex :: new ( vm. ctx . typing_no_default . clone ( ) . into ( ) ) ,
426426 evaluate_default : PyMutex :: new ( vm. ctx . none ( ) ) ,
427427 covariant : false ,
428428 contravariant : false ,
@@ -438,7 +438,7 @@ pub(crate) mod typevar {
438438 pub struct ParamSpec {
439439 name : PyObjectRef ,
440440 bound : Option < PyObjectRef > ,
441- default_value : parking_lot :: Mutex < PyObjectRef > ,
441+ default_value : PyMutex < PyObjectRef > ,
442442 evaluate_default : PyMutex < PyObjectRef > ,
443443 covariant : bool ,
444444 contravariant : bool ,
@@ -637,7 +637,7 @@ pub(crate) mod typevar {
637637 let paramspec = Self {
638638 name,
639639 bound,
640- default_value : parking_lot :: Mutex :: new ( default_value) ,
640+ default_value : PyMutex :: new ( default_value) ,
641641 evaluate_default : PyMutex :: new ( vm. ctx . none ( ) ) ,
642642 covariant,
643643 contravariant,
@@ -668,7 +668,7 @@ pub(crate) mod typevar {
668668 Self {
669669 name,
670670 bound : None ,
671- default_value : parking_lot :: Mutex :: new ( vm. ctx . typing_no_default . clone ( ) . into ( ) ) ,
671+ default_value : PyMutex :: new ( vm. ctx . typing_no_default . clone ( ) . into ( ) ) ,
672672 evaluate_default : PyMutex :: new ( vm. ctx . none ( ) ) ,
673673 covariant : false ,
674674 contravariant : false ,
@@ -683,7 +683,7 @@ pub(crate) mod typevar {
683683 #[ allow( dead_code) ]
684684 pub struct TypeVarTuple {
685685 name : PyObjectRef ,
686- default_value : parking_lot :: Mutex < PyObjectRef > ,
686+ default_value : PyMutex < PyObjectRef > ,
687687 evaluate_default : PyMutex < PyObjectRef > ,
688688 }
689689 #[ pyclass( flags( HAS_DICT ) , with( Constructor , Representable , Iterable ) ) ]
@@ -813,7 +813,7 @@ pub(crate) mod typevar {
813813
814814 let typevartuple = Self {
815815 name,
816- default_value : parking_lot :: Mutex :: new ( default_value) ,
816+ default_value : PyMutex :: new ( default_value) ,
817817 evaluate_default : PyMutex :: new ( evaluate_default) ,
818818 } ;
819819
@@ -840,7 +840,7 @@ pub(crate) mod typevar {
840840 pub fn new ( name : PyObjectRef , vm : & VirtualMachine ) -> Self {
841841 Self {
842842 name,
843- default_value : parking_lot :: Mutex :: new ( vm. ctx . typing_no_default . clone ( ) . into ( ) ) ,
843+ default_value : PyMutex :: new ( vm. ctx . typing_no_default . clone ( ) . into ( ) ) ,
844844 evaluate_default : PyMutex :: new ( vm. ctx . none ( ) ) ,
845845 }
846846 }
0 commit comments