Closed hohav closed 3 years ago
Ah, this is because the attribute has no type annotation!
You can exclude a class attribute from dataclassy's mechanisms entirely by simply defining it without a type annotation. This can be used for class variables and constants.
Ah, my bad. I keep forgetting about the type annotation requirement.
Is this intended behavior?
I get the same results on the last two stable releases (
0.7.0
and0.6.2
). If I'm reading correctly, the README says it's not intended: