cattrs
cattrs copied to clipboard
Composable custom class converters for attrs, dataclasses and friends.
really drop python<=3.7 support
Filter all python code over `pyupgrade --py38-plus`.
TYPE_CHECKING and init=False
* cattrs version: 23.2.3 * Python version: 3.9.18 * Operating System: macOS ### Description Hi, I think I'm facing a similar situation as described in #160 but with a few...
How to hook into structuring of a simple dict?
* cattrs version: 23.2.3 * Python version: 3.11 * Operating System: Windows (dev)/Linux (prod) Hey there! I have a few attrs classes. Some are members of a (tagged) union, together...
How to recursively unstructure with hooks?
* cattrs version: 23.2.3 * Python version: 3.11 * Operating System: Windows (dev)/Linux (prod) Hey there, I have put together this small example to illustrate my issue. Context is JSON...
[macOS] Error when trying to run tests: `ImportError: cannot import name 'CodecOptions' from 'bson'`
* cattrs version: 23.2.3 * Python version: 3.12 * Operating System: macOS 10.6 ### Description Running tests does not seem to work. ### What I Did ``` ---> Testing py312-cattrs...
* cattrs version: 23.2.3 * Python version: 3.11.8 * Operating System: OSX ### Description I'm using cattrs to destructure and restructure a complex hierarchy of classes. It is *mostly* working....
WIP: Expand docs on unstructuring
I ran into some confusing situations trying to unstructure some objects I had defined (#513 ) and it was suggested I create a PR clarifying the docs. This PR attempts...
* cattrs version: 23.2.3 * Python version: 3.10.12 * Operating System: Ubuntu-22.04 * attrs version: 23.2.0 I mentioned this at the end of [another ticket](https://github.com/python-attrs/cattrs/issues/535), but I thought it deserved...
Inheriting overrides
* cattrs version: 23.2.3 * Python version: 3.9 * Operating System: macOS ### Description I am wondering if `cattrs` provides a clever built-in mechanism reuse/inherit overrides from another class. It...