mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-15 15:46:46 +08:00
zipfile.Path.open() signature fix (#10033)
This commit is contained in:
@@ -223,7 +223,7 @@ class ZipInfo:
|
||||
def FileHeader(self, zip64: bool | None = None) -> bytes: ...
|
||||
|
||||
class _PathOpenProtocol(Protocol):
|
||||
def __call__(self, mode: _ReadWriteMode = ..., pwd: bytes | None = ..., *, force_zip64: bool = ...) -> IO[bytes]: ...
|
||||
def __call__(self, mode: _ReadWriteMode = "r", pwd: bytes | None = ..., *, force_zip64: bool = ...) -> IO[bytes]: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
class Path:
|
||||
@@ -245,7 +245,12 @@ if sys.version_info >= (3, 8):
|
||||
def __init__(self, root: ZipFile | StrPath | IO[bytes], at: str = "") -> None: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def open(
|
||||
self, mode: _ReadWriteBinaryMode = "r", *args: Any, pwd: bytes | None = None, **kwargs: Any
|
||||
self,
|
||||
mode: _ReadWriteBinaryMode = "r",
|
||||
encoding: str | None = None,
|
||||
*args: Any,
|
||||
pwd: bytes | None = None,
|
||||
**kwargs: Any,
|
||||
) -> IO[bytes]: ...
|
||||
else:
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user