massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / linecache.pyi
1 from typing import Any, Dict, List, Protocol, Tuple
2
3 _ModuleGlobals = Dict[str, Any]
4 _ModuleMetadata = Tuple[int, float, List[str], str]
5
6 class _SourceLoader(Protocol):
7     def __call__(self) -> str | None: ...
8
9 cache: dict[str, _SourceLoader | _ModuleMetadata]  # undocumented
10
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: ...