From 2d4e19abcd7e6c27806d30b494022ad6f20a36a1 Mon Sep 17 00:00:00 2001 From: tangkong Date: Fri, 8 Nov 2024 16:43:32 -0800 Subject: [PATCH] DOC: clarify AttributePath schema --- superscore/compare.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/superscore/compare.py b/superscore/compare.py index 98bcd65..d00260c 100644 --- a/superscore/compare.py +++ b/superscore/compare.py @@ -6,11 +6,11 @@ from superscore.model import Entry # An attribute access path chain leading to the item of interest -# simple fields: (object, "field_name") -# dictionary values: ("__dict__", "key_name") ... not used? +# simple fields: (dclass_object: dataclass, field_name: str) +# dictionary values: ("__dict__", key_name: str) # list entry: ("__list__", list_index: int) -# enum value: ("__enum__", Enum.member_object) -# set entry: ("__set__", "set_member") +# enum value: ("__enum__", enum_member: Enum) +# set entry: ("__set__", set_member: str) AttributePath = List[Tuple[Any, Any]]