cattrs
cattrs copied to clipboard
Composable custom class converters for attrs, dataclasses and friends.
* cattrs version: 0.9.0 * Python version: 3.6 * Operating System: Ubuntu 18.04 ### Description structure is converting None to 'None' when it is set to a str field. ###...
* cattrs version: 0.9.0 * Python version: 3.6.6 * Operating System: macOS ### Description I use cattrs + attrs (w/ type annotations and `auto_attribs=True`) + marshmallow. Marshmallow does data normalization...
This might be related to #37 . (Fortuitous ticket number there.) Recent versions of MyPy emit errors if you try to use a Union at all at runtime, which appears...
cattrs validation is exclusively type-based right now from what I've been able to surmise. Is there a plan to extend this to any ability to pass options to structure hook...
* cattrs version: 22.1.0 * Python version: 3.11.0-rc1 * Operating System: Fedora Linux ### Description I would like an easy way to recursively generate `attrs` classes that have attributes of...
* cattrs version: main (290d162a589acf10ea63b825b7b283e23ca7698a) * Python version: 3.9.10 * Operating System: macOS 12.5.1 ### Description NewType support was recently added in #255 (see also #94), but appears to have...
* cattrs version: 22.1.0 * Python version: 3.9.13 * Operating System: macOS 12.5 ### Description I know cattrs does not currently support `TypedDict`. Is this something that would make sense...
* cattrs version: 23.2.3 * Python version: 3.11.4 * Operating System: MacOS ### Description I am trying to unstructure sets into something that JSON can cope with *and* that is...
Hi @Tinche, here's a first draft for the "Recipes" page you suggested in #489. Let me know what you think and what needs to be adapted. Of course feel free...