3 ms·
That was similar to my initial reaction, but after trying some things in another comment I'm kind of sold on dataclasses. As long as it raised a syntax error i
by dec0dedab0de 4y ago
That was similar to my initial reaction, but after trying some things in another comment I'm kind of sold on dataclasses. As long as it raised a syntax error if a class combined __init__ with arg: type, then I think you can still do everything else you would in a normal class. It's just a shortcut for when that's all you need.