Hacker News new | ask | show | jobs
by scrollaway 2435 days ago
Yeah I get what you're saying. And indeed. I seldom use dataclasses even though I should. Or namedtuples for that matter. It feels like the fact they're an import away makes them harder to use.

Maybe both should be in the global namespace...

1 comments

strongly agree. I love the extra clarity type annotations bring to the code, though going back to the start of the file every time I want to add an import is slightly dissuading.