Skip to content

Commit

Permalink
Remove type hinting from clean_model as workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-work committed Jan 4, 2024
1 parent affc75a commit e528d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geojson_pydantic/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def validate_bbox(cls, bbox: Optional[BBox]) -> Optional[BBox]:
return bbox

@model_serializer(when_used="always", mode="wrap")
def clean_model(self, serializer: Any, info: SerializationInfo) -> Dict[str, Any]:
def clean_model(self, serializer: Any, info: SerializationInfo):
"""Custom Model serializer to match the GeoJSON specification.
Used to remove fields which are optional but cannot be null values.
Expand Down

0 comments on commit e528d0b

Please sign in to comment.