MCPcopy Index your code
hub / github.com/ipython/ipython / find_funcs_classes

Method find_funcs_classes

docs/sphinxext/apigen.py:234–241  ·  view source on GitHub ↗

Find the functions and classes defined in the module ``uri``

(self, uri)

Source from the content-addressed store, hash-verified

232 return sorted(funcs), sorted(classes, key=lambda x: x.name)
233
234 def find_funcs_classes(self, uri):
235 """Find the functions and classes defined in the module ``uri``"""
236 if uri in self.names_from__all__:
237 # For API modules which expose things defined elsewhere, import them
238 return self._import_funcs_classes(uri)
239 else:
240 # For other modules, scan their AST to see what they define
241 return self._parse_module(uri)
242
243 def generate_api_doc(self, uri):
244 '''Make autodoc documentation template string for a module

Callers 1

generate_api_docMethod · 0.95

Calls 2

_import_funcs_classesMethod · 0.95
_parse_moduleMethod · 0.95

Tested by

no test coverage detected