tarfile: improve bytes handling (#9076)

This commit is contained in:
Nikita Sobolev
2022-11-03 20:15:46 +03:00
committed by GitHub
parent 86f9d93003
commit e68567a1b4

View File

@@ -346,7 +346,7 @@ class TarInfo:
pax_headers: Mapping[str, str]
def __init__(self, name: str = ...) -> None: ...
@classmethod
def frombuf(cls: Type[Self], buf: bytes, encoding: str, errors: str) -> Self: ...
def frombuf(cls: Type[Self], buf: bytes | bytearray, encoding: str, errors: str) -> Self: ...
@classmethod
def fromtarfile(cls: Type[Self], tarfile: TarFile) -> Self: ...
@property