Closed anatawa12 closed 2 years ago
@anatawa12
Should not have a type error.
fake-bpy-module exposes bpy.context
as a module.
I think that there is no issue for the code completion.
However, please let me know if you have a issue in your workflow about this hack.
please let me know if you have a issue in your workflow about this hack.
Context can be passed as first positional parameter of operators (currently fake-bpy-module doesn't support yet) so in my function, I have parameter with type Context. It should be possible to paas bpy.context
to such a parameter.
Ah, I understand this issue relates to #103. Thanks.
This issue is now fixed.
System Information
Expected behavior
The behavior you expect about the feature you reported.
Should not have a type error.
Description about the bug
The description about the bug.
bpy.context
is a instance ofbpy.types.Context
however it's not in fake-bpy-module.Screenshots/Files [Optional]
It is good to solve the bug if you attach the screenshots or .blend file.
Additional comments [Optional]