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

Method _add_method

tensorflow/tools/docs/parser.py:1134–1150  ·  view source on GitHub ↗

Adds a `_MethodInfo` entry to the `methods` list. Args: short_name: The method's short name. full_name: The method's fully qualified name. obj: The method object itself doc: The method's parsed docstring, a `_DocstringInfo` signature: The method's parsed signature

(self, short_name, full_name, obj, doc, signature, decorators)

Source from the content-addressed store, hash-verified

1132 return self._methods
1133
1134 def _add_method(self, short_name, full_name, obj, doc, signature, decorators):
1135 """Adds a `_MethodInfo` entry to the `methods` list.
1136
1137 Args:
1138 short_name: The method's short name.
1139 full_name: The method's fully qualified name.
1140 obj: The method object itself
1141 doc: The method's parsed docstring, a `_DocstringInfo`
1142 signature: The method's parsed signature (see: `_generate_signature`)
1143 decorators: A list of strings describing the decorators that should be
1144 mentioned on the object's docs page.
1145 """
1146
1147 method_info = _MethodInfo(short_name, full_name, obj, doc, signature,
1148 decorators)
1149
1150 self._methods.append(method_info)
1151
1152 @property
1153 def classes(self):

Callers 1

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected