diff --git a/stdlib/tkinter/__init__.pyi b/stdlib/tkinter/__init__.pyi index e4265c2a8..05dd6ba93 100644 --- a/stdlib/tkinter/__init__.pyi +++ b/stdlib/tkinter/__init__.pyi @@ -1115,16 +1115,16 @@ class Canvas(Widget, XView, YView): __x1: float, __y1: float, *, - activedash: _Color = ..., + activedash: str | _TkinterSequence[int] = ..., activefill: _Color = ..., activestipple: str = ..., activewidth: _ScreenUnits = ..., arrow: Literal["first", "last", "both"] = ..., arrowshape: Tuple[float, float, float] = ..., capstyle: Literal["round", "projecting", "butt"] = ..., - dash: Union[Tuple[float], Tuple[float, float], Tuple[float, float, float, float]] = ..., + dash: str | _TkinterSequence[int] = ..., dashoffset: _ScreenUnits = ..., - disableddash: _Color = ..., + disableddash: str | _TkinterSequence[int] = ..., disabledfill: _Color = ..., disabledstipple: _Bitmap = ..., disabledwidth: _ScreenUnits = ..., @@ -1145,15 +1145,15 @@ class Canvas(Widget, XView, YView): __x1: float, __y1: float, *, - activedash: _Color = ..., + activedash: str | _TkinterSequence[int] = ..., activefill: _Color = ..., activeoutline: _Color = ..., activeoutlinestipple: _Color = ..., activestipple: str = ..., activewidth: _ScreenUnits = ..., - dash: Union[Tuple[float], Tuple[float, float], Tuple[float, float, float, float]] = ..., + dash: str | _TkinterSequence[int] = ..., dashoffset: _ScreenUnits = ..., - disableddash: _Color = ..., + disableddash: str | _TkinterSequence[int] = ..., disabledfill: _Color = ..., disabledoutline: _Color = ..., disabledoutlinestipple: _Color = ..., @@ -1176,15 +1176,15 @@ class Canvas(Widget, XView, YView): __x1: float, __y1: float, *xy_pairs: float, - activedash: _Color = ..., + activedash: str | _TkinterSequence[int] = ..., activefill: _Color = ..., activeoutline: _Color = ..., activeoutlinestipple: _Color = ..., activestipple: str = ..., activewidth: _ScreenUnits = ..., - dash: Union[Tuple[float], Tuple[float, float], Tuple[float, float, float, float]] = ..., + dash: str | _TkinterSequence[int] = ..., dashoffset: _ScreenUnits = ..., - disableddash: _Color = ..., + disableddash: str | _TkinterSequence[int] = ..., disabledfill: _Color = ..., disabledoutline: _Color = ..., disabledoutlinestipple: _Color = ..., @@ -1210,15 +1210,15 @@ class Canvas(Widget, XView, YView): __x1: float, __y1: float, *, - activedash: _Color = ..., + activedash: str | _TkinterSequence[int] = ..., activefill: _Color = ..., activeoutline: _Color = ..., activeoutlinestipple: _Color = ..., activestipple: str = ..., activewidth: _ScreenUnits = ..., - dash: Union[Tuple[float], Tuple[float, float], Tuple[float, float, float, float]] = ..., + dash: str | _TkinterSequence[int] = ..., dashoffset: _ScreenUnits = ..., - disableddash: _Color = ..., + disableddash: str | _TkinterSequence[int] = ..., disabledfill: _Color = ..., disabledoutline: _Color = ..., disabledoutlinestipple: _Color = ...,