Skip to content
Snippets Groups Projects
Commit 983f9f10 authored by Andreas Klöckner's avatar Andreas Klöckner Committed by Andreas Klöckner
Browse files

Fix misunderstanding in Tag.update_persistent_hash: __qualname__ does not contain module name

parent 401dfd6b
No related branches found
No related tags found
No related merge requests found
Pipeline #168513 passed
...@@ -127,7 +127,8 @@ class Tag: ...@@ -127,7 +127,8 @@ class Tag:
return DottedName.from_class(type(self)) return DottedName.from_class(type(self))
def update_persistent_hash(self, key_hash, key_builder): def update_persistent_hash(self, key_hash, key_builder):
key_builder.rec(key_hash, self.__class__.__qualname__) key_builder.rec(key_hash,
(self.__class__.__module__, self.__class__.__qualname__))
from dataclasses import fields from dataclasses import fields
# Fields are ordered consistently, so ordered hashing is OK. # Fields are ordered consistently, so ordered hashing is OK.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment