Skip to content

Commit

Permalink
Add comment about workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-work committed Jan 11, 2024
1 parent 8fa6c31 commit 7056670
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions geojson_pydantic/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def validate_bbox(cls, bbox: Optional[BBox]) -> Optional[BBox]:

return bbox

# This return is untyped due to a workaround until this issue is resolved:
# https://github.com/tiangolo/fastapi/discussions/10661
@model_serializer(when_used="always", mode="wrap")
def clean_model(self, serializer: Any, info: SerializationInfo): # type: ignore [no-untyped-def]
"""Custom Model serializer to match the GeoJSON specification.
Expand Down

0 comments on commit 7056670

Please sign in to comment.