massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / distutils / text_file.pyi
1 from typing import IO
2
3 class TextFile:
4     def __init__(
5         self,
6         filename: str | None = ...,
7         file: IO[str] | None = ...,
8         *,
9         strip_comments: bool = ...,
10         lstrip_ws: bool = ...,
11         rstrip_ws: bool = ...,
12         skip_blanks: bool = ...,
13         join_lines: bool = ...,
14         collapse_join: bool = ...,
15     ) -> None: ...
16     def open(self, filename: str) -> None: ...
17     def close(self) -> None: ...
18     def warn(self, msg: str, line: list[int] | tuple[int, int] | int | None = ...) -> None: ...
19     def readline(self) -> str | None: ...
20     def readlines(self) -> list[str]: ...
21     def unreadline(self, line: str) -> str: ...