You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 19, 2025. It is now read-only.
i admit i do not understand completely what's going on, but the
Field._creation_counterseems like a hack to me, and i wonder why it's necessary?since python 3.6, dictionaries retain insertion order which, iiuc, means the
attrspassed to__new__are in source code order already.why not assign all fields to
__schematype_fields__instead and use that when ordering is needed?while looking at it, parent schema fields are included in child schema, but does
schematypehandle overrides of fields correctly at all? theattrsproject has some code that may be relevant to look at here, since it deals with similar problems: https://github.com/python-attrs/attrs/blob/4fe28966e88b9b85c9c2df77ffb34f70175c4492/src/attr/_make.py#L351-L362