Browse Source

Fix some lint.

fixes
Ben Niemann 2 years ago
parent
commit
d42dbc2dd0
  1. 6
      3rdparty/typeshed/PyQt5/QtWidgets.pyi
  2. 3
      noisicaa/ui/editor_app.py
  3. 1
      noisicaa/ui/editor_window.py

6
3rdparty/typeshed/PyQt5/QtWidgets.pyi vendored

@ -2715,6 +2715,8 @@ class QDial(QAbstractSlider):
class QDialogButtonBox(QWidget):
accepted = ... # type: PYQT_SIGNAL
rejected = ... # type: PYQT_SIGNAL
class StandardButton(int): ...
NoButton = ... # type: 'QDialogButtonBox.StandardButton'
@ -2780,10 +2782,10 @@ class QDialogButtonBox(QWidget):
def event(self, event: QtCore.QEvent) -> bool: ...
def changeEvent(self, event: QtCore.QEvent) -> None: ...
def rejected(self) -> None: ...
#def rejected(self) -> None: ...
def helpRequested(self) -> None: ...
def clicked(self, button: QAbstractButton) -> None: ...
def accepted(self) -> None: ...
#def accepted(self) -> None: ...
def centerButtons(self) -> bool: ...
def setCenterButtons(self, center: bool) -> None: ...
def button(self, which: 'QDialogButtonBox.StandardButton') -> QPushButton: ...

3
noisicaa/ui/editor_app.py

@ -486,7 +486,8 @@ class EditorApp(ui_base.AbstractEditorApp):
try:
os.unlink(self.__run_sentinel_path)
except OSError as exc:
logger.warning("Failed to delete run sentinel file '%s': %s", self.__run_sentinel_path, exc)
logger.warning(
"Failed to delete run sentinel file '%s': %s", self.__run_sentinel_path, exc)
# TODO: quit() is not a method of ProcessBase, only in UIProcess. Find some way to
# fix that without a cyclic import.

1
noisicaa/ui/editor_window.py

@ -34,7 +34,6 @@ from PyQt5 import QtGui
from PyQt5 import QtWidgets
from noisicaa.core import storage
from noisicaa import audioproc
from . import project_view
from . import project_debugger
from . import ui_base

Loading…
Cancel
Save