(cls, name, bases, attr_dict)
| 60 | return collections.OrderedDict() # <1> |
| 61 | |
| 62 | def __init__(cls, name, bases, attr_dict): |
| 63 | super().__init__(name, bases, attr_dict) |
| 64 | cls._field_names = [] # <2> |
| 65 | for key, attr in attr_dict.items(): # <3> |
| 66 | if isinstance(attr, Validated): |
| 67 | type_name = type(attr).__name__ |
| 68 | attr.storage_name = '_{}#{}'.format(type_name, key) |
| 69 | cls._field_names.append(key) # <4> |
| 70 | |
| 71 | |
| 72 | class Entity(metaclass=EntityMeta): |