ProtixIT / dataclass-binder

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

Ignore dataclass fields with `init=False` #8

Closed mthuurne closed 1 year ago

mthuurne commented 1 year ago

As the excluded fields should be skipped during the evaluation of annotation strings, that evaluation is now done by our code instead of inspect.get_annotations(). That change also allows for a more detailed error message when a name from a nested scope is used in an annotation.