From 218c591dafe4da4d1054b1447dc0af9f3ac267ec Mon Sep 17 00:00:00 2001 From: Markus Anthony Doerheim Ho-Yen <96105947+markus-work@users.noreply.github.com> Date: Thu, 4 Jan 2024 10:48:10 +0100 Subject: [PATCH] Attempt with Any type hinting --- geojson_pydantic/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geojson_pydantic/base.py b/geojson_pydantic/base.py index 299cfb8..c7f7936 100644 --- a/geojson_pydantic/base.py +++ b/geojson_pydantic/base.py @@ -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.