MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / take_python_parse

Function take_python_parse

graphify/extractors/engine.py:9269–9275  ·  view source on GitHub ↗

The bytes and tree last parsed for *path_str*, clearing the slot.

(path_str: str)

Source from the content-addressed store, hash-verified

9267
9268
9269def take_python_parse(path_str: str) -> "tuple[bytes, object] | None":
9270 """The bytes and tree last parsed for *path_str*, clearing the slot."""
9271 stashed = _PYTHON_PARSE_HANDOFF[:]
9272 _PYTHON_PARSE_HANDOFF.clear()
9273 if not stashed or stashed[0][0] != path_str:
9274 return None
9275 return stashed[0][1], stashed[0][2]
9276
9277
9278def _extract_generic(

Callers 1

extract_pythonFunction · 0.90

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected