mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-09 14:55:50 +08:00
tarfile: improve bytes handling (#9076)
This commit is contained in:
1 parent
86f9d93003
commit
e68567a1b4
1 file changed
+1
-1
+1
-1
@@ -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