diff --git a/ChangeLog.txt b/ChangeLog.txt index 4b2ebc3b..e077f23b 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -3,7 +3,7 @@ v2.0.0 - 2023-xx-xx - **BREAKING** Drop support for Python 2.7, Python 3.5 and Python 3.6 Minimum tested version is Python 3.7 -- **BREAKING** connnect_srv changed it signature to take an additional bind_port parameter. +- **BREAKING** connect_srv changed it signature to take an additional bind_port parameter. This is a breaking change, but in previous version connect_srv was broken anyway. Closes #493. - Add types to Client class, which caused few change which should be compatible. diff --git a/src/paho/mqtt/publish.py b/src/paho/mqtt/publish.py index 259939eb..1fdac2d6 100644 --- a/src/paho/mqtt/publish.py +++ b/src/paho/mqtt/publish.py @@ -35,12 +35,12 @@ from typing_extensions import NotRequired, Required, TypedDict - class AuthParamater(TypedDict, total=False): + class AuthParameter(TypedDict, total=False): username: Required[str] password: NotRequired[str] - class TLSParamater(TypedDict, total=False): + class TLSParameter(TypedDict, total=False): ca_certs: Required[str] certfile: NotRequired[str] keyfile: NotRequired[str] @@ -106,8 +106,8 @@ def multiple( client_id: str = "", keepalive: int = 60, will: MessageDict | None = None, - auth: AuthParamater | None = None, - tls: TLSParamater | None = None, + auth: AuthParameter | None = None, + tls: TLSParameter | None = None, protocol: int = paho.MQTTv311, transport: str = "tcp", proxy_args: Any | None = None, @@ -229,8 +229,8 @@ def single( client_id: str = "", keepalive: int = 60, will: MessageDict | None = None, - auth: AuthParamater | None = None, - tls: TLSParamater | None = None, + auth: AuthParameter | None = None, + tls: TLSParameter | None = None, protocol: int = paho.MQTTv311, transport: str = "tcp", proxy_args: Any | None = None, diff --git a/tests/test_client.py b/tests/test_client.py index e557ef9c..a4fe359f 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -320,7 +320,7 @@ def callback2(client, userdata, msg): class Test_compatibility: """ - Few test for backward compatibility + Some tests for backward compatibility """ def test_change_error_code_to_enum(self):