Fix metaclass issue with abc.ABC and Qt.

This commit is contained in:
Mikaël Capelle
2020-07-26 19:40:14 +02:00
parent e8bbd0c3a8
commit b4eda1eaba
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -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.
+1 -1
View File
@@ -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.
"""