3 ms·
I was talking about the dataclasses.dataclass annotation in 3.10/3.11. You can use slots with it. You’re right, they’re dicts unless slots are used. I read the
by gautamdivgi 4y ago
I was talking about the dataclasses.dataclass annotation in 3.10/3.11. You can use slots with it.
You’re right, they’re dicts unless slots are used. I read the parent comment and saying you can define types easily. But you can with dataclasses