mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-20 19:01:16 +08:00
make pep561 compliant
This commit is contained in:
18
django-stubs/utils/termcolors.pyi
Normal file
18
django-stubs/utils/termcolors.pyi
Normal file
@@ -0,0 +1,18 @@
|
||||
from typing import (
|
||||
Callable,
|
||||
Dict,
|
||||
Optional,
|
||||
Tuple,
|
||||
Union,
|
||||
)
|
||||
|
||||
|
||||
def colorize(text: str = ..., opts: Union[str, Tuple] = ..., **kwargs) -> str: ...
|
||||
|
||||
|
||||
def make_style(opts: Tuple = ..., **kwargs) -> Callable: ...
|
||||
|
||||
|
||||
def parse_color_setting(
|
||||
config_string: str
|
||||
) -> Optional[Union[Dict[str, Dict[str, Union[str, Tuple[str]]]], Dict[str, Dict[str, str]]]]: ...
|
||||
Reference in New Issue
Block a user