We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5b4fc5 commit dd93cc5Copy full SHA for dd93cc5
torax/_src/static_dataclass.py
@@ -128,11 +128,11 @@ def __post_init__(self):
128
# Make sure the StaticDataclass method is used
129
if hash(self) != self._hash():
130
raise TypeError(
131
- "A subclass of StaticDataclass is not using the base "
+ f"{type(self)} is not using the base "
132
"StaticDataclass.__hash__ method. This is usually "
133
"accidental and caused by forgetting to pass eq=False "
134
"to the dataclass decorator on the subclass. If this is"
135
- "intentional then override the __post_init__ method too"
+ " intentional then override the __post_init__ method too"
136
" to avoid this check."
137
)
138
0 commit comments