mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Use Text for text arguments to click.[un]style (#3233)
This commit is contained in:
committed by
Sebastian Rittau
parent
2edb36e993
commit
d0f3eb2d6b
5
third_party/2and3/click/termui.pyi
vendored
5
third_party/2and3/click/termui.pyi
vendored
@@ -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:
|
||||
...
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user