mirror of https://github.com/tiangolo/fastapi.git
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
This commit is contained in:
parent
e1843d0e08
commit
d0a6d46f6e
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue