Problem:
Pylint Error Message: “E1101: Module 'xxx' has no 'xxx' member'”
.
pylint no member issue but code still works in vscode
Python
–Python
syntax checker forvscode
Pylint is
static check
. When using a third-party library, some members will be created only when the code is running, and it can’t find members
Solution:
using pylint Django to enhance pylin int
steps
-
- install pylint Django
$ pip3 install pylint-django
Use pylint-django
in vscode
‘s setting.json
for pylint-django</code
"python.linting.pylintArgs": [
"--load-plugins",
"pylint_django"
]
-
-
- restart VSCode
-