ProtixIT / dataclass-binder

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

Fix annotation evaluation on inherited dataclasses #21

Closed mthuurne closed 1 year ago

mthuurne commented 1 year ago

The _get_fields() function, which runs upon Binder creation, evaluated annotations in the context of the given dataclass, but each annotation should be evaluated in the context of its surrounding class.

This fixes a failure to find: