mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
more permissive type for tkinter fonts (#4453)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user