Skip to content

Commit

Permalink
docs: fix typos
Browse files Browse the repository at this point in the history
Found via `codespell -L astroid`

Signed-off-by: Kian-Meng Ang <[email protected]>
  • Loading branch information
kianmeng authored and rjarry committed Feb 6, 2025
1 parent 8d53571 commit 79b429f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sysrepo/change.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def update_config_cache(conf: Dict, changes: List[Change]) -> None:
Maintain a configuration dict from a list of Change objects.
This function is intended to be used in module change callbacks if they want to
preserve a full view of all the configuration without asking sysrepo everytime the
preserve a full view of all the configuration without asking sysrepo every time the
callback is invoked.
:arg conf:
Expand Down
2 changes: 1 addition & 1 deletion sysrepo/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ def rpc_send(
:arg strip_prefixes:
If True, remove YANG module prefixes from dictionary keys.
:arg include_implicit_defaults:
Include leaves with implicit default values in the retured dict.
Include leaves with implicit default values in the returned dict.
:arg trim_default_values:
Exclude leaves when their value equals the default.
:arg keep_empty_containers:
Expand Down
2 changes: 1 addition & 1 deletion sysrepo/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def task_done(self, task_id: Any, event: str, task: asyncio.Task) -> None:
self.process_events()
else:
# Sysrepo does not care about the result of the callback.
# This will raise the exception here if any occured in the task
# This will raise the exception here if any occurred in the task
# and will be logged (i.e. not lost).
self.tasks.pop(task_id, None)
task.result()
Expand Down
2 changes: 1 addition & 1 deletion sysrepo/value.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __new__(cls, *args):
to ``None``.
"""
if cls is Value:
raise TypeError("Value cannot be instanciated directly, use subclasses")
raise TypeError("Value cannot be instantiated directly, use subclasses")
i = 0
new_args = [cls]
if cls.value_field is not None:
Expand Down

0 comments on commit 79b429f

Please sign in to comment.