add missing type hints in termcolor (#5813)

This commit is contained in:
Anton Grübel
2021-07-29 00:51:41 +09:00
committed by GitHub
parent 69c56b9496
commit 3ed0bb0880
2 changed files with 6 additions and 1 deletions

View File

@@ -1,2 +1,2 @@
version = "0.1"
version = "1.1"
python2 = true

View File

@@ -1,5 +1,10 @@
from typing import Any, Iterable, Optional, Text
ATTRIBUTES: dict[str, int]
COLORS: dict[str, int]
HIGHLIGHTS: dict[str, int]
RESET: str
def colored(
text: Text, color: Optional[Text] = ..., on_color: Optional[Text] = ..., attrs: Optional[Iterable[Text]] = ...
) -> Text: ...