Back to the room

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

Code Observatory / function

_parse

codeintel.notify._parse

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

Called by (2)
SymbolFileResolved by
waitnotify.pysame file
waitnotify.pysame file
Inside (1)
SymbolFileResolved by
notifynotify.pysame file
codeintel.notify._parsebackend/app/codeintel/notify.py, lines 38–47Open source
def _parse(raw) -> str | None:    if raw is None:        return None    if isinstance(raw, bytes):        raw = raw.decode()    try:        data = json.loads(raw)    except (TypeError, ValueError):        return None    return str(data["job_id"]) if isinstance(data, dict) and data.get("job_id") else None

What the index recorded

Signature
def _parse(raw) -> str | None:
File
backend/app/codeintel/notify.py
Lines
38–47
Parser
python-ast
Git blob
fc15788e6d2a98f2857ebab4c81c9c193abb5873
Call sites
5 named, 0 resolved, 5 left unlinked

Read it on GitHub at this commit