Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
_docstring
codeintel.parsers.python_parser._docstring
PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.
PHAROS at 975a38dMIT license
Around this symbol
Search all symbolsLoading
| Symbol | File | Resolved by |
|---|---|---|
| clip | base.py | through an import |
| Symbol | File | Resolved by |
|---|---|---|
| _enter | python_parser.py | same file |
| parse_python | python_parser.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| python_parser | python_parser.py | same file |
codeintel.parsers.python_parser._docstringbackend/app/codeintel/parsers/python_parser.py, lines 80–85Open source
def _docstring(node: ast.AST) -> str: try: doc = ast.get_docstring(node, clean=True) or "" except Exception: return "" return clip(doc, MAX_DOCSTRING_CHARS)What the index recorded
- Signature
def _docstring(node: ast.AST) -> str:- File
backend/app/codeintel/parsers/python_parser.py- Lines
- 80–85
- Parser
- python-ast
- Git blob
63495bcda67d5742151d40ab76540e513f44e088- Call sites
- 2 named, 1 resolved, 1 left unlinked
