Drop support for Python 2 in termcolor (#7707)

This commit is contained in:
Sebastian Rittau
2022-04-27 11:56:38 +02:00
committed by GitHub
parent cfdff16e4e
commit 60f0497a72
2 changed files with 4 additions and 4 deletions

View File

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

View File

@@ -1,11 +1,12 @@
from typing import Any, Iterable, Text
from collections.abc import Iterable
from typing import Any
ATTRIBUTES: dict[str, int]
COLORS: dict[str, int]
HIGHLIGHTS: dict[str, int]
RESET: str
def colored(text: Text, color: Text | None = ..., on_color: Text | None = ..., attrs: Iterable[Text] | None = ...) -> Text: ...
def colored(text: str, color: str | None = ..., on_color: str | None = ..., attrs: Iterable[str] | None = ...) -> str: ...
def cprint(
text: Text, color: Text | None = ..., on_color: Text | None = ..., attrs: Iterable[Text] | None = ..., **kwargs: Any
text: str, color: str | None = ..., on_color: str | None = ..., attrs: Iterable[str] | None = ..., **kwargs: Any
) -> None: ...