@@ -393,7 +393,7 @@ def username_pw_set(self, username: str, password: Optional[str] = None) -> None
393393 if password is not None :
394394 self ._password = password
395395
396- def connect (
396+ def connect ( # noqa: PLR0913, too many arguments in function definition
397397 self ,
398398 clean_session : bool = True ,
399399 host : Optional [str ] = None ,
@@ -464,22 +464,7 @@ def connect(
464464 raise MMQTTException (exc_msg ) from last_exception
465465 raise MMQTTException (exc_msg )
466466
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
483468 self ,
484469 clean_session : bool = True ,
485470 host : Optional [str ] = None ,
0 commit comments