mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
fix(pyqt5To6): Avoid endless recursion because of baseClass (#58785)
baseClass is an attribute added by sipify script Fixes #58659
This commit is contained in:
parent
e74005e9c5
commit
a6f34a37bc
@ -614,6 +614,10 @@ def get_class_enums(item):
|
|||||||
matched_classes = {item}.union(all_subclasses(item))
|
matched_classes = {item}.union(all_subclasses(item))
|
||||||
|
|
||||||
for key, value in item.__dict__.items():
|
for key, value in item.__dict__.items():
|
||||||
|
|
||||||
|
if key == 'baseClass':
|
||||||
|
continue
|
||||||
|
|
||||||
if inspect.isclass(value) and type(value).__name__ == 'EnumType':
|
if inspect.isclass(value) and type(value).__name__ == 'EnumType':
|
||||||
for ekey, evalue in value.__dict__.items():
|
for ekey, evalue in value.__dict__.items():
|
||||||
for matched_class in matched_classes:
|
for matched_class in matched_classes:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user