mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Fix the Python 2 signature of tempfile._TemporaryFileWrapper.write. (#2465)
This commit is contained in:
committed by
Sebastian Rittau
parent
7dbc8748dc
commit
b7c262523b
@@ -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: ...
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user