Skip to content

Commit

Permalink
Add a comment explaining that serialisation uses original field names
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Jul 2, 2024
1 parent c90e891 commit 9126a54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/popgetter/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ def hash_class_vars(self):
Note that `vars()` does not include properties, so the IDs themselves are
not part of the hash, which avoids self-reference issues.
Furthermore, note that serialisation aliases are not used: the hash is
calculated from the original field names.
"""

# Must copy the dict to avoid overriding the actual instance attributes!
Expand Down

0 comments on commit 9126a54

Please sign in to comment.