From b4eda1eaba4fc2b699747a9be2eb52ad67dd90dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Sun, 26 Jul 2020 19:40:04 +0200 Subject: [PATCH] Fix metaclass issue with abc.ABC and Qt. --- configs/config-2.3.0.yml | 5 +++-- stubs/2.3.0/mobase.pyi | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configs/config-2.3.0.yml b/configs/config-2.3.0.yml index d0dd52f..1dda812 100644 --- a/configs/config-2.3.0.yml +++ b/configs/config-2.3.0.yml @@ -2166,14 +2166,15 @@ mobase: ISaveGameInfoWidget: __doc__: Base class for a save game info widget. - __abstract__: true + # Class not abstract because it conflicts with Qt metaclass: + # __abstract__: true __init__: args: parent: Parent widget. _widget: - abstract: false returns: The underlying `QWidget`. setSave: + abstract: true __doc__: Set the save file to display in this widget. args: save: Path to the save file. diff --git a/stubs/2.3.0/mobase.pyi b/stubs/2.3.0/mobase.pyi index efcde6d..87a38a8 100644 --- a/stubs/2.3.0/mobase.pyi +++ b/stubs/2.3.0/mobase.pyi @@ -2874,7 +2874,7 @@ class ISaveGame: """ ... -class ISaveGameInfoWidget(abc.ABC, PyQt5.QtWidgets.QWidget): +class ISaveGameInfoWidget(PyQt5.QtWidgets.QWidget): """ Base class for a save game info widget. """