@@ -701,11 +701,6 @@ async def _create_provider_evaluation_async(
701701 default_value : typing .Any ,
702702 evaluation_context : typing .Optional [EvaluationContext ] = None ,
703703 ) -> FlagEvaluationDetails [typing .Any ]:
704- args = (
705- flag_key ,
706- default_value ,
707- evaluation_context ,
708- )
709704 get_details_callables_async : typing .Mapping [
710705 FlagType , GetDetailCallableAsync
711706 ] = {
@@ -719,7 +714,11 @@ async def _create_provider_evaluation_async(
719714 if not get_details_callable :
720715 raise GeneralError (error_message = "Unknown flag type" )
721716
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+ )
723722 resolution .raise_for_error ()
724723
725724 # we need to check the get_args to be compatible with union types.
@@ -753,12 +752,6 @@ def _create_provider_evaluation(
753752 :return: a FlagEvaluationDetails object with the fully evaluated flag from a
754753 provider
755754 """
756- args = (
757- flag_key ,
758- default_value ,
759- evaluation_context ,
760- )
761-
762755 get_details_callables : typing .Mapping [FlagType , GetDetailCallable ] = {
763756 FlagType .BOOLEAN : provider .resolve_boolean_details ,
764757 FlagType .INTEGER : provider .resolve_integer_details ,
@@ -771,7 +764,11 @@ def _create_provider_evaluation(
771764 if not get_details_callable :
772765 raise GeneralError (error_message = "Unknown flag type" )
773766
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+ )
775772 resolution .raise_for_error ()
776773
777774 # we need to check the get_args to be compatible with union types.
0 commit comments