There was an error while loading. Please reload this page.
1 parent 9e51d1a commit 934f9deCopy full SHA for 934f9de
1 file changed
src/dve/metadata_parser/utilities.py
@@ -55,12 +55,13 @@ def chain_get(
55
56
57
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.
+ """Given a number of attribute names, try to get attribute value
+ sequentially. Returns the first value found, and if no attributes found
60
+ returns None.
61
62
Args:
63
item (object): The object to obtain attributes from (where possible)
- attribute_names (tuple[str]): The attribute names to search for
64
+ attribute_names (str): The attribute names to search for
65
66
Returns:
67
Any: The first found attribute, otherwise None
0 commit comments