Tin Tvrtković
Tin Tvrtković
I've picked this up, and this is actually proving to be kind of tricky. It feels important for urllib3 to be able byte headers so I persevered, but given the...
A small update: I managed to land https://github.com/python/typeshed/pull/10978
Howdy, I think it's a combination of nobody having asked for it and supporting libraries probably being able to handle named tuples natively. Most of the time, output from cattrs...
Interesting! A couple of points. I think we will want to unstructure namedtuples into tuples for backwards compatibility. I see your code unstructures them into dictionaries. This is also a...
Go for it!
Howdy, I've just merged https://github.com/python-attrs/cattrs/pull/491. This adds the namedtuples-as-tuples functionality to cattrs. I'll leave this issue open while other folks work on a strategy for namedtuples-as-dataclasses.
This is in PR now (#364), very close.
Fixed on main.
Hey, I'm on vacation so can't respond quickly. First, are you aware of attrs validators? (https://www.attrs.org/en/stable/examples.html#validators) This is an easy way to add per-field validation, but it won't help you...
Interesting, I wasn't aware attributes could be annotates as `Self` but according to PEP 673, that's valid! We don't support it yet, so I'll leave this open as an enhancement...