Hacker News new | ask | show | jobs
by glyph 1225 days ago
why do you think you can't define `__aenter__` and `__aexit__` on a dataclass?
1 comments

I don't. But it's really not a dataclass - it doesn't need slots etc.