fake-bpy-module
fake-bpy-module copied to clipboard
override_context parameter of bpy.ops.* functions is not fully typed
- OS: Windows
- Blender version: 4.0
- fake-bpy-module-4.0 20231118
Calling any function in bpy.ops gives me a type error with VS Code's Pyright in strict mode. The reason is that the override_context parameter is typed as typing.Optional[typing.Union[typing.Dict, 'bpy.types.Context']] with the typing.Dict missing its generic parameters. Extending it to typing.Dict[str, typing.Any] would solve the error.
The same goes for the return values of bmesh.ops.*