This is the code I have:
import pygame
pygame.init()
I\'m very confused because if I try to run the file, then there seems to be no issue,
I had the same issue with one of my modules. This is what I did to resolve the problem. (I'm using visual studio on windows 10)
"python.linting.pylintArgs": ["--generate-members"] below one of the lines (put a comma if necessary).json file (CTRL+S)For me, the code looks like this :
{
"breadcrumbs.enabled": false,
"editor.minimap.enabled": false,
"python.pythonPath": "C:\\Users\\xxx\\Anaconda3",
"terminal.integrated.rendererType": "dom",
"window.menuBarVisibility": "default",
"workbench.activityBar.visible": false,
"workbench.statusBar.visible": true,
"python.linting.pylintArgs": ["--generate-members"], //line to add
"[json]": {
}
}
Hope it helps. Credit to @Alamnoor on github