Use Text for text arguments to click.[un]style (#3233)

This commit is contained in:
Ivan Levkivskyi
2019-09-16 14:36:28 +01:00
committed by Sebastian Rittau
parent 2edb36e993
commit d0f3eb2d6b

View File

@@ -8,6 +8,7 @@ from typing import (
Optional,
Text,
overload,
Text,
Tuple,
TypeVar,
Union,
@@ -112,7 +113,7 @@ def clear() -> None:
def style(
text: str,
text: Text,
fg: Optional[str] = ...,
bg: Optional[str] = ...,
bold: Optional[bool] = ...,
@@ -125,7 +126,7 @@ def style(
...
def unstyle(text: str) -> str:
def unstyle(text: Text) -> str:
...