Skip to content

Commit

Permalink
Fix "state" type annotations for tkinter "Canvas.create_*" methods (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rdesparbes authored Jan 8, 2024
1 parent adc2e16 commit db80484
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions stdlib/tkinter/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ class Canvas(Widget, XView, YView):
offset: _ScreenUnits = ...,
smooth: bool = ...,
splinesteps: float = ...,
state: Literal["normal", "active", "disabled"] = ...,
state: Literal["normal", "hidden", "disabled"] = ...,
stipple: str = ...,
tags: str | list[str] | tuple[str, ...] = ...,
width: _ScreenUnits = ...,
Expand Down Expand Up @@ -1283,7 +1283,7 @@ class Canvas(Widget, XView, YView):
offset: _ScreenUnits = ...,
smooth: bool = ...,
splinesteps: float = ...,
state: Literal["normal", "active", "disabled"] = ...,
state: Literal["normal", "hidden", "disabled"] = ...,
stipple: str = ...,
tags: str | list[str] | tuple[str, ...] = ...,
width: _ScreenUnits = ...,
Expand Down Expand Up @@ -1318,7 +1318,7 @@ class Canvas(Widget, XView, YView):
offset: _ScreenUnits = ...,
smooth: bool = ...,
splinesteps: float = ...,
state: Literal["normal", "active", "disabled"] = ...,
state: Literal["normal", "hidden", "disabled"] = ...,
stipple: str = ...,
tags: str | list[str] | tuple[str, ...] = ...,
width: _ScreenUnits = ...,
Expand Down Expand Up @@ -1350,7 +1350,7 @@ class Canvas(Widget, XView, YView):
outline: str = ...,
outlineoffset: _ScreenUnits = ...,
outlinestipple: str = ...,
state: Literal["normal", "active", "disabled"] = ...,
state: Literal["normal", "hidden", "disabled"] = ...,
stipple: str = ...,
tags: str | list[str] | tuple[str, ...] = ...,
width: _ScreenUnits = ...,
Expand Down Expand Up @@ -1380,7 +1380,7 @@ class Canvas(Widget, XView, YView):
outline: str = ...,
outlineoffset: _ScreenUnits = ...,
outlinestipple: str = ...,
state: Literal["normal", "active", "disabled"] = ...,
state: Literal["normal", "hidden", "disabled"] = ...,
stipple: str = ...,
tags: str | list[str] | tuple[str, ...] = ...,
width: _ScreenUnits = ...,
Expand Down Expand Up @@ -1416,7 +1416,7 @@ class Canvas(Widget, XView, YView):
outline: str = ...,
outlineoffset: _ScreenUnits = ...,
outlinestipple: str = ...,
state: Literal["normal", "active", "disabled"] = ...,
state: Literal["normal", "hidden", "disabled"] = ...,
stipple: str = ...,
tags: str | list[str] | tuple[str, ...] = ...,
width: _ScreenUnits = ...,
Expand Down Expand Up @@ -1451,7 +1451,7 @@ class Canvas(Widget, XView, YView):
outlinestipple: str = ...,
smooth: bool = ...,
splinesteps: float = ...,
state: Literal["normal", "active", "disabled"] = ...,
state: Literal["normal", "hidden", "disabled"] = ...,
stipple: str = ...,
tags: str | list[str] | tuple[str, ...] = ...,
width: _ScreenUnits = ...,
Expand Down Expand Up @@ -1484,7 +1484,7 @@ class Canvas(Widget, XView, YView):
outlinestipple: str = ...,
smooth: bool = ...,
splinesteps: float = ...,
state: Literal["normal", "active", "disabled"] = ...,
state: Literal["normal", "hidden", "disabled"] = ...,
stipple: str = ...,
tags: str | list[str] | tuple[str, ...] = ...,
width: _ScreenUnits = ...,
Expand Down Expand Up @@ -1523,7 +1523,7 @@ class Canvas(Widget, XView, YView):
outlinestipple: str = ...,
smooth: bool = ...,
splinesteps: float = ...,
state: Literal["normal", "active", "disabled"] = ...,
state: Literal["normal", "hidden", "disabled"] = ...,
stipple: str = ...,
tags: str | list[str] | tuple[str, ...] = ...,
width: _ScreenUnits = ...,
Expand Down Expand Up @@ -1555,7 +1555,7 @@ class Canvas(Widget, XView, YView):
outline: str = ...,
outlineoffset: _ScreenUnits = ...,
outlinestipple: str = ...,
state: Literal["normal", "active", "disabled"] = ...,
state: Literal["normal", "hidden", "disabled"] = ...,
stipple: str = ...,
tags: str | list[str] | tuple[str, ...] = ...,
width: _ScreenUnits = ...,
Expand Down Expand Up @@ -1585,7 +1585,7 @@ class Canvas(Widget, XView, YView):
outline: str = ...,
outlineoffset: _ScreenUnits = ...,
outlinestipple: str = ...,
state: Literal["normal", "active", "disabled"] = ...,
state: Literal["normal", "hidden", "disabled"] = ...,
stipple: str = ...,
tags: str | list[str] | tuple[str, ...] = ...,
width: _ScreenUnits = ...,
Expand Down Expand Up @@ -1621,7 +1621,7 @@ class Canvas(Widget, XView, YView):
outline: str = ...,
outlineoffset: _ScreenUnits = ...,
outlinestipple: str = ...,
state: Literal["normal", "active", "disabled"] = ...,
state: Literal["normal", "hidden", "disabled"] = ...,
stipple: str = ...,
tags: str | list[str] | tuple[str, ...] = ...,
width: _ScreenUnits = ...,
Expand All @@ -1642,7 +1642,7 @@ class Canvas(Widget, XView, YView):
font: _FontDescription = ...,
justify: Literal["left", "center", "right"] = ...,
offset: _ScreenUnits = ...,
state: Literal["normal", "active", "disabled"] = ...,
state: Literal["normal", "hidden", "disabled"] = ...,
stipple: str = ...,
tags: str | list[str] | tuple[str, ...] = ...,
text: float | str = ...,
Expand All @@ -1663,7 +1663,7 @@ class Canvas(Widget, XView, YView):
font: _FontDescription = ...,
justify: Literal["left", "center", "right"] = ...,
offset: _ScreenUnits = ...,
state: Literal["normal", "active", "disabled"] = ...,
state: Literal["normal", "hidden", "disabled"] = ...,
stipple: str = ...,
tags: str | list[str] | tuple[str, ...] = ...,
text: float | str = ...,
Expand All @@ -1677,7 +1677,7 @@ class Canvas(Widget, XView, YView):
*,
anchor: _Anchor = ...,
height: _ScreenUnits = ...,
state: Literal["normal", "active", "disabled"] = ...,
state: Literal["normal", "hidden", "disabled"] = ...,
tags: str | list[str] | tuple[str, ...] = ...,
width: _ScreenUnits = ...,
window: Widget = ...,
Expand All @@ -1689,7 +1689,7 @@ class Canvas(Widget, XView, YView):
*,
anchor: _Anchor = ...,
height: _ScreenUnits = ...,
state: Literal["normal", "active", "disabled"] = ...,
state: Literal["normal", "hidden", "disabled"] = ...,
tags: str | list[str] | tuple[str, ...] = ...,
width: _ScreenUnits = ...,
window: Widget = ...,
Expand Down

0 comments on commit db80484

Please sign in to comment.