mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
committed by
Guido van Rossum
parent
0acdfd1548
commit
54ecefef04
@@ -46,7 +46,7 @@ if sys.version_info < (3,):
|
||||
def readPlistFromString(data: str) -> DictT[str, Any]: ...
|
||||
def writePlistToString(rootObject: Mapping[str, Any]) -> str: ...
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
if sys.version_info < (3, 7):
|
||||
class Dict(dict):
|
||||
def __getattr__(self, attr: str) -> Any: ...
|
||||
def __setattr__(self, attr: str, value: Any) -> None: ...
|
||||
|
||||
@@ -119,7 +119,11 @@ class TarFile(Iterable[TarInfo]):
|
||||
path: _Path = ...) -> None: ...
|
||||
def extractfile(self,
|
||||
member: Union[str, TarInfo]) -> Optional[IO[bytes]]: ...
|
||||
if sys.version_info >= (3,):
|
||||
if sys.version_info >= (3, 7):
|
||||
def add(self, name: str, arcname: Optional[str] = ...,
|
||||
recursive: bool = ..., *,
|
||||
filter: Optional[Callable[[TarInfo], Optional[TarInfo]]] = ...) -> None: ...
|
||||
elif sys.version_info >= (3,):
|
||||
def add(self, name: str, arcname: Optional[str] = ...,
|
||||
recursive: bool = ...,
|
||||
exclude: Optional[Callable[[str], bool]] = ..., *,
|
||||
|
||||
Reference in New Issue
Block a user