Closed AgainPsychoX closed 7 months ago
Python scripts are super useful, but I get annoyed by the IDE/Pylance warning about Import("env") and env being not defined:
Import("env")
env
Is there a way to do something about it? Maybe some dummy python package (PlatformIO-related) that I could "import" the Import and env?
Import
Duplicate of https://community.platformio.org/t/import-is-not-defined-pylance-for-extra-scripts/35570/8?u=ivankravets
Wouldn't it be better to have valid typings? Also, I have multiple lines with env used, so I need to add a lot of # type: ignore which makes everything ugly and type checking on those lines useless...
# type: ignore
Python scripts are super useful, but I get annoyed by the IDE/Pylance warning about
Import("env")
andenv
being not defined:Is there a way to do something about it? Maybe some dummy python package (PlatformIO-related) that I could "import" the
Import
andenv
?