Browse Source

🎨 Auto format

pull/15336/head
pre-commit-ci-lite[bot] 1 month ago
committed by GitHub
parent
commit
0719e69e49
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 12
      fastapi/dependencies/models.py

12
fastapi/dependencies/models.py

@ -119,9 +119,7 @@ class Dependant:
_impartial(dunder_call)
) or inspect.isgeneratorfunction(_unwrapped_call(dunder_call)):
return True
dunder_unwrapped_call = getattr(
_unwrapped_call(self.call), "__call__", None
) # noqa: B004
dunder_unwrapped_call = getattr(_unwrapped_call(self.call), "__call__", None) # noqa: B004
if dunder_unwrapped_call is None:
return False # pragma: no cover
if inspect.isgeneratorfunction(
@ -147,9 +145,7 @@ class Dependant:
_impartial(dunder_call)
) or inspect.isasyncgenfunction(_unwrapped_call(dunder_call)):
return True
dunder_unwrapped_call = getattr(
_unwrapped_call(self.call), "__call__", None
) # noqa: B004
dunder_unwrapped_call = getattr(_unwrapped_call(self.call), "__call__", None) # noqa: B004
if dunder_unwrapped_call is None:
return False # pragma: no cover
if inspect.isasyncgenfunction(
@ -179,9 +175,7 @@ class Dependant:
_unwrapped_call(dunder_call)
):
return True
dunder_unwrapped_call = getattr(
_unwrapped_call(self.call), "__call__", None
) # noqa: B004
dunder_unwrapped_call = getattr(_unwrapped_call(self.call), "__call__", None) # noqa: B004
if dunder_unwrapped_call is None:
return False # pragma: no cover
if iscoroutinefunction(

Loading…
Cancel
Save