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:
module-scope names in base classes residing in a different module than the dataclass passed to Binder()
The
_get_fields()
function, which runs uponBinder
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:
Binder()