Skip to content

Commit

Permalink
Attempt with Any type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-work committed Jan 4, 2024
1 parent e528d0b commit 218c591
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):
def clean_model(self, serializer: Any, info: SerializationInfo) -> Any:
"""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 218c591

Please sign in to comment.