1
0
Fork 0

fix name shadowing

This commit is contained in:
Sean Sube 2024-03-02 14:23:59 -06:00
parent fcbb3c421e
commit c2261620c4
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 4 additions and 4 deletions

View File

@ -492,10 +492,10 @@ def get_request_params(
) )
def get_dict_or_self(dict: Dict[str, Any], key: str) -> Any: def get_dict_or_self(obj: Dict[str, Any], key: str) -> Any:
if key in dict: if key in obj:
value = dict[key] value = obj[key]
if isinstance(value, dict): if isinstance(value, dict):
return value return value
return dict return obj