File: __init__.pyi

package info (click to toggle)
python-consolekit 1.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,152 kB
  • sloc: python: 2,835; makefile: 8
file content (61 lines) | stat: -rw-r--r-- 1,446 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# pylint: disable=redefined-builtin

# stdlib
from typing import Any, Callable, Dict, List, Optional, Type, TypeVar, overload

# 3rd party
import click

# this package
from consolekit import commands as commands  # noqa: F401
from consolekit import input as input  # noqa: F401
from consolekit import terminal_colours as terminal_colours  # noqa: F401
from consolekit import tracebacks as tracebacks  # noqa: F401
from consolekit import utils as utils  # noqa: F401
from consolekit.commands import SuggestionGroup as SuggestionGroup  # noqa: F401
from consolekit.options import _Option  # noqa: F401

__author__: str
__copyright__: str
__license__: str
__version__: str
__email__: str
__all__: List[str]

_C = TypeVar("_C", bound=click.Command)
_G = TypeVar("_G", bound=click.Group)

CONTEXT_SETTINGS: Dict[str, Any]

@overload
def click_command(
		name: Optional[str] = ...,
		cls: None = ...,
		**attrs: Any,
		) -> Callable[[Callable], click.Command]: ...

@overload
def click_command(
		name: Optional[str] = ...,
		cls: Type[_C] = ...,
		**attrs: Any,
		) -> Callable[[Callable], _C]: ...

@overload
def click_group(
		name: Optional[str] = ...,
		cls: None = ...,
		**attrs: Any,
		) -> Callable[[Callable], click.Group]: ...

@overload
def click_group(
		name: Optional[str] = ...,
		cls: Type[_G] = ...,
		**attrs: Any,
		) -> Callable[[Callable], _G]: ...

def option(
		*param_decls: str,
		**attrs: Any,
		) -> Callable[[_C], _C]: ...