nutti / fake-bpy-module

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

Some child classes inherit from both their parent and grandparent, causing "Cannot create consistent method ordering" error #286

Closed Road-hog123 closed 2 months ago

Road-hog123 commented 3 months ago

bl_operators/bone_selection_sets/__init__.pyi:

class POSE_OT_selection_set_copy(_PoseModeOnlyMixin, _NeedSelSetMixin)

The class should only inherit from the latter, as in the source scripts/startup/bl_operators/bone_selection_sets.py:

class _PoseModeOnlyMixin
class _NeedSelSetMixin(_PoseModeOnlyMixin)
class POSE_OT_selection_set_copy(_NeedSelSetMixin, Operator)
nutti commented 2 months ago

This issue is now fixed.

Road-hog123 commented 2 months ago

The error is resolved, but I'm now seeing the child inheriting only from the grandparent instead of the parent:

class POSE_OT_selection_set_copy(_PoseModeOnlyMixin, bpy.types.Operator)
nutti commented 2 months ago

This is a trivial bug. Fixed now.