mirror of https://github.com/tiangolo/fastapi.git
🎨 Auto format
This commit is contained in:
parent
29ccbbc119
commit
a32387757e
|
|
@ -38,7 +38,10 @@ try:
|
|||
from pydantic_extra_types import coordinate
|
||||
|
||||
encoders_by_extra_type: dict[type[Any], Callable[[Any], Any]] = {
|
||||
coordinate.Coordinate: lambda o: {"latitude": o.latitude, "longitude": o.longitude},
|
||||
coordinate.Coordinate: lambda o: {
|
||||
"latitude": o.latitude,
|
||||
"longitude": o.longitude,
|
||||
},
|
||||
et_color.Color: str,
|
||||
}
|
||||
except ImportError:
|
||||
|
|
|
|||
Loading…
Reference in New Issue