more permissive type for tkinter fonts (#4453)

This commit is contained in:
Akuli
2020-08-17 16:52:16 +03:00
committed by GitHub
parent 0ebe4c2b65
commit e1c4d2a713

View File

@@ -23,7 +23,7 @@ _TkinterSequence = Union[List[_T], Tuple[_T, ...]]
# 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, _TkinterSequence[str]],
str, Font, Tuple[str, int], Tuple[str, int, str], Tuple[str, int, _TkinterSequence[str]],
]
class _FontDict(TypedDict):