@@ -393,7 +393,7 @@ def username_pw_set(self, username: str, password: Optional[str] = None) -> None
393
393
if password is not None :
394
394
self ._password = password
395
395
396
- def connect (
396
+ def connect ( # noqa: PLR0913, too many arguments in function definition
397
397
self ,
398
398
clean_session : bool = True ,
399
399
host : Optional [str ] = None ,
@@ -464,22 +464,7 @@ def connect(
464
464
raise MMQTTException (exc_msg ) from last_exception
465
465
raise MMQTTException (exc_msg )
466
466
467
- def _send_bytes (
468
- self ,
469
- buffer : Union [bytes , bytearray , memoryview ],
470
- ):
471
- bytes_sent : int = 0
472
- bytes_to_send = len (buffer )
473
- view = memoryview (buffer )
474
- while bytes_sent < bytes_to_send :
475
- try :
476
- bytes_sent += self ._sock .send (view [bytes_sent :])
477
- except OSError as exc :
478
- if exc .errno == EAGAIN :
479
- continue
480
- raise
481
-
482
- def _connect ( # noqa: PLR0912, PLR0915, Too many branches, Too many statements
467
+ def _connect ( # noqa: PLR0912, PLR0913, PLR0915, Too many branches, Too many arguments, Too many statements
483
468
self ,
484
469
clean_session : bool = True ,
485
470
host : Optional [str ] = None ,
0 commit comments