Skip to content

Commit

Permalink
fix(pyqt5To6): Avoid endless recursion because of baseClass (qgis#58785)
Browse files Browse the repository at this point in the history
baseClass is an attribute added by sipify script
Fixes qgis#58659
  • Loading branch information
troopa81 authored Sep 18, 2024
1 parent e74005e commit a6f34a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/pyqt5_to_pyqt6/pyqt5_to_pyqt6.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,10 @@ def all_subclasses(cls):
matched_classes = {item}.union(all_subclasses(item))

for key, value in item.__dict__.items():

if key == 'baseClass':
continue

if inspect.isclass(value) and type(value).__name__ == 'EnumType':
for ekey, evalue in value.__dict__.items():
for matched_class in matched_classes:
Expand Down

0 comments on commit a6f34a3

Please sign in to comment.