Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreF committed Jan 4, 2024
1 parent a98b9d8 commit 153eb4d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 6 additions & 6 deletions src/paho/mqtt/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 153eb4d

Please sign in to comment.