Fix the Python 2 signature of tempfile._TemporaryFileWrapper.write. (#2465)

This commit is contained in:
Rebecca Chen authored and Sebastian Rittau committed 2018-09-18 13:54:56 +02:00
1 parent 7dbc8748dc
commit b7c262523b
1 file changed
+2 -2
+2 -2
View File
@@ -1,4 +1,4 @@
from typing import Tuple, IO, Union, AnyStr, Any, overload, Iterator, List, Iterable, Optional
from typing import Any, AnyStr, IO, Iterable, Iterator, List, Optional, overload, Text, Tuple, Union
from thread import LockType
from random import Random
@@ -45,7 +45,7 @@ class _TemporaryFileWrapper(IO[str]):
def tell(self) -> int: ...
def truncate(self, size: Optional[int] = ...) -> int: ...
def writable(self) -> bool: ...
def write(self, s: str) -> int: ...
def write(self, s: Text) -> int: ...
def writelines(self, lines: Iterable[str]) -> None: ...