massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / wsgiref / util.pyi
1 from typing import IO, Any, Callable
2
3 from .types import WSGIEnvironment
4
5 class FileWrapper:
6     filelike: IO[bytes]
7     blksize: int
8     close: Callable[[], None]  # only exists if filelike.close exists
9     def __init__(self, filelike: IO[bytes], blksize: int = ...) -> None: ...
10     def __getitem__(self, key: Any) -> bytes: ...
11     def __iter__(self) -> FileWrapper: ...
12     def __next__(self) -> bytes: ...
13
14 def guess_scheme(environ: WSGIEnvironment) -> str: ...
15 def application_uri(environ: WSGIEnvironment) -> str: ...
16 def request_uri(environ: WSGIEnvironment, include_query: bool = ...) -> str: ...
17 def shift_path_info(environ: WSGIEnvironment) -> str | None: ...
18 def setup_testing_defaults(environ: WSGIEnvironment) -> None: ...
19 def is_hop_by_hop(header_name: str) -> bool: ...