Skip to content

Commit 934f9de

Browse files
committed
docs: tweak docstring for resilient_get
1 parent 9e51d1a commit 934f9de

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/dve/metadata_parser/utilities.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,13 @@ def chain_get(
5555

5656

5757
def resilient_get(item: object, *attribute_names: str) -> Any:
58-
"""Given an iterable of attribute names, try to get attribute value
59-
sequentially. Returns the first value found, otherwise returns None.
58+
"""Given a number of attribute names, try to get attribute value
59+
sequentially. Returns the first value found, and if no attributes found
60+
returns None.
6061
6162
Args:
6263
item (object): The object to obtain attributes from (where possible)
63-
attribute_names (tuple[str]): The attribute names to search for
64+
attribute_names (str): The attribute names to search for
6465
6566
Returns:
6667
Any: The first found attribute, otherwise None

0 commit comments

Comments
 (0)