From 367700e03dde73770114805f86d72b4e3f78f56f Mon Sep 17 00:00:00 2001 From: Akuli Date: Mon, 15 Feb 2021 17:59:53 +0200 Subject: [PATCH] relax tkinter.font._FontDescription (#5026) --- stdlib/tkinter/font.pyi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stdlib/tkinter/font.pyi b/stdlib/tkinter/font.pyi index 791a8a847..81eacd507 100644 --- a/stdlib/tkinter/font.pyi +++ b/stdlib/tkinter/font.pyi @@ -9,9 +9,8 @@ ITALIC: Literal["italic"] def nametofont(name: str) -> Font: ... -# See 'FONT DESCRIPTIONS' in font man page. This uses str because Literal -# inside Tuple doesn't work. -_FontDescription = Union[str, Font, Tuple[str, int], Tuple[str, int, str], Tuple[str, int, tkinter._TkinterSequence[str]]] +# Can contain e.g. nested sequences ('FONT DESCRIPTIONS' in font man page) +_FontDescription = Union[str, Font, tkinter._TkinterSequence[Any]] class _FontDict(TypedDict): family: str