Skip to content

Commit

Permalink
io: minor fixes for arguments (#3642)
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja authored and srittau committed Jan 24, 2020
1 parent ed95668 commit d5851ec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions stdlib/3/io.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ from typing import (
)
import builtins
import codecs
import sys
from mmap import mmap
from types import TracebackType
from typing import TypeVar
Expand Down Expand Up @@ -102,7 +103,7 @@ class BytesIO(BinaryIO):
# TODO should be the next line instead
# def writelines(self, lines: List[Union[bytes, bytearray]]) -> None: ...
def writelines(self, lines: Any) -> None: ...
def readline(self, size: int = ...) -> bytes: ...
def readline(self, __size: Optional[int] = ...) -> bytes: ...
def __del__(self) -> None: ...
closed: bool
# copied from BufferedIOBase
Expand All @@ -111,7 +112,10 @@ class BytesIO(BinaryIO):
def write(self, b: Union[bytes, bytearray]) -> int: ...
def readinto1(self, b: _bytearray_like) -> int: ...
def read(self, size: Optional[int] = ...) -> bytes: ...
def read1(self, size: int = ...) -> bytes: ...
if sys.version_info >= (3, 7):
def read1(self, __size: Optional[int] = ...) -> bytes: ...
else:
def read1(self, __size: Optional[int]) -> bytes: ...

class BufferedReader(BufferedIOBase):
def __init__(self, raw: RawIOBase, buffer_size: int = ...) -> None: ...
Expand Down

0 comments on commit d5851ec

Please sign in to comment.