Code cleanup: Use pass
instead of ellipsis (...
) for abstractmethod
s
Fix a few other issues pointed out by MultisampledNight Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
This commit is contained in:
parent
7a04f7b5be
commit
a3d09ae288
5 changed files with 14 additions and 16 deletions
|
@ -190,7 +190,7 @@ class EGLSyncListItem(QListWidgetItem):
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def action(self) -> Union[str, bool]:
|
def action(self) -> Union[str, bool]:
|
||||||
...
|
pass
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def app_name(self):
|
def app_name(self):
|
||||||
|
@ -199,7 +199,7 @@ class EGLSyncListItem(QListWidgetItem):
|
||||||
@property
|
@property
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def app_title(self) -> str:
|
def app_title(self) -> str:
|
||||||
...
|
pass
|
||||||
|
|
||||||
|
|
||||||
class EGLSyncExportItem(EGLSyncListItem):
|
class EGLSyncExportItem(EGLSyncListItem):
|
||||||
|
@ -279,12 +279,12 @@ class EGLSyncListGroup(QGroupBox):
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def action(self):
|
def action(self):
|
||||||
...
|
pass
|
||||||
|
|
||||||
@pyqtSlot(list)
|
@pyqtSlot(list)
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def show_errors(self, errors: List):
|
def show_errors(self, errors: List):
|
||||||
...
|
pass
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def items(self) -> Iterable[EGLSyncListItem]:
|
def items(self) -> Iterable[EGLSyncListItem]:
|
||||||
|
|
|
@ -431,7 +431,6 @@ class RareGame(RareGameSlim):
|
||||||
ret = False
|
ret = False
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def needs_verification(self) -> bool:
|
def needs_verification(self) -> bool:
|
||||||
"""!
|
"""!
|
||||||
|
@ -633,7 +632,6 @@ class RareGame(RareGameSlim):
|
||||||
if ask_sync_saves:
|
if ask_sync_saves:
|
||||||
args.extend("--ask-sync-saves")
|
args.extend("--ask-sync-saves")
|
||||||
|
|
||||||
# kill me, if I don't change it before commit
|
|
||||||
QProcess.startDetached(executable, args)
|
QProcess.startDetached(executable, args)
|
||||||
logger.info(f"Start new Process: ({executable} {' '.join(args)})")
|
logger.info(f"Start new Process: ({executable} {' '.join(args)})")
|
||||||
self.game_process.connect_to_server(on_startup=False)
|
self.game_process.connect_to_server(on_startup=False)
|
||||||
|
|
|
@ -42,19 +42,19 @@ class CollapsibleBase(object):
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def isChecked(self) -> bool:
|
def isChecked(self) -> bool:
|
||||||
...
|
pass
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def click(self) -> None:
|
def click(self) -> None:
|
||||||
...
|
pass
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def addToLayout(self, widget: QWidget) -> None:
|
def addToLayout(self, widget: QWidget) -> None:
|
||||||
...
|
pass
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def sizeHint(self) -> QSize:
|
def sizeHint(self) -> QSize:
|
||||||
...
|
pass
|
||||||
|
|
||||||
def animationStart(self, checked):
|
def animationStart(self, checked):
|
||||||
direction = QAbstractAnimation.Forward if checked else QAbstractAnimation.Backward
|
direction = QAbstractAnimation.Forward if checked else QAbstractAnimation.Backward
|
||||||
|
|
Loading…
Reference in a new issue