← Về thư mục
openai4s/execution/dependencies.py
- CellDependencyMetadata · class · L26-L40 — class CellDependencyMetadata
- as_record · method · L33-L40 — def as_record(self) -> dict[str, Any]
- _Scope · class · L44-L47 — class _Scope
- _Bindings · class · L50-L98 — class _Bindings(ast.NodeVisitor)
- init · method · L53-L67 — def init(self, arguments: ast.arguments | None = None) -> None
- visit_Name · method · L69-L71 — def visit_Name(self, node: ast.Name) -> None: # noqa: N802
- visit_Global · method · L73-L74 — def visit_Global(self, node: ast.Global) -> None: # noqa: N802
- visit_Nonlocal · method · L76-L77 — def visit_Nonlocal(self, node: ast.Nonlocal) -> None: # noqa: N802
- visit_Import · method · L79-L81 — def visit_Import(self, node: ast.Import) -> None: # noqa: N802
- visit_ImportFrom · method · L83-L86 — def visit_ImportFrom(self, node: ast.ImportFrom) -> None: # noqa: N802
- visit_FunctionDef · method · L88-L89 — def visit_FunctionDef(self, node: ast.FunctionDef) -> None: # noqa: N802
- visit_AsyncFunctionDef · method · L91-L92 — def visit_AsyncFunctionDef(self, node: ast.AsyncFunctionDef) -> None: # noqa: N802
- visit_ClassDef · method · L94-L95 — def visit_ClassDef(self, node: ast.ClassDef) -> None: # noqa: N802
- visit_Lambda · method · L97-L98 — def visit_Lambda(self, node: ast.Lambda) -> None: # noqa: N802
- _function_scope · function · L101-L106 — def _function_scope(arguments: ast.arguments, body: Iterable[ast.AST]) -> _Scope
- _target_names · function · L109-L116 — def _target_names(node: ast.AST) -> set[str]
- _root_name · function · L119-L123 — def _root_name(node: ast.AST) -> str | None
- _PythonDependencies · class · L126-L388 — class _PythonDependencies(ast.NodeVisitor)
- init · method · L156-L162 — def init(self) -> None
- _is_external · method · L164-L170 — def _is_external(self, name: str) -> bool
- _is_deferred · method · L172-L173 — def _is_deferred(self) -> bool
- _write_name · method · L175-L182 — def _write_name(self, name: str, *, delete: bool = False) -> None
- _mutate_root · method · L184-L192 — def _mutate_root(self, node: ast.AST, *, delete: bool = False) -> None
- visit_Name · method · L194-L201 — def visit_Name(self, node: ast.Name) -> None: # noqa: N802
- visit_Assign · method · L203-L206 — def visit_Assign(self, node: ast.Assign) -> None: # noqa: N802
- visit_AnnAssign · method · L208-L212 — def visit_AnnAssign(self, node: ast.AnnAssign) -> None: # noqa: N802
- visit_NamedExpr · method · L214-L216 — def visit_NamedExpr(self, node: ast.NamedExpr) -> None: # noqa: N802
- visit_AugAssign · method · L218-L229 — def visit_AugAssign(self, node: ast.AugAssign) -> None: # noqa: N802
- visit_Delete · method · L231-L239 — def visit_Delete(self, node: ast.Delete) -> None: # noqa: N802
- _visit_assignment_target · method · L241-L250 — def _visit_assignment_target(self, target: ast.AST) -> None
- visit_Import · method · L252-L254 — def visit_Import(self, node: ast.Import) -> None: # noqa: N802
- visit_ImportFrom · method · L256-L261 — def visit_ImportFrom(self, node: ast.ImportFrom) -> None: # noqa: N802
- _visit_function · method · L263-L281 — def _visit_function( self, node: ast.FunctionDef | ast.AsyncFunctionDef, ) -> None
- visit_FunctionDef · method · L283-L284 — def visit_FunctionDef(self, node: ast.FunctionDef) -> None: # noqa: N802
- visit_AsyncFunctionDef · method · L286-L287 — def visit_AsyncFunctionDef(self, node: ast.AsyncFunctionDef) -> None: # noqa: N802
- visit_Lambda · method · L289-L295 — def visit_Lambda(self, node: ast.Lambda) -> None: # noqa: N802
- visit_ClassDef · method · L297-L321 — def visit_ClassDef(self, node: ast.ClassDef) -> None: # noqa: N802
- _visit_comprehension · method · L323-L342 — def _visit_comprehension( self, generators: Sequence[ast.comprehension], values: Sequence[ast.AST], ) -> None
- visit_ListComp · method · L344-L345 — def visit_ListComp(self, node: ast.ListComp) -> None: # noqa: N802
- visit_SetComp · method · L347-L348 — def visit_SetComp(self, node: ast.SetComp) -> None: # noqa: N802
- visit_GeneratorExp · method · L350-L351 — def visit_GeneratorExp(self, node: ast.GeneratorExp) -> None: # noqa: N802
- visit_DictComp · method · L353-L354 — def visit_DictComp(self, node: ast.DictComp) -> None: # noqa: N802
- visit_Call · method · L356-L388 — def visit_Call(self, node: ast.Call) -> None: # noqa: N802
- _strip_r_literals · function · L413-L445 — def _strip_r_literals(code: str) -> tuple[str, bool]
- _r_dependencies · function · L448-L572 — def _r_dependencies(code: str) -> tuple[set[str], set[str], set[str], bool]
- analyze_code · function · L575-L607 — def analyze_code(code: str, language: str = "python") -> CellDependencyMetadata
- default_visibility · function · L610-L616 — def default_visibility(origin: str | None) -> str
- default_replay_policy · function · L619-L624 — def default_replay_policy(visibility: str) -> str
- normalize_string_list · function · L627-L634 — def normalize_string_list(value: Any) -> tuple[str, ...]
- _cell_id · function · L637-L642 — def _cell_id(cell: Mapping[str, Any], index: int) -> str
- compute_stale_cells · function · L645-L728 — def compute_stale_cells(cells: Sequence[Mapping[str, Any]]) -> list[dict[str, Any]]