Im having an issue where pylint flags the CoInitialize() line. "has no 'CoInitialize' Member pyline(no-member)"
from win32com.client import Dispatch #speaking in windows
import pythoncom
pythoncom.CoInitialize()
Windows_Speak = Dispatch("SAPI.SpVoice")
How do you do implement the solution that is mentioned everywhere --extension-pkg-whitelist=pythoncom
in VSCode?
I have tried puttin this in the configurations:
{
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
} ],
// Whitelist NumPy to remove lint errors
"python.linting.pylintArgs": [
"c-extension-no-member",
"--extension-pkg-whitelist=pythoncom",
"--unsafe-load-any-extension=y",
"--extension-pkg-allow-list=pythoncom",
"--ignored-classes=pythoncom",
"--ignored-modules=pythoncom",
"--generate-members=pythoncom.*"
]
}