7777 typing .Awaitable [FlagResolutionDetails [typing .Union [dict , list ]]],
7878 ],
7979]
80- TypeMap = typing . Dict [
80+ TypeMap = dict [
8181 FlagType ,
8282 typing .Union [
83- typing . Type [bool ],
84- typing . Type [int ],
85- typing . Type [float ],
86- typing . Type [str ],
87- typing . Tuple [ typing . Type [dict ], typing . Type [list ]],
83+ type [bool ],
84+ type [int ],
85+ type [float ],
86+ type [str ],
87+ tuple [ type [dict ], type [list ]],
8888 ],
8989]
9090
@@ -101,7 +101,7 @@ def __init__(
101101 domain : typing .Optional [str ],
102102 version : typing .Optional [str ],
103103 context : typing .Optional [EvaluationContext ] = None ,
104- hooks : typing .Optional [typing . List [Hook ]] = None ,
104+ hooks : typing .Optional [list [Hook ]] = None ,
105105 ) -> None :
106106 self .domain = domain
107107 self .version = version
@@ -118,7 +118,7 @@ def get_provider_status(self) -> ProviderStatus:
118118 def get_metadata (self ) -> ClientMetadata :
119119 return ClientMetadata (domain = self .domain )
120120
121- def add_hooks (self , hooks : typing . List [Hook ]) -> None :
121+ def add_hooks (self , hooks : list [Hook ]) -> None :
122122 self .hooks = self .hooks + hooks
123123
124124 def get_boolean_value (
@@ -423,12 +423,12 @@ def _establish_hooks_and_provider(
423423 default_value : typing .Any ,
424424 evaluation_context : typing .Optional [EvaluationContext ],
425425 flag_evaluation_options : typing .Optional [FlagEvaluationOptions ],
426- ) -> typing . Tuple [
426+ ) -> tuple [
427427 FeatureProvider ,
428428 HookContext ,
429429 HookHints ,
430- typing . List [Hook ],
431- typing . List [Hook ],
430+ list [Hook ],
431+ list [Hook ],
432432 ]:
433433 if evaluation_context is None :
434434 evaluation_context = EvaluationContext ()
@@ -477,7 +477,7 @@ def _before_hooks_and_merge_context(
477477 self ,
478478 flag_type : FlagType ,
479479 hook_context : HookContext ,
480- merged_hooks : typing . List [Hook ],
480+ merged_hooks : list [Hook ],
481481 hook_hints : HookHints ,
482482 evaluation_context : typing .Optional [EvaluationContext ],
483483 ) -> EvaluationContext :
0 commit comments