6 filename: str | None = ...,
7 file: IO[str] | None = ...,
9 strip_comments: bool = ...,
10 lstrip_ws: bool = ...,
11 rstrip_ws: bool = ...,
12 skip_blanks: bool = ...,
13 join_lines: bool = ...,
14 collapse_join: bool = ...,
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: ...