You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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=none at the top of the file/project - might disable this warning for other imports where it can be useful
Thinking about it more, I can't find any scenario where reportMissingModuleSource might 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. So reportMissingModuleSource should become a new disabled setting in all Blender related projects, along the reportInvalidTypeForm we disable due to Blender API quirks.
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?