News for hackers. Stuff that matters.
Re:Use keyword-only arguments in Python dataclasses by codethief on Monday June 30, 2025 @03:16AM (#44420395)
Shouldn't you also be able to patch MyDataclass in a class decorator (on top of/after @dataclass)?
Re:Use keyword-only arguments in Python dataclasses by chipx86 on Monday June 30, 2025 @03:24AM (#44420434)
Yeah, that's the approach we'll be taking in housekeeping. I didn't want to complicate the example any more than I already did :)