Skip to content

Commit

Permalink
Improve types in utils.termcolors (#1901)
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos authored Mar 20, 2024
1 parent a13f68e commit 0bca931
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions django-stubs/utils/termcolors.pyi
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from collections.abc import Callable, Mapping, Sequence
from typing import Any
from collections.abc import Callable, Sequence
from typing import Any, Literal

color_names: Sequence
foreground: Mapping[str, str]
background: Mapping[str, str]
RESET: str
opt_dict: Mapping[str, str]
color_names: tuple[str, ...]
foreground: dict[str, str]
background: dict[str, str]
RESET: Literal["0"]
opt_dict: dict[str, str]

def colorize(text: str | None = ..., opts: Sequence[str] = ..., **kwargs: Any) -> str: ...
def make_style(opts: tuple = ..., **kwargs: Any) -> Callable: ...
def colorize(text: str | None = ..., opts: Sequence[str] = ..., *, fg: str = ..., bg: str = ...) -> str: ...
def make_style(opts: Sequence[str] = ..., *, fg: str = ..., bg: str = ...) -> Callable[[str | None], str]: ...

NOCOLOR_PALETTE: str
DARK_PALETTE: str
Expand Down

0 comments on commit 0bca931

Please sign in to comment.