MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / properties

Method properties

tensorflow/tools/docs/parser.py:1102–1112  ·  view source on GitHub ↗

Returns a list of `_PropertyInfo` describing the class' properties.

(self)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 4

appendMethod · 0.45
popMethod · 0.45
extendMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected