Adds a `_PropertyInfo` entry to the `properties` list. Args: short_name: The property's short name. full_name: The property's fully qualified name. obj: The property object itself doc: The property's parsed docstring, a `_DocstringInfo`.
(self, short_name, full_name, obj, doc)
| 1112 | return props |
| 1113 | |
| 1114 | def _add_property(self, short_name, full_name, obj, doc): |
| 1115 | """Adds a `_PropertyInfo` entry to the `properties` list. |
| 1116 | |
| 1117 | Args: |
| 1118 | short_name: The property's short name. |
| 1119 | full_name: The property's fully qualified name. |
| 1120 | obj: The property object itself |
| 1121 | doc: The property's parsed docstring, a `_DocstringInfo`. |
| 1122 | """ |
| 1123 | # Hide useless namedtuple docs-trings |
| 1124 | if re.match('Alias for field number [0-9]+', doc.docstring): |
| 1125 | doc = doc._replace(docstring='', brief='') |
| 1126 | property_info = _PropertyInfo(short_name, full_name, obj, doc) |
| 1127 | self._properties.append(property_info) |
| 1128 | |
| 1129 | @property |
| 1130 | def methods(self): |
no test coverage detected