Back to the room

Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works

Code Observatory / function

_module_path

codeintel.parsers._module_path

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 symbols

Loading

Calls (1)
SymbolFileResolved by
module_path_forpython_parser.pythrough an import
Called by (1)
SymbolFileResolved by
parse_file__init__.pysame file
Inside (1)
SymbolFileResolved by
parsers__init__.pysame file
codeintel.parsers._module_pathbackend/app/codeintel/parsers/__init__.py, lines 25–29Open source
def _module_path(path: str) -> str:    if path.endswith((".py", ".pyi")):        return module_path_for(path)    stem = path.rsplit(".", 1)[0] if "." in path.rsplit("/", 1)[-1] else path    return stem.replace("/", ".")

What the index recorded

Signature
def _module_path(path: str) -> str:
File
backend/app/codeintel/parsers/__init__.py
Lines
25–29
Parser
python-ast
Git blob
02097151776f80e9d044e640b7d140f7f516c1d3
Call sites
4 named, 1 resolved, 3 left unlinked

Read it on GitHub at this commit