Skip to content

Commit 27f49cc

Browse files
committed
Typo fixes
1 parent 798fbb1 commit 27f49cc

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

examples/async/update-connection-async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
async def update_connection_async(args: Dict[str, Any]) -> None:
2828
"""Update the settings for [key][entry] of the 1st matching connection"""
2929

30-
# Get the connection path of the connection(s) with the recieved id
30+
# Get the connection path of the connection(s) with the received id
3131
fn = NetworkManagerSettings().get_connections_by_id(args["connection_id"])
3232
connection_paths = await fn
3333
if not connection_paths:

sdbus_async/networkmanager/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class NmAgentManagerUserCanceledError(
7272
)
7373

7474

75-
# Errors returned by Connetion objects.
75+
# Errors returned by Connection objects.
7676
class NmConnectionFailedError(
7777
DbusFailedError, NetworkManagerBaseError):
7878
"""Unknown or unspecified error."""

sdbus_async/networkmanager/objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373

7474

7575
class NetworkManager(NetworkManagerInterfaceAsync):
76-
"""Network Manger main object
76+
"""Network Manager main object
7777
7878
Implements :py:class:`NetworkManagerInterfaceAsync`
7979

sdbus_async/networkmanager/settings/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def to_settings_dict(self, defaults: bool = False) -> Dict[str, Any]:
4242
The key names provided are exactly as documented in these tables:
4343
https://networkmanager.dev/docs/api/latest/nm-settings-dbus.html
4444
45-
Contrary to dataclasses.asdict(), it provides the orignal dbus keys,
45+
Contrary to dataclasses.asdict(), it provides the original dbus keys,
4646
e.g. with numerical prefixes like "802-11-", dashes, and "id"/"type".
4747
4848
In addition, it can be selected if defaults shall be omitted in output,

sdbus_async/networkmanager/settings/profile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class ConnectionProfile:
9898
"""
9999
# The list of the settings classes was generated by
100100
# tools/generate-settings-dataclasses-jinja.py which generates the
101-
# settings classes themselfes as well.
101+
# settings classes themselves as well.
102102
# If possible, please make changes by also updating the script.
103103

104104
# start of the generated list of settings classes
@@ -380,13 +380,13 @@ def to_settings_dict(self, defaults: bool = False) -> SettingsDict:
380380
"""Return a simple dictionary using the same key names like the dbus
381381
dict from to_dbus(), but without the dbus signatures returned by it.
382382
383-
Contrary to dataclasses.asdict(), it provides the orignal dbus keys,
383+
Contrary to dataclasses.asdict(), it provides the original dbus keys,
384384
e.g. with numerical prefixes like "802-11-", dashes, and "id"/"type".
385385
386386
The key names provided are exactly as documented in these tables:
387387
https://networkmanager.dev/docs/api/latest/nm-settings-dbus.html
388388
389-
param defaults: Whether properies with default values are returned.
389+
param defaults: Whether properties with default values are returned.
390390
"""
391391
new_dict = {}
392392
for x in fields(self):

sdbus_async/networkmanager/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
# A settings domain, e.g. ipv4.*, ipv6.*, 802-11-wireless-security.*, etc:
2626
NetworkManagerSettingsDomain = Dict[str, NetworkManagerSetting]
2727

28-
# All settings and properites of a connection, e.g. returned by get_settings()
28+
# All settings and properties of a connection, e.g. returned by get_settings()
2929
NetworkManagerConnectionProperties = Dict[str, NetworkManagerSettingsDomain]
3030

31-
# All settings and properites of a connection, but without dbus signatures
31+
# All settings and properties of a connection, but without dbus signatures
3232
SettingsDict = Dict[str, Dict[str, Any]]

sdbus_block/networkmanager/objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373

7474

7575
class NetworkManager(NetworkManagerInterface):
76-
"""Network Manger main object
76+
"""Network Manager main object
7777
7878
Implements :py:class:`NetworkManagerInterface`
7979

tools/generate-settings-dataclasses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def iter_keys_of_dicts(
170170
) -> List[str]:
171171
"""Return a sorted list of settings_classes or connection properties
172172
173-
To support sorting the required properites of settings_classes first,
173+
To support sorting the required properties of settings_classes first,
174174
the settingsname can be passed ad prefix argument to let the key function
175175
return the correct sort index for the given settingsname property.
176176
"""

tools/jinja_templates/profile.py.jinja2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ConnectionProfile:
4949
"""
5050
# The list of the settings classes was generated by
5151
# tools/generate-settings-dataclasses-jinja.py which generates the
52-
# settings classes themselfes as well.
52+
# settings classes themselves as well.
5353
# If possible, please make changes by also updating the script.
5454

5555
# start of the generated list of settings classes
@@ -82,13 +82,13 @@ class ConnectionProfile:
8282
"""Return a simple dictionary using the same key names like the dbus
8383
dict from to_dbus(), but without the dbus signatures returned by it.
8484

85-
Contrary to dataclasses.asdict(), it provides the orignal dbus keys,
85+
Contrary to dataclasses.asdict(), it provides the original dbus keys,
8686
e.g. with numerical prefixes like "802-11-", dashes, and "id"/"type".
8787

8888
The key names provided are exactly as documented in these tables:
8989
https://networkmanager.dev/docs/api/latest/nm-settings-dbus.html
9090

91-
param defaults: Whether properies with default values are returned.
91+
param defaults: Whether properties with default values are returned.
9292
"""
9393
new_dict = {}
9494
for x in fields(self):

0 commit comments

Comments
 (0)