Closed Road-hog123 closed 3 weeks ago
This is because bpy.types.Context
is not processed by DependencyBuilder which resolves the dependency by adding the modules to be imported.
https://github.com/nutti/fake-bpy-module/blob/master/src/fake_bpy_module/transformer/dependency_builder.py
If you want to process bpy.types.Context
by DependencyBuilder, you need to add ClassRef
node to it.
So, you may solve this by following code.
collections.abc.Iterable[tuple[str, str, str] | tuple[str, str, str, int] | tuple[str, str, str, str, int] | None]
| collections.abc.Callable[[typing.Any, :class:`bpy.types.Context` | None], collections.abc.Iterable[tuple[str, str, str] | tuple[str, str, str, int] | tuple[str, str, str, str, int] | None]]
My understanding of the documentation is that the
items
parameter should have the typeI am happy to create a mod file to enact this change, however I have encountered two issues:
bpy.types
needs to be imported to give access toContext