Skip to content

Commit

Permalink
Fix stubtest
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Mar 10, 2023
1 parent 149382c commit 0911fcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stdlib/tempfile.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -409,11 +409,11 @@ class SpooledTemporaryFile(IO[AnyStr], _SpooledTemporaryFileBase):
@overload
def write(self, s: AnyStr) -> int: ...
@overload
def writelines(self: SpooledTemporaryFile[str], lines: Iterable[str]) -> None: ...
def writelines(self: SpooledTemporaryFile[str], iterable: Iterable[str]) -> None: ...
@overload
def writelines(self: SpooledTemporaryFile[bytes], lines: Iterable[ReadableBuffer]) -> None: ...
def writelines(self: SpooledTemporaryFile[bytes], iterable: Iterable[ReadableBuffer]) -> None: ...
@overload
def writelines(self, lines: Iterable[AnyStr]) -> None: ...
def writelines(self, iterable: Iterable[AnyStr]) -> None: ...
def __iter__(self) -> Iterator[AnyStr]: ... # type: ignore[override]
# These exist at runtime only on 3.11+.
def readable(self) -> bool: ...
Expand Down

0 comments on commit 0911fcf

Please sign in to comment.