nutti / fake-bpy-module

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

Fix BMesh typing (#179) #232

Closed Road-hog123 closed 1 month ago

Road-hog123 commented 1 month ago

Fixes #179

*Presently these methods get/set Any—to fix this BMLayerItem needs to be made generic (trivial), but that generic type needs to come from BMLayerCollection which also needs to be made generic, which involves modding all of its methods and uses (non-trivial), and I don't think it's currently possible to bind that generic type to BMLayerItem (but it might be after #161's work on PEP 695 is implemented?).

nutti commented 1 month ago

@Road-hog123

Thank you for your contribution! If this PR is ready, please remove WIP status.

Road-hog123 commented 1 month ago

Together with #122374 - PyAPI Doc: improve BMesh typing most issues with BMesh should be fixed. 👍

nutti commented 1 month ago

@Road-hog123

Thank you for your effort to fix the issue!