fake-bpy-module
fake-bpy-module copied to clipboard
Fake Blender Python API module collection for the code completion.
### System Information * OS: Windows 10 * fake_bpy_modules_4.0-20231118 ### Expected behavior A method named `get()` should return a value. ### Description about the bug `Mesh.uv_layers` is a `bpy_prop_collection[MeshUVLoopLayer]`, so...
When I run `gen_module.sh` I get the following error: ```python traceback error: Failed to format _.pyi: source contains syntax errors: ParseError { error: Lexical(UnicodeError), offset: 396, source_path: "" } Traceback...
The `Object.location` can be assigns a `Vector`, `list[float]`, or `tuple[float, float, float]` but only ever returns `Vector`. The type hints should reflect this. More generally, all `Vector` properties should be...
### System Information * OS: Windows 10 * fake_bpy_modules_4.0-20231118 ### Expected behavior The `name` attribute of an `Object` should be typed as a `str`. ### Description about the bug `Object`...
* 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...
* OS: Windows * Blender version: 4.0 * fake-bpy-module-4.0 20231118 The following code produces a bunch of type checking errors: ```python bl_mesh = bmesh.from_edit_mesh(cast(bpy.types.Mesh, bpy.context.edit_object.data)) bl_layer = bl_mesh.edges.layers.float.get("bevel_weight_edge") for bl_edge...
`addon_utils` module installed with `fake-bpy-module`:  Actual `addon_utils` (has doc strings for some methods and has default values for some arguments): 
### System Information * OS: Ubuntu 22.04 * Blender version: 4.0.2 * fake-bpy-module version: fake_bpy_module_latest-20231224-py3-none-any.whl ### Expected behavior | Member | Actual | Expected | |----|----|----| | `Context.active_object` | `'Object'`...
Hi, `bpy_prop_collection.get()` does not currently have a return type. It should be `Optional[GenericType]`.
`bpy_prop_collection.__getitem__()` can use slice, but is not present in the type hint. ```python def __getitem__(self, key: typing.Optional[typing.Union[int, str]] ) -> 'GenericType': ''' :param key: :type key: typing.Optional[typing.Union[int, str]] :rtype: 'GenericType'...