Skip to content

Commit a1e0dbd

Browse files
committed
suppress warning about too many arguments
1 parent 9b3eaad commit a1e0dbd

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def username_pw_set(self, username: str, password: Optional[str] = None) -> None
395395
if password is not None:
396396
self._password = password
397397

398-
def connect(
398+
def connect( # noqa: PLR0913, too many arguments in function definition
399399
self,
400400
clean_session: bool = True,
401401
host: Optional[str] = None,
@@ -466,22 +466,7 @@ def connect(
466466
raise MMQTTException(exc_msg) from last_exception
467467
raise MMQTTException(exc_msg)
468468

469-
def _send_bytes(
470-
self,
471-
buffer: Union[bytes, bytearray, memoryview],
472-
):
473-
bytes_sent: int = 0
474-
bytes_to_send = len(buffer)
475-
view = memoryview(buffer)
476-
while bytes_sent < bytes_to_send:
477-
try:
478-
bytes_sent += self._sock.send(view[bytes_sent:])
479-
except OSError as exc:
480-
if exc.errno == EAGAIN:
481-
continue
482-
raise
483-
484-
def _connect( # noqa: PLR0912, PLR0915, Too many branches, Too many statements
469+
def _connect( # noqa: PLR0912, PLR0913, PLR0915, Too many branches, Too many arguments, Too many statements
485470
self,
486471
clean_session: bool = True,
487472
host: Optional[str] = None,

0 commit comments

Comments
 (0)