fake-bpy-module icon indicating copy to clipboard operation
fake-bpy-module copied to clipboard

override_context parameter of bpy.ops.* functions is not fully typed

Open arcusmaximus opened this issue 1 year ago • 0 comments

  • 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.

image

The same goes for the return values of bmesh.ops.*

arcusmaximus avatar Jan 27 '24 19:01 arcusmaximus