MCPcopy Create free account
hub / github.com/bspaans/python-mingus / generate_non_callable_docs

Method generate_non_callable_docs

scripts/api_doc_generator.py:138–149  ·  view source on GitHub ↗
(self, module_string, element_string, evaled, is_class = False)

Source from the content-addressed store, hash-verified

136 return res
137
138 def generate_non_callable_docs(self, module_string, element_string, evaled, is_class = False):
139 if element_string[0] != '_' and type(evaled) != types.ModuleType:
140 t = str(type(evaled))
141 t = t.split("'")
142 directive = "----\n\n.. data" if not is_class else " .. attribute"
143 res = '\n{0}:: {1}\n\n'.format(directive , element_string)
144 res += ' Attribute of type: {0}\n'.format(t[1])
145 res += ' ``{0}``\n'.format(repr(evaled))
146 if not is_class:
147 self.attributes.append(res)
148 else:
149 self.classes.append(res)
150
151 def generate_callable_wikidocs(self, module_string, element_string, evaled, is_class = False):
152 if _is_method(evaled):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected