@@ -701,11 +701,6 @@ async def _create_provider_evaluation_async(
701
701
default_value : typing .Any ,
702
702
evaluation_context : typing .Optional [EvaluationContext ] = None ,
703
703
) -> FlagEvaluationDetails [typing .Any ]:
704
- args = (
705
- flag_key ,
706
- default_value ,
707
- evaluation_context ,
708
- )
709
704
get_details_callables_async : typing .Mapping [
710
705
FlagType , GetDetailCallableAsync
711
706
] = {
@@ -719,7 +714,11 @@ async def _create_provider_evaluation_async(
719
714
if not get_details_callable :
720
715
raise GeneralError (error_message = "Unknown flag type" )
721
716
722
- resolution = await get_details_callable (* args )
717
+ resolution = await get_details_callable ( # type: ignore[call-arg]
718
+ flag_key = flag_key ,
719
+ default_value = default_value ,
720
+ evaluation_context = evaluation_context ,
721
+ )
723
722
resolution .raise_for_error ()
724
723
725
724
# we need to check the get_args to be compatible with union types.
@@ -753,12 +752,6 @@ def _create_provider_evaluation(
753
752
:return: a FlagEvaluationDetails object with the fully evaluated flag from a
754
753
provider
755
754
"""
756
- args = (
757
- flag_key ,
758
- default_value ,
759
- evaluation_context ,
760
- )
761
-
762
755
get_details_callables : typing .Mapping [FlagType , GetDetailCallable ] = {
763
756
FlagType .BOOLEAN : provider .resolve_boolean_details ,
764
757
FlagType .INTEGER : provider .resolve_integer_details ,
@@ -771,7 +764,11 @@ def _create_provider_evaluation(
771
764
if not get_details_callable :
772
765
raise GeneralError (error_message = "Unknown flag type" )
773
766
774
- resolution = get_details_callable (* args )
767
+ resolution = get_details_callable ( # type: ignore[call-arg]
768
+ flag_key = flag_key ,
769
+ default_value = default_value ,
770
+ evaluation_context = evaluation_context ,
771
+ )
775
772
resolution .raise_for_error ()
776
773
777
774
# we need to check the get_args to be compatible with union types.
0 commit comments