(doc, name)
| 84 | |
| 85 | |
| 86 | def _skip_signature(doc, name): |
| 87 | if not isinstance(doc, str): |
| 88 | return doc |
| 89 | |
| 90 | # numpy creates some functions as aliases and copies the docstring exactly, |
| 91 | # so check the actual name to handle this case |
| 92 | np_name = getattr(np, name).__name__ |
| 93 | if doc.startswith(np_name): |
| 94 | signature_end = doc.find("\n\n") |
| 95 | doc = doc[signature_end + 2 :] |
| 96 | |
| 97 | return doc |
| 98 | |
| 99 | |
| 100 | def _remove_unused_reference_labels(doc): |
no test coverage detected
searching dependent graphs…