diff --git a/stdlib/2/tempfile.pyi b/stdlib/2/tempfile.pyi index c19dbf179..bad5b837a 100644 --- a/stdlib/2/tempfile.pyi +++ b/stdlib/2/tempfile.pyi @@ -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: ...