mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Stubs for termcolor (#1935)
This commit is contained in:
committed by
Matthias Kramm
parent
a9cce0c94b
commit
89cbd47344
21
third_party/2and3/termcolor.pyi
vendored
Normal file
21
third_party/2and3/termcolor.pyi
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
# Stub for termcolor: https://pypi.python.org/pypi/termcolor
|
||||
from typing import Any, Iterable, Optional, Text
|
||||
|
||||
|
||||
def colored(
|
||||
text: Text,
|
||||
color: Optional[Text] = ...,
|
||||
on_color: Optional[Text] = ...,
|
||||
attrs: Optional[Iterable[Text]] = ...,
|
||||
) -> Text:
|
||||
...
|
||||
|
||||
|
||||
def cprint(
|
||||
text: Text,
|
||||
color: Optional[Text] = ...,
|
||||
on_color: Optional[Text] = ...,
|
||||
attrs: Optional[Iterable[Text]] = ...,
|
||||
**kwargs: Any,
|
||||
) -> None:
|
||||
...
|
||||
Reference in New Issue
Block a user