mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
tarfile: improve bytes handling (#9076)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user