You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from geojson_pydantic import Feature, Polygon
from pydantic import BaseModel
class MyModel(BaseModel):
geojson: Feature[Polygon, dict]
and running mypy i seem to get the following errors:
schemas.py:5: error: Module "geojson_pydantic" does not explicitly export attribute "Feature"; implicit reexport disabled
from geojson_pydantic import Feature, Polygon
^
schemas.py:5: error: Module "geojson_pydantic" does not explicitly export attribute "Polygon"; implicit reexport disabled
from geojson_pydantic import Feature, Polygon
^
Found 2 errors in 1 file (checked 8 source files)
Am i using this in the right way ? the code behaves as expected, but the type declaration doesnt like me using the types from the main package, should i explicitly import them from their source location ?
The text was updated successfully, but these errors were encountered:
When using this package in the following way:
and running
mypy
i seem to get the following errors:Am i using this in the right way ? the code behaves as expected, but the type declaration doesnt like me using the types from the main package, should i explicitly import them from their source location ?
The text was updated successfully, but these errors were encountered: