Replies: 4 comments
-
|
@Andrej730 |
Beta Was this translation helpful? Give feedback.
-
|
Probably not - only by
or using some other hack, which might break at some point. So, the recommendation for users to use |
Beta Was this translation helpful? Give feedback.
-
|
@Andrej730 |
Beta Was this translation helpful? Give feedback.
-
|
@nutti sure, let's move it to discussions. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It seems as a consequence of #433, now a warning pops up in VS Code ("Import "bpy" could not be resolved from source Pylance[reportMissingModuleSource]"):
What do you think is the best workaround to avoid it?
Options that came to mind:
# pyright: ignore[reportMissingModuleSource]on the same line - fixes it, but it might get noisy# pyright: reportMissingModuleSource=noneat the top of the file/project - might disable this warning for other imports where it can be useful-stubs, but then it defies the puprose of Follow "Distributing type information" by renaming modules to *-stubs (such asbpy-stubs) #433Thinking about it more, I can't find any scenario where
reportMissingModuleSourcemight actually help in case of a Blender addon, since all the imports will be inside Blender's context either way, so their concrete sources shouldn't be discoverable inside VS Code project. SoreportMissingModuleSourceshould become a new disabled setting in all Blender related projects, along thereportInvalidTypeFormwe disable due to Blender API quirks.Does it makes sense, any caveats to this?
Beta Was this translation helpful? Give feedback.
All reactions