From 0719e69e49fb1465aceb4e6d2786b8091db26eb4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 16:53:31 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Auto=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/dependencies/models.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/fastapi/dependencies/models.py b/fastapi/dependencies/models.py index 3f3bc2f0d..93762e7c4 100644 --- a/fastapi/dependencies/models.py +++ b/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(