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
I get the following error from mypy when trying to define a document class
Class cannot subclass 'Document' (has type 'Any')
I'm using pydantic as well, so I have the pydantic plugin installed. I don't understand why it thinks Document has type Any, from looking at the code it's just a subclass of pydantic's BaseModel ...
I've set
disallow_subclassing_any = False
for my module for now, but I don't like it. Should I write a stub file or is this an issue that can be fixed directly in Motor-ODM ?
pydantic==1.5.1
motor-odm==0.1.dev0
mypy==0.782
The text was updated successfully, but these errors were encountered:
I get the following error from
mypy
when trying to define a document classI'm using pydantic as well, so I have the pydantic plugin installed. I don't understand why it thinks
Document
has typeAny
, from looking at the code it's just a subclass ofpydantic
'sBaseModel
...I've set
disallow_subclassing_any = False
for my module for now, but I don't like it. Should I write a stub file or is this an issue that can be fixed directly in Motor-ODM ?
The text was updated successfully, but these errors were encountered: