File: commandline.pyi

package info (click to toggle)
python-pkginfo 1.12.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 980 kB
  • sloc: python: 2,142; makefile: 84; sh: 14
file content (35 lines) | stat: -rw-r--r-- 1,102 bytes parent folder | download
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
import optparse
from typing import List

from .distribution import Distribution
from .utils import get_metadata as get_metadata

_parsed_options = tuple[optparse.Values, list[str]]

class Base:
    def __init__(self, options: _parsed_options) -> None: ...
    def finish(self) -> None: ...

class Simple(Base):
    def __init__(self, options: _parsed_options) -> None: ...
    def __call__(self, meta: Distribution) -> None: ...

class SingleLine(Base):
    def __init__(self, options: _parsed_options) -> None: ...
    def __call__(self, meta: Distribution) -> None: ...

class CSV(Base):
    def __init__(self, options: _parsed_options) -> None: ...
    def __call__(self, meta: Distribution) -> None: ...

class INI(Base):
    def __init__(self, options: _parsed_options) -> None: ...
    def __call__(self, meta: Distribution) -> None: ...
    def finish(self) -> None: ...

class JSON(Base):
    def __init__(self, options: _parsed_options) -> None: ...
    def __call__(self, meta: Distribution) -> None: ...
    def finish(self) -> None: ...

def main(args: List[str] | None = ...) -> None: ...