Jonathan Plasse
Jonathan Plasse
`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'...
Currently, `bpy_prop_collection.values()` returns `list` it should return `list[GenericType]`.
- The resolution of #132 cause a regression in my code The following code does not pass Pyright or MyPy. ```python import bpy bpy.context.active_object.parent_vertices = [1, 2, 3] ``` -...
In .pyi files, the most recent syntax of python can be used, as it is only used for static analysis. Therefore, these changes can be made: - [ ] Remove...
The following code is valid ```python from mathutils import Color, Euler Color()[0] Euler()[0] ``` This is the following code. ```python class Color: def __getitem__(self, key: int) -> float: ... class...
`Matrix`, `Quaternion`, and `Vector` `@` operation is incompatible with `Sequence[float]`. Only `__matmul__` is needed `__rmatmul__` and `__imatmul__` can be removed. The following code is all the valid `@` operations. ```python...
`bpy.types.Context.active_object` type should be `Optional[Object]` instead of `Object` only. In general, I think that all active property could be optional. `bpy.types.Object.active_material` should also be optional.
Hi, Love your plugin! I extensively use pydantic in my projects and was unhappy that I had to add `model.dict()` for each asserts. So, I added an automatic convertion to...
This would allow having the dev environment automatically set up and allow using code spaces. https://code.visualstudio.com/docs/devcontainers/containers
# Improve Code Quality ## Improve typing - [x] Use `mypy` strict mode - [x] Add `py.typed` to enable typing (c.f. #73, PEP 561 compliant) ## [pre-commit](https://pre-commit.com/) - [pyupgrade](https://github.com/asottile/pyupgrade) -...