cattrs
cattrs copied to clipboard
Composable custom class converters for attrs, dataclasses and friends.
* cattrs version: 23.1.2 * Python version: 3.10 * Operating System: windows 10 * IDE: Pycharm 2023.1 Professional Edition ### Description `cattrs.structure` is seemingly failing to properly aggregate validation failures,...
* cattrs version: latest unreleased version (before 23.2) * Python version: 3.8.6 * Operating System: macOS ### Description (copied from #312) Hi guys 👋 It's great that the subclass feature...
* cattrs version: 23.1.2 * Python version: 3.11.5 * Operating System: gentoo ### Description I want users of my library to fill out an attrs class, then later I will...
* cattrs version: 23.1.2 * Python version: 3.10.6 * Operating System: Win 10 ### Description Right now I'm looking to migrate from dataclass + dacite to attrs + cattrs, but...
* cattrs version: 23.1.2 * Python version: 3.11.3 * Operating System: Arch Linux ### Description When unstructuring an attrs class where one of the fields is annotated as `os.PathLike` (and...
* cattrs version: 22.2.0 * Python version: 3.10 * Operating System: Windows 10 ### Description I have a dataclass that can be instantiated (structured) with a from_dict method, in this...
multidict: https://github.com/aio-libs/multidict ```python import dataclasses import typing import cattrs import multidict @dataclasses.dataclass class Model: a: typing.List[str] b: str d = multidict.MultiDict([('a', '111'), ('b', '2'), ('a', '333')]) obj = cattrs.structure(d, Model)...
* cattrs version: 23.1.2 * Python version: 3.11 * Operating System: Debian bookworm ### Description Hi, I've RecursionError raised when structuring nested class. ### What I Did Here's a minimal...
* cattrs version: v23.1.2 * Python version: Python 3.8 * Operating System: Ubuntu 20.04 ### Description In #258, `__notes__` were added to support passing `AttributeValidationNote` and `IterableValidationNote` around. `transform_errors` uses...
* cattrs version: 22.2.0 * Python version: 3.8 * Operating System: macOS ### Description Hi @Tinche, I am currently working on several projects where I need to (un)structure objects of...