Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
glyph
· 3y ago · 0 comments
why do you think you can't define `__aenter__` and `__aexit__` on a dataclass?
Comments
[–]
seanhunter
3y ago
I don't. But it's really not a dataclass - it doesn't need slots etc.