Returns a list of `_PropertyInfo` describing the class' properties.
(self)
| 1100 | |
| 1101 | @property |
| 1102 | def properties(self): |
| 1103 | """Returns a list of `_PropertyInfo` describing the class' properties.""" |
| 1104 | props_dict = {prop.short_name: prop for prop in self._properties} |
| 1105 | props = [] |
| 1106 | if self.namedtuplefields: |
| 1107 | for field in self.namedtuplefields: |
| 1108 | props.append(props_dict.pop(field)) |
| 1109 | |
| 1110 | props.extend(sorted(props_dict.values())) |
| 1111 | |
| 1112 | return props |
| 1113 | |
| 1114 | def _add_property(self, short_name, full_name, obj, doc): |
| 1115 | """Adds a `_PropertyInfo` entry to the `properties` list. |