fix optional return type

Signed-off-by: Jan Vollmer <jan@vllmr.dev>
This commit is contained in:
Jan Vollmer 2026-02-15 12:30:58 +01:00
parent c42b43f063
commit 513e943f96
No known key found for this signature in database
GPG Key ID: 19473D3A5AB433DA
1 changed files with 1 additions and 1 deletions

View File

@ -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,