MCPcopy Create free account
hub / github.com/ipython/ipython / find_funcs_classes

Method find_funcs_classes

docs/sphinxext/apigen.py:231–238  ·  view source on GitHub ↗

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

(self, uri)

Source from the content-addressed store, hash-verified

229 return sorted(funcs), sorted(classes, key=lambda x: x.name)
230
231 def find_funcs_classes(self, uri):
232 """Find the functions and classes defined in the module ``uri``"""
233 if uri in self.names_from__all__:
234 # For API modules which expose things defined elsewhere, import them
235 return self._import_funcs_classes(uri)
236 else:
237 # For other modules, scan their AST to see what they define
238 return self._parse_module(uri)
239
240 def generate_api_doc(self, uri):
241 '''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