fake-bpy-module
fake-bpy-module copied to clipboard
Fake Blender Python API module collection for the code completion.
See example below - typing errors converting Vector to tuple/list/use slices though it is actually possible. ```python from mathutils import Vector from typing import assert_type v = Vector() # Argument...
- Adds slicing support to `Color`, `Euler`, `Quaternion`, `Vector` and `Matrix`. - Adds `__setitem__` for `Color`, `Euler` and `Matrix` which did not previously have them. - Removes return value from...
`boolean array of n items` was being typed as `list[bool]`, which was then incompatible with `tuple` default values, and was inconsistent with `int/float array of n items` which is typed...
I keep making the mistake of writing a single-item tuple when I mean a homogenous tuple of undefined length, and nobody caught me on it. Perhaps we should look into...
### Purpose of the pull request Add slice support for `BMElemSeq`, `BMVertSeq`, `BMEdgeSeq`, and `BMFaceSeq`. ### Description about the pull request - Similar to #241
On the left it's `bpy/utils/__init__.py` from fake-bpy, on the right - Blender 4.1 `bpy/utils/__init__.py`. Note two issues: 1) `path` and `create` have a redundant `| None` in their types. 2)...
File: `bpy/utils/__init__.pyi` `unregister_manual_map`, `unregister_tool`, `user_resource` and some other signatures appear twice. 
See example below, since those methods on `ID` and `Depsgraph` are defined with `-> ID`, it always returns `ID` and doesn't consider the actual type.  To resolve this for...
### System Information * OS: Fedora 39 Linux * Blender version: 4.1 ### Expected behavior Module `bpy` shows `context`, `data`, etc. ### Description about the bug Module `bpy` is empty...
### System Information * OS: Windows * Blender version: 4.1 * Pycharm ### Description about the bug seems that type hint is not right 