Use PEP 688 (#10225)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Jelle Zijlstra
2023-05-27 19:55:30 -07:00
committed by GitHub
parent 56aeeb677f
commit c0a0c34020
16 changed files with 80 additions and 64 deletions

View File

@@ -1,6 +1,6 @@
import io
import sys
from _typeshed import StrOrBytesPath, StrPath, _BufferWithLen
from _typeshed import SizedBuffer, StrOrBytesPath, StrPath
from collections.abc import Callable, Iterable, Iterator
from os import PathLike
from types import TracebackType
@@ -179,7 +179,7 @@ class ZipFile:
def writestr(
self,
zinfo_or_arcname: str | ZipInfo,
data: _BufferWithLen | str,
data: SizedBuffer | str,
compress_type: int | None = None,
compresslevel: int | None = None,
) -> None: ...