MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / _parse_file

Function _parse_file

tests/python/test_plugin_docs.py:36–38  ·  view source on GitHub ↗

Parse a Python file into an AST module.

(path: Path)

Source from the content-addressed store, hash-verified

34
35
36def _parse_file(path: Path) -> ast.Module:
37 """Parse a Python file into an AST module."""
38 return ast.parse(path.read_text(), filename=str(path))
39
40
41def _find_classes(tree: ast.Module) -> dict[str, list[str]]:

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected