MongoEngine/mongoengine

vscode pylance intellisence can not find objects() function.

Closed this issue · 1 comments

image

I already inherited from Document class but the objects can not be hinted when i type it. However, the other functions can be correctly founded by pylance language server.
image
Can anyone give me a hand?

mongoengine is untyped for now, so you need to install types separately.

https://pypi.org/project/mongo-types/

And follow the instructions to define objects type for each class.