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

This commit is contained in:
Rebecca Chen
2018-09-18 04:54:56 -07:00
committed by Sebastian Rittau
parent 7dbc8748dc
commit b7c262523b

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: ...