3 ms·
why do you think you can't define `__aenter__` and `__aexit__` on a dataclass?
by glyph 4y ago
why do you think you can't define `__aenter__` and `__aexit__` on a dataclass?
- seanhunter 4y agoI don't. But it's really not a dataclass - it doesn't need slots etc.