ijustlovemath
ijustlovemath
Thats exactly what I was looking for! I didnt know if pyenv supported the Python I wanted to use, and always take "we support everything" with a grain of salt....
I think the principle of least surprise would dictate exceptions, but that's just me. Raising and handling exceptions is about as Pythonic as it gets (see: how for loops actually...
I'm curious as to why that happens! Theoretically by the time the object is constructed, the function that partial decorates (dataclass) has already been evaluated
One potential solution would be to have a custom encoder/decoder where the "py/state" path isn't allowed, but that might be hacky
The functools partial was for pydantic migration that I ended up tabling, but I would be curious about this! I think one possible avenue of attack would be to understand...