summaryrefslogtreecommitdiffstats
path: root/typehinting/apt_inst.pyi
blob: 5d6a118e0c88befe06c29a6dc79b1bb794866d66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from typing import *

class ArArchive:
    def extract(self) -> None: ...

class DebFile:
    def __init__(self, file: object) -> None: ...
    control: TarFile
    data: TarFile

class TarMember:
    def isblk(self) -> bool: ...
    def ischr(self) -> bool: ...
    def isdev(self) -> bool: ...
    def isdir(self) -> bool: ...
    def isfifo(self) -> bool: ...
    def isfile(self) -> bool: ...
    def islnk(self) -> bool: ...
    def isreg(self) -> bool: ...
    def issym(self) -> bool: ...

    gid: int
    linkname: str
    major: int
    minor: int
    mode: int
    mtime: int
    name: str
    size: int
    uid: int

class TarFile:
    def extractall(self, rootdir: str = "") -> None: ...
    def extractdata(self, member: str) -> bytes: ...
    def go(
        self, callback: Callable[[TarMember, bytes], None], member: str = ""
    ) -> None: ...