Skip to content

Commit 60f0497

Browse files
authored
Drop support for Python 2 in termcolor (#7707)
1 parent cfdff16 commit 60f0497

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stubs/termcolor/METADATA.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
version = "1.1.*"
2-
python2 = true

stubs/termcolor/termcolor.pyi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
from typing import Any, Iterable, Text
1+
from collections.abc import Iterable
2+
from typing import Any
23

34
ATTRIBUTES: dict[str, int]
45
COLORS: dict[str, int]
56
HIGHLIGHTS: dict[str, int]
67
RESET: str
78

8-
def colored(text: Text, color: Text | None = ..., on_color: Text | None = ..., attrs: Iterable[Text] | None = ...) -> Text: ...
9+
def colored(text: str, color: str | None = ..., on_color: str | None = ..., attrs: Iterable[str] | None = ...) -> str: ...
910
def cprint(
10-
text: Text, color: Text | None = ..., on_color: Text | None = ..., attrs: Iterable[Text] | None = ..., **kwargs: Any
11+
text: str, color: str | None = ..., on_color: str | None = ..., attrs: Iterable[str] | None = ..., **kwargs: Any
1112
) -> None: ...

0 commit comments

Comments
 (0)