Plumb timeout from --timeout through MeshInterface

Fix C0301: Line too long

Ignore the pylint for 6 positional arguments
This commit is contained in:
horrible-knots
2025-10-12 19:28:19 -04:00
parent 7554c03a26
commit 2de7c30a27
6 changed files with 35 additions and 10 deletions

View File

@@ -32,15 +32,16 @@ class BLEInterface(MeshInterface):
class BLEError(Exception):
"""An exception class for BLE errors."""
def __init__(
def __init__( # pylint: disable=R0917
self,
address: Optional[str],
noProto: bool = False,
debugOut: Optional[io.TextIOWrapper]=None,
noNodes: bool = False,
timeout: int = 300,
) -> None:
MeshInterface.__init__(
self, debugOut=debugOut, noProto=noProto, noNodes=noNodes
self, debugOut=debugOut, noProto=noProto, noNodes=noNodes, timeout=timeout
)
self.should_read = False