Hacker News new | ask | show | jobs
by skribanto 42 days ago
I routinely run into issues, where Claude will try to add functionality to a dict-heavy API and messup the keys, I just do an initial pass converting everything to dataclasses, and it can iterate on it's own with the typechecker to fix everything on it's own, but otherwise I have to do a bunch of manual iterations.
1 comments

If it works for you, great. I'd just suggest trying `TypedDict` first; that's probably less disruptive.