mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-20 19:01:16 +08:00
better stubs
This commit is contained in:
@@ -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]]]],
|
||||
]
|
||||
]: ...
|
||||
|
||||
Reference in New Issue
Block a user