Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode pylance intellisence can not find objects() function. #2817

Closed
koujiangheng opened this issue May 21, 2024 · 1 comment
Closed

vscode pylance intellisence can not find objects() function. #2817

koujiangheng opened this issue May 21, 2024 · 1 comment

Comments

@koujiangheng
Copy link

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?

@last-partizan
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants