@@ -473,7 +473,7 @@ async def get_boolean_value(
473473 default_value : bool ,
474474 evaluation_context : typing .Optional [EvaluationContext ] = None ,
475475 flag_evaluation_options : typing .Optional [FlagEvaluationOptions ] = None ,
476- ) -> typing . Coroutine [ typing . Any , typing . Any , bool ] :
476+ ) -> bool :
477477 details = await self .get_boolean_details (
478478 flag_key ,
479479 default_value ,
@@ -488,7 +488,7 @@ async def get_boolean_details(
488488 default_value : bool ,
489489 evaluation_context : typing .Optional [EvaluationContext ] = None ,
490490 flag_evaluation_options : typing .Optional [FlagEvaluationOptions ] = None ,
491- ) -> typing . Coroutine [ typing . Any , typing . Any , FlagEvaluationDetails [bool ] ]:
491+ ) -> FlagEvaluationDetails [bool ]:
492492 return await self .evaluate_flag_details (
493493 FlagType .BOOLEAN ,
494494 flag_key ,
@@ -503,7 +503,7 @@ async def get_string_value(
503503 default_value : str ,
504504 evaluation_context : typing .Optional [EvaluationContext ] = None ,
505505 flag_evaluation_options : typing .Optional [FlagEvaluationOptions ] = None ,
506- ) -> typing . Coroutine [ typing . Any , typing . Any , str ] :
506+ ) -> str :
507507 details = await self .get_string_details (
508508 flag_key ,
509509 default_value ,
@@ -518,7 +518,7 @@ async def get_string_details(
518518 default_value : str ,
519519 evaluation_context : typing .Optional [EvaluationContext ] = None ,
520520 flag_evaluation_options : typing .Optional [FlagEvaluationOptions ] = None ,
521- ) -> typing . Coroutine [ typing . Any , typing . Any , FlagEvaluationDetails [str ] ]:
521+ ) -> FlagEvaluationDetails [str ]:
522522 return await self .evaluate_flag_details (
523523 FlagType .STRING ,
524524 flag_key ,
@@ -533,7 +533,7 @@ async def get_integer_value(
533533 default_value : int ,
534534 evaluation_context : typing .Optional [EvaluationContext ] = None ,
535535 flag_evaluation_options : typing .Optional [FlagEvaluationOptions ] = None ,
536- ) -> typing . Coroutine [ typing . Any , typing . Any , int ] :
536+ ) -> int :
537537 details = await self .get_integer_details (
538538 flag_key ,
539539 default_value ,
@@ -548,7 +548,7 @@ async def get_integer_details(
548548 default_value : int ,
549549 evaluation_context : typing .Optional [EvaluationContext ] = None ,
550550 flag_evaluation_options : typing .Optional [FlagEvaluationOptions ] = None ,
551- ) -> typing . Coroutine [ typing . Any , typing . Any , FlagEvaluationDetails [int ] ]:
551+ ) -> FlagEvaluationDetails [int ]:
552552 return await self .evaluate_flag_details (
553553 FlagType .INTEGER ,
554554 flag_key ,
@@ -563,7 +563,7 @@ async def get_float_value(
563563 default_value : float ,
564564 evaluation_context : typing .Optional [EvaluationContext ] = None ,
565565 flag_evaluation_options : typing .Optional [FlagEvaluationOptions ] = None ,
566- ) -> typing . Coroutine [ typing . Any , typing . Any , float ] :
566+ ) -> float :
567567 details = await self .get_float_details (
568568 flag_key ,
569569 default_value ,
@@ -578,7 +578,7 @@ async def get_float_details(
578578 default_value : float ,
579579 evaluation_context : typing .Optional [EvaluationContext ] = None ,
580580 flag_evaluation_options : typing .Optional [FlagEvaluationOptions ] = None ,
581- ) -> typing . Coroutine [ typing . Any , typing . Any , FlagEvaluationDetails [float ] ]:
581+ ) -> FlagEvaluationDetails [float ]:
582582 return await self .evaluate_flag_details (
583583 FlagType .FLOAT ,
584584 flag_key ,
@@ -593,7 +593,7 @@ async def get_object_value(
593593 default_value : typing .Union [dict , list ],
594594 evaluation_context : typing .Optional [EvaluationContext ] = None ,
595595 flag_evaluation_options : typing .Optional [FlagEvaluationOptions ] = None ,
596- ) -> typing .Coroutine [ typing . Any , typing . Any , typing . Union [dict , list ] ]:
596+ ) -> typing .Union [dict , list ]:
597597 details = await self .get_object_details (
598598 flag_key ,
599599 default_value ,
@@ -608,9 +608,7 @@ async def get_object_details(
608608 default_value : typing .Union [dict , list ],
609609 evaluation_context : typing .Optional [EvaluationContext ] = None ,
610610 flag_evaluation_options : typing .Optional [FlagEvaluationOptions ] = None ,
611- ) -> typing .Coroutine [
612- typing .Any , typing .Any , FlagEvaluationDetails [typing .Union [dict , list ]]
613- ]:
611+ ) -> FlagEvaluationDetails [typing .Union [dict , list ]]:
614612 return await self .evaluate_flag_details (
615613 FlagType .OBJECT ,
616614 flag_key ,
@@ -626,7 +624,7 @@ async def evaluate_flag_details( # noqa: PLR0915
626624 default_value : typing .Any ,
627625 evaluation_context : typing .Optional [EvaluationContext ] = None ,
628626 flag_evaluation_options : typing .Optional [FlagEvaluationOptions ] = None ,
629- ) -> typing . Coroutine [ typing . Any , typing . Any , FlagEvaluationDetails [typing .Any ] ]:
627+ ) -> FlagEvaluationDetails [typing .Any ]:
630628 """
631629 Evaluate the flag requested by the user from the clients provider.
632630
@@ -772,7 +770,7 @@ async def _create_provider_evaluation(
772770 flag_key : str ,
773771 default_value : typing .Any ,
774772 evaluation_context : typing .Optional [EvaluationContext ] = None ,
775- ) -> typing . Coroutine [ typing . Any , typing . Any , FlagEvaluationDetails [typing .Any ] ]:
773+ ) -> FlagEvaluationDetails [typing .Any ]:
776774 """
777775 Asynchronous encapsulated method to create a FlagEvaluationDetail from a specific provider.
778776
@@ -801,7 +799,7 @@ async def _create_provider_evaluation(
801799 if not get_details_callable :
802800 raise GeneralError (error_message = "Unknown flag type" )
803801
804- resolution = await get_details_callable (* args )
802+ resolution = await get_details_callable (* args ) # type: ignore[misc]
805803 resolution .raise_for_error ()
806804
807805 # we need to check the get_args to be compatible with union types.
0 commit comments