def find_class(self, cls):
for doc_cls in self.classes():<EOL><INDENT>if cls is doc_cls.cls:<EOL><INDENT>return doc_cls<EOL><DEDENT><DEDENT>for module in self.submodules():<EOL><INDENT>doc_cls = module.find_class(cls)<EOL>if not isinstance(doc_cls, External):<EOL><INDENT>return doc_cls<EOL><DEDENT><DEDENT>return External('<STR_LIT>' % (cls.__module__, cls.__name__))<EOL>
Given a Python `cls` object, try to find it in this module
or in any of the exported identifiers of the submodules.