Skip to content

Commit e9ed244

Browse files
author
Joel Collins
committed
Fixed get_by_path to allow returning Any type value
1 parent bd58673 commit e9ed244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/labthings/utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def rapply(
245245
return func(data, *args, **kwargs)
246246

247247

248-
def get_by_path(root: Dict[Any, Any], items: List[Any]) -> dict:
248+
def get_by_path(root: Dict[Any, Any], items: List[Any]) -> Any:
249249
"""Access a nested object in root by item sequence.
250250
251251
:param root:

0 commit comments

Comments
 (0)