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

Method set_signature

tensorflow/tools/docs/parser.py:920–929  ·  view source on GitHub ↗

Attach the function's signature. Args: function: The python function being documented. reverse_index: A map from object ids in the index to full names.

(self, function, reverse_index)

Source from the content-addressed store, hash-verified

918 return self._signature
919
920 def set_signature(self, function, reverse_index):
921 """Attach the function's signature.
922
923 Args:
924 function: The python function being documented.
925 reverse_index: A map from object ids in the index to full names.
926 """
927
928 assert self.signature is None
929 self._signature = _generate_signature(function, reverse_index)
930
931 @property
932 def decorators(self):

Callers 1

docs_for_objectFunction · 0.80

Calls 1

_generate_signatureFunction · 0.85

Tested by

no test coverage detected