
Thanks for investigating this David!
dataclass_transform(field_descriptors=...) does not currently support string-based forward references to types, which it looks like Django will require.
What is it about Django's code that makes a forward reference required? Is there a circular reference?
It would be useful to have syntax to describe what the "value type" of a particular field descriptor is, so that I don't have to use cast()s everywhere. See the above proposed syntax:
Dataclass solves this by having a field() function that returns their Field objects rather than having consumers use the Field type directly. The field() function returns Any but has overloads to return a more specific type when default or default_factory are provided. Thanks, Erik