From b2e429cd41347ce48a96feaa1681726d8f77fbfb Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 2 Aug 2021 23:53:35 -0700 Subject: [PATCH] Add typing for TarFile._extract_member method (#5841) Refs: #2673 --- stdlib/tarfile.pyi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stdlib/tarfile.pyi b/stdlib/tarfile.pyi index 7258ced82..9101a1988 100644 --- a/stdlib/tarfile.pyi +++ b/stdlib/tarfile.pyi @@ -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