Skip to content

Commit

Permalink
docs: Fix example in SetMembersMixin docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed May 12, 2024
1 parent bc0f74b commit 721ce7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/griffe/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def set_member(self, key: str | Sequence[str], value: Object | Alias) -> None:
Examples:
>>> griffe_object.set_member("foo", foo)
>>> griffe_object.set_member("path.to.bar", bar)
>>> griffe_object.set_member(("path", "to", "qux", qux)
>>> griffe_object.set_member(("path", "to", "qux"), qux)
"""
parts = _get_parts(key)
if len(parts) == 1:
Expand Down

0 comments on commit 721ce7d

Please sign in to comment.