Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
234 views
in Technique[技术] by (71.8m points)

Undefined variable after Python class import in VS Code

I am using VS Code with Python extension. However when I import * from package and use it:

from mongoengine import *

someMethodFromPackage()

warning appears:

enter image description here

Is there any way to fix this warning without explicit naming of all imported classes?

from mongoengine import Document, StringField, EmailField, BinaryField, IntField, FloatField, ...
question from:https://stackoverflow.com/questions/65865597/undefined-variable-after-python-class-import-in-vs-code

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...