Use positional-only arguments for IO (#6851)

This commit is contained in:
Sebastian Rittau authored and GitHub committed 2022-01-08 20:49:29 +02:00
1 parent 267bb2485a
commit f4ce1ebaf8
4 files changed
+25 -10

No files matched your search

+1 -1
View File
@@ -88,7 +88,7 @@ def open(
newline: str | None = ...,
) -> BZ2File | TextIO: ...
class BZ2File(BaseStream, IO[bytes]): # type: ignore # argument disparities between base classes
class BZ2File(BaseStream, IO[bytes]):
def __enter__(self: Self) -> Self: ...
if sys.version_info >= (3, 9):
@overload