get rid of tkinter._TkinterSequence type alias (#6181)

This commit is contained in:
Akuli
2021-10-18 08:22:01 +00:00
committed by GitHub
parent cf78194c76
commit 53087be4eb
4 changed files with 101 additions and 91 deletions

View File

@@ -1,7 +1,7 @@
import _tkinter
import sys
import tkinter
from typing import Any, Tuple, Union, overload
from typing import Any, List, Tuple, Union, overload
from typing_extensions import Literal, TypedDict
NORMAL: Literal["normal"]
@@ -15,7 +15,8 @@ _FontDescription = Union[
# A font object constructed in Python
Font,
# ("Helvetica", 12, BOLD)
tkinter._TkinterSequence[Any],
List[Any],
Tuple[Any, ...],
# A font object constructed in Tcl
_tkinter.Tcl_Obj,
]