Add typing for TarFile._extract_member method (#5841)

Refs: #2673
This commit is contained in:
Jon Dufresne
2021-08-02 23:53:35 -07:00
committed by GitHub
parent 475417fa97
commit b2e429cd41

View File

@@ -264,6 +264,9 @@ class TarFile:
def extract(
self, member: Union[str, TarInfo], path: StrOrBytesPath = ..., set_attrs: bool = ..., *, numeric_owner: bool = ...
) -> None: ...
def _extract_member(
self, tarinfo: TarInfo, targetpath: str, set_attrs: bool = ..., numeric_owner: bool = ...
) -> None: ... # undocumented
def extractfile(self, member: Union[str, TarInfo]) -> Optional[IO[bytes]]: ...
def makedir(self, tarinfo: TarInfo, targetpath: StrOrBytesPath) -> None: ... # undocumented
def makefile(self, tarinfo: TarInfo, targetpath: StrOrBytesPath) -> None: ... # undocumented