Remove some lint.

main
Ben Niemann 1 year ago
parent d132c430c8
commit 9181ae4118

@ -26,6 +26,9 @@ from noisicaa import core
class PyEngine:
program_changed: core.Callback = ...
notifications: core.Callback = ...
block_size: int = ...
sample_rate: int = ...
master_volume: float = ...
def __init__(self) -> None: ...
def add_node_message_listener(self, node_id: int, cb: Callable[[bytes], None]) -> int: ...
@ -39,6 +42,7 @@ class PyEngine:
def connect_ports(self, src_node: int, src_port: str, dest_node: int, dest_port: str) -> None: ...
def disconnect_ports(self, src_node: int, src_port: str, dest_node: int, dest_port: str) -> None: ...
def set_control_value(self, node_id: int, port: str, value: float) -> None: ...
def send_node_message(self, node_id: int, msg: bytes) -> None: ...
def connect_io_buffer(self, node_id: int, idx: int, device: str, port: str) -> None: ...
def clear_graph(self) -> None: ...
def compile_graph(self) -> None: ...

@ -36,7 +36,7 @@ class Node(GraphNode):
self.setNodeMessageHandler(self.__handleNodeMessage)
def __handleNodeMessage(self, msg_serialized_unused: bytes) -> None:
def __handleNodeMessage(self, unused_msg_serialized: bytes) -> None:
# Don't care what the messasge it, because it just means 'click'.
self.click.emit()

@ -19,12 +19,10 @@
# @end:license
import logging
from typing import Any, Dict, List
from typing import Any
from PySide2.QtCore import Qt
from PySide2 import QtCore
from noisicaa import engine
from noisicaa.ui import ui_base
from noisicaa.ui.GraphNode import GraphNode
from . import node_message_generated as node_message_fb

@ -168,7 +168,7 @@ class MainApp(App):
self._engine = engine_lib.Engine()
self._engine.notifications.add(self.__handleEngineNotification)
self.engineMasterVolume = float(settings.value('masterVolume', 1.0))
self.engineMasterVolume = float(str(settings.value('masterVolume', '1.0')))
logger.info("Initialize node db...")
builder = flatbuffers.Builder(1024)

Loading…
Cancel
Save