massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / cgitb.pyi
1 from _typeshed import StrOrBytesPath
2 from types import FrameType, TracebackType
3 from typing import IO, Any, Callable, Optional, Tuple, Type
4
5 _ExcInfo = Tuple[Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]]
6
7 def reset() -> str: ...  # undocumented
8 def small(text: str) -> str: ...  # undocumented
9 def strong(text: str) -> str: ...  # undocumented
10 def grey(text: str) -> str: ...  # undocumented
11 def lookup(name: str, frame: FrameType, locals: dict[str, Any]) -> tuple[str | None, Any]: ...  # undocumented
12 def scanvars(
13     reader: Callable[[], bytes], frame: FrameType, locals: dict[str, Any]
14 ) -> list[tuple[str, str | None, Any]]: ...  # undocumented
15 def html(einfo: _ExcInfo, context: int = ...) -> str: ...
16 def text(einfo: _ExcInfo, context: int = ...) -> str: ...
17
18 class Hook:  # undocumented
19     def __init__(
20         self,
21         display: int = ...,
22         logdir: StrOrBytesPath | None = ...,
23         context: int = ...,
24         file: IO[str] | None = ...,
25         format: str = ...,
26     ) -> None: ...
27     def __call__(self, etype: Type[BaseException] | None, evalue: BaseException | None, etb: TracebackType | None) -> None: ...
28     def handle(self, info: _ExcInfo | None = ...) -> None: ...
29
30 def handler(info: _ExcInfo | None = ...) -> None: ...
31 def enable(display: int = ..., logdir: StrOrBytesPath | None = ..., context: int = ..., format: str = ...) -> None: ...