From 89cbd473443489c7392c250a400ec8431ed0abca Mon Sep 17 00:00:00 2001 From: Luka Sterbic Date: Tue, 20 Mar 2018 22:32:50 +0000 Subject: [PATCH] Stubs for termcolor (#1935) --- third_party/2and3/termcolor.pyi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 third_party/2and3/termcolor.pyi diff --git a/third_party/2and3/termcolor.pyi b/third_party/2and3/termcolor.pyi new file mode 100644 index 000000000..e1ad18b8a --- /dev/null +++ b/third_party/2and3/termcolor.pyi @@ -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: + ...