better stubs

This commit is contained in:
Maxim Kurnikov
2018-08-05 03:13:19 +03:00
parent 4013fe4d03
commit fa718b8e55
380 changed files with 11805 additions and 8503 deletions

View File

@@ -1,10 +1,4 @@
# Stubs for django.utils.termcolors (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from typing import Callable, Dict, Optional, Tuple, Union
from typing import Any, Callable, Dict, Optional, Tuple, Union
color_names: Any
foreground: Any
@@ -12,7 +6,9 @@ background: Any
RESET: str
opt_dict: Any
def colorize(text: str = ..., opts: Union[str, Tuple] = ..., **kwargs: Any) -> str: ...
def colorize(
text: Optional[str] = ..., opts: Union[str, Tuple] = ..., **kwargs: Any
) -> str: ...
def make_style(opts: Tuple = ..., **kwargs: Any) -> Callable: ...
NOCOLOR_PALETTE: str
@@ -24,5 +20,8 @@ DEFAULT_PALETTE = DARK_PALETTE
def parse_color_setting(
config_string: str
) -> Optional[
Union[Dict[str, Dict[str, Union[str, Tuple[str]]]], Dict[str, Dict[str, str]]]
Union[
Dict[str, Dict[str, Union[str, Tuple[str]]]],
Dict[str, Dict[str, Union[str, Tuple[str, str]]]],
]
]: ...