Skip to content

Commit 7056670

Browse files
committed
Add comment about workaround
1 parent 8fa6c31 commit 7056670

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

geojson_pydantic/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ def validate_bbox(cls, bbox: Optional[BBox]) -> Optional[BBox]:
5252

5353
return bbox
5454

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

0 commit comments

Comments
 (0)