1 from typing import Any, Dict, List, Protocol, Tuple
3 _ModuleGlobals = Dict[str, Any]
4 _ModuleMetadata = Tuple[int, float, List[str], str]
6 class _SourceLoader(Protocol):
7 def __call__(self) -> str | None: ...
9 cache: dict[str, _SourceLoader | _ModuleMetadata] # undocumented
11 def getline(filename: str, lineno: int, module_globals: _ModuleGlobals | None = ...) -> str: ...
12 def clearcache() -> None: ...
13 def getlines(filename: str, module_globals: _ModuleGlobals | None = ...) -> list[str]: ...
14 def checkcache(filename: str | None = ...) -> None: ...
15 def updatecache(filename: str, module_globals: _ModuleGlobals | None = ...) -> list[str]: ...
16 def lazycache(filename: str, module_globals: _ModuleGlobals) -> bool: ...