nutti / fake-bpy-module

Fake Blender Python API module collection for the code completion.
MIT License
1.31k stars 95 forks source link

Spurious unions with typing.Any #181

Closed Road-hog123 closed 1 month ago

Road-hog123 commented 5 months ago

System Information

Expected behavior

The name attribute of an Object should be typed as a str.

Description about the bug

Object inherits from ID, whose name attribute is typed as Union[str, typing.Any]; on closer inspection this is pervasive throughout types.py for boolean, string and enum type annotations.

nutti commented 1 month ago

This issue is fixed now.