Kyle Altendorf
Kyle Altendorf
As I think about looking at my own files I do really like the lack of an extra layer and the explicit type specification of every item. So I'm thinking...
Correct, no union for green. It was meant to just be a float. The indication is in the schema (unless marshmallow does 1.0, I don't know). For people that want...
So let's see if my original example can still be used to show the four options here. ### Class Definitions ```python3 import typing import attr import desert @attr.dataclass class A:...
I may just mean that I've barely used desert yet, yeah. `:|` Though the terminology question still stands albeit only at 8 search hits to 1 for serialize vs. marshal.
It seemed that if I finished it up that Bachmann1234/marshmallow-polyfield#34, which added adjacently tagged as an explicit union option, would get accepted. I would expect they would accept the rest....
So yeah, there's the super flexible 'callable that decides how to deserialize' but that feels possibly excessively flexible to me. Though perhaps it is just a case of giving a...
So we do have one over in the polyfield PR, but yes, I was considering needing some code to help me think. If someone else wants to take a stab,...
How is that better than the normal incantation for this? And why isn't some static check noticing this?
Regardless the decision, there's already an `=None` so something ought to get changed for consistency. https://github.com/python-desert/desert/blob/fc89fa35c3d29409a53a303de6ddaa1c4b52627b/src/desert/_make.py#L171-L173
Keep in mind that the problem in https://github.com/python-attrs/attrs/issues/278 had nothing to do with attrs mutating anything. I called `attr.ib()` and then mutated the metadata attribute's dict. Not only are all...