Skip to content

Commit

Permalink
DOC: clarify AttributePath schema
Browse files Browse the repository at this point in the history
  • Loading branch information
tangkong committed Nov 9, 2024
1 parent da1a907 commit 2d4e19a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions superscore/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]


Expand Down

0 comments on commit 2d4e19a

Please sign in to comment.