mirror of https://github.com/tiangolo/fastapi.git
fix optional return type
Signed-off-by: Jan Vollmer <jan@vllmr.dev>
This commit is contained in:
parent
c42b43f063
commit
513e943f96
|
|
@ -694,7 +694,7 @@ class APIRoute(routing.Route):
|
|||
return _should_embed_body_fields(self._flat_dependant.body_params)
|
||||
|
||||
@cached_property
|
||||
def body_field(self) -> Optional[ModelField]:
|
||||
def body_field(self) -> ModelField | None:
|
||||
return get_body_field(
|
||||
flat_dependant=self._flat_dependant,
|
||||
name=self.unique_id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue