mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Drop support for Python 2 in termcolor (#7707)
This commit is contained in:
@@ -1,2 +1 @@
|
||||
version = "1.1.*"
|
||||
python2 = true
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user