Mypy stub fixes for strict optional mode (#366)

This commit is contained in:
Jukka Lehtosalo authored and Guido van Rossum committed 2016-07-13 09:38:40 -07:00
1 parent bca4c81b70
commit e05edb60f1
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -132,7 +132,7 @@ class BytesIO(BinaryIO):
# copied from BufferedIOBase
def detach(self) -> RawIOBase: ...
def readinto(self, b: bytearray) -> int: ...
def write(self, b: Union[bytes, bytearray]) -> Optional[int]: ...
def write(self, b: Union[bytes, bytearray]) -> int: ...
if sys.version_info >= (3, 5):
def readinto1(self, b: bytearray) -> int: ...
if sys.version_info >= (3, 4):