fix name shadowing
This commit is contained in:
parent
fcbb3c421e
commit
c2261620c4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue