diff --git a/python/pyqt/install.py b/python/pyqt/install.py index 66f919773..3d13bcac7 100644 --- a/python/pyqt/install.py +++ b/python/pyqt/install.py @@ -37,10 +37,6 @@ def fix_pyi_types(): lines = file.readlines() file.seek(0) for line in lines: - # inheriting from the missing sip.sipwrapper definition - # causes missing attributes not to be detected, as it's treating - # the class as inheriting from Any - line = line.replace("PyQt6.sip.wrapper", "object") # # remove blanket getattr in QObject which also causes missing # # attributes not to be detected if "def __getattr__(self, name: str) -> typing.Any" in line: diff --git a/qt/aqt/forms/build_ui.py b/qt/aqt/forms/build_ui.py index ab7e19038..2a371f046 100644 --- a/qt/aqt/forms/build_ui.py +++ b/qt/aqt/forms/build_ui.py @@ -42,10 +42,6 @@ def with_fixes_for_qt6(code: str) -> str: "QAction.PreferencesRole", "QAction.MenuRole.PreferencesRole" ) line = line.replace("QAction.AboutRole", "QAction.MenuRole.AboutRole") - line = line.replace( - "QComboBox.AdjustToMinimumContentsLength", - "QComboBox.SizeAdjustPolicy.AdjustToMinimumContentsLength", - ) outlines.append(line) return "\n".join(outlines)