cattrs
cattrs copied to clipboard
Composable custom class converters for attrs, dataclasses and friends.
* cattrs version: `22.1.0` * Python version: `3.10.1` * Operating System: Ubuntu ### Description Importing `annotations` from `__future__` causes a StructureHandlerNotFoundError, whereas my registered structure function works fine when I...
* cattrs version: 0.9.0 * Python version: 3.7 * Operating System: Win ### Description I am trying to serialize a class with a pathlib.Path object ### What I Did ```python...
* cattrs version: current master (a10ad1c638dd16308c9aa73c649fa92282503c00) * Python version: 3.10 * Operating System: Linux ### Description I'm serializing a dataclass with a field. If the field has a more generic...
* cattrs version: 0.9.0 * Python version: 3.6.9 * Operating System: Red Hat Enterprise Linux Server release 5.3 (Tikanga) ### Description I tried to `structure` data for a `SubClass` into...
Certain uses of `typing.Literal` or `typing.Annotated` cause syntax errors in generated code. (Related: https://github.com/python-attrs/cattrs/issues/277) In the case of annotated types (from 3.7 typing_extensions), I get the following syntax error: ```...
* cattrs version: current master * Python version: 3.10 * Operating System: Linux * Let me know when you get annoyed by my issues ;) ### Description cattrs supports passing...
while True: # creating GenConverter instance with all default params. # registering some simple structure hook, # loading some data, the memory usage of process keep increasing. If set detailed_validation...
Tin/copy
### Environment * cattrs version: 22.1.0 * Python version: 3.10.5 * Operating System: Ubuntu 22.04 ### Description When using poetry, the [dependency spec](https://github.com/python-attrs/cattrs/blob/v22.1.0/pyproject.toml#L27) for cattrs 22.1.0 doesn't install `exceptiongroup` for...
The `__all__` list in `cattrs/__init__.py` [contains GenConverter](https://github.com/python-attrs/cattrs/blob/main/src/cattrs/__init__.py#L22) but it is not imported.