From 1a23206f425401b0adb066054ff300e87742402d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Thu, 25 Jul 2024 08:25:28 +0200 Subject: [PATCH] adds example to helper function --- src/pydase/utils/helpers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pydase/utils/helpers.py b/src/pydase/utils/helpers.py index 16e93c7..f5f83c2 100644 --- a/src/pydase/utils/helpers.py +++ b/src/pydase/utils/helpers.py @@ -60,6 +60,10 @@ def parse_full_access_path(path: str) -> list[str]: list[str] A list of components that make up the path, including attribute names, numeric indices, and string keys as separate elements. + + Example: + >>> parse_full_access_path('dict_attr["some_key"].attr_name["other_key"]') + ["dict_attr", '["some_key"]', "attr_name", '["other_key"]'] """ # Matches: # \w+ - Words