cattrs icon indicating copy to clipboard operation
cattrs copied to clipboard

Composable custom class converters for attrs, dataclasses and friends.

Results 137 cattrs issues
Sort by recently updated
recently updated
newest added

* cattrs version: latest * Python version: 3.7 * Operating System: mac os ### Description When the `attr.s` class contains a set attribute, the structure conversion leaves it as a...

* cattrs version: 1.0.0 * Python version: 3.8.2 * Operating System: archlinux ### Description ``` python import typing import attr import cattr import typing_inspect T = typing.TypeVar("T") class GenericList(typing.List[T]): ......

* cattrs version: 02d9da0a0a7a81c66fc9d8c56c2457170333bd7b * Python version: 3.6.2 * Operating System: Kubuntu 16.04 ### Description Proper definition of self-referential types seems unclear. This would relate to [the forward declarations problem...

* cattrs version: 0.9.0 * Python version: 3.7.5 * Operating System: Mac OSX ### Description I am attempting to structure a blob of data into a recursive structure, where part...

* cattrs version: 0.9.0 * Python version: 3.6.8 * Operating System: Mac OS 10.13.16 (High Sierra) ### Description Feel free to close this if there's no intent on handling optional/default...

* cattrs version: 0.9.0 * Python version: 3.7 * Operating System: mac ### Description ### What I Did ``` import attr, cattr @attr.s(cmp=False) class C: a = attr.ib() b =...

* cattrs version: 0.9.0 * Python version: Python 3.6.5 * Operating System: Mac OS Mojave ### Description Structuring a dictionary to a custom @attr.s type, with defaults provided for all...

* cattrs version: 1.0.0rc0 * Python version: 3.7.4 * Operating System: Mac OS X 10.14.6 ### Description My system cannot find `cattr` even when it's definitely installed. `mypy` cannot resolve...

* cattrs version: 0.9.0 * Python version: 3.7.2 * Operating System: Windows 10 x64 ### Description I want to turn a JSON file containing some mandatory and some optional fields...

* cattrs version: 0.9.0 * Python version: 3.7.2 * Operating System: Win 10 x64 ### Description When structuring a list using the type `Tuple[float, float]`, cattrs will happily construct a...