ProtixIT / dataclass-binder

Python library to bind TOML data to dataclasses in a type-safe way
MIT License
13 stars 2 forks source link

Support descriptors as fields #24

Open mthuurne opened 1 year ago

mthuurne commented 1 year ago

Dataclasses support descriptors as fields. To be able to bind to descriptors, we need to collect the actual data type from the descriptor class instead of the dataclass.

This will be more useful if we also have support for resolving type arguments (see #1), as descriptors might be generic classes, but that could be a further enhancement rather than a blocker.