Add dunder methods, hidden type discovery, uniform_float override, and docstring fixes
- Introspect dunder methods (__getitem__, __len__, __add__, __matmul__, etc.) on C extension classes with runtime probing for return types - Discover hidden C types from property values (e.g. MatrixAccess from Matrix.col) - Add gpu.types override for uniform_float to accept Matrix, Vector, Euler, Quaternion, and Color (matching Blender's mathutils_array_parse C implementation) - Extend apply_overrides to support ClassName.method_name keys for struct methods - Parse standalone :type: annotations in property docstrings (is_frozen -> bool) - Strip (readonly) and (never None) from docstring type annotations - Add :raises to directive lookahead to prevent rtype bleeding into raises text - Fix NoneType -> None normalization in runtime type probing Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"GPUShader.uniform_float": {
|
||||
"params": {
|
||||
"value": "float | int | Sequence[float] | mathutils.Matrix | mathutils.Vector | mathutils.Euler | mathutils.Quaternion | mathutils.Color"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user