From d0a6d46f6e047d499f79d88c99a3049a9fe5182a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Jan 2023 10:53:14 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/dependencies/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi/dependencies/utils.py b/fastapi/dependencies/utils.py index 412bbfcad3..a551b46857 100644 --- a/fastapi/dependencies/utils.py +++ b/fastapi/dependencies/utils.py @@ -278,7 +278,7 @@ def get_typed_return_annotation(call: Callable[..., Any]) -> Any: globalns = getattr(call, "__globals__", {}) typed_annotation = get_typed_annotation(annotation, globalns) - if typed_annotation is type(None): # noqa: E721 + if typed_annotation is type(None): # noqa: E721 return None return typed_annotation