Skip to content

Commit 5c309e5

Browse files
authored
Add missing tagOrId parameter to tkinter.Canvas.coords() (#6920) (#7246)
1 parent e374268 commit 5c309e5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

stdlib/tkinter/__init__.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ class Canvas(Widget, XView, YView):
10631063
@overload
10641064
def tag_bind(
10651065
self,
1066-
tagOrId: str | int,
1066+
tagOrId: str | _CanvasItemId,
10671067
sequence: str | None = ...,
10681068
func: Callable[[Event[Canvas]], Any] | None = ...,
10691069
add: Literal["", "+"] | bool | None = ...,
@@ -1073,16 +1073,16 @@ class Canvas(Widget, XView, YView):
10731073
self, tagOrId: str | int, sequence: str | None, func: str, add: Literal["", "+"] | bool | None = ...
10741074
) -> None: ...
10751075
@overload
1076-
def tag_bind(self, tagOrId: str | int, *, func: str, add: Literal["", "+"] | bool | None = ...) -> None: ...
1077-
def tag_unbind(self, tagOrId: str | int, sequence: str, funcid: str | None = ...) -> None: ...
1076+
def tag_bind(self, tagOrId: str | _CanvasItemId, *, func: str, add: Literal["", "+"] | bool | None = ...) -> None: ...
1077+
def tag_unbind(self, tagOrId: str | _CanvasItemId, sequence: str, funcid: str | None = ...) -> None: ...
10781078
def canvasx(self, screenx, gridspacing: Any | None = ...): ...
10791079
def canvasy(self, screeny, gridspacing: Any | None = ...): ...
10801080
@overload
1081-
def coords(self) -> list[float]: ...
1081+
def coords(self, __tagOrId: str | _CanvasItemId) -> list[float]: ...
10821082
@overload
1083-
def coords(self, __args: list[int] | list[float] | tuple[float, ...]) -> None: ...
1083+
def coords(self, __tagOrId: str | _CanvasItemId, __args: list[int] | list[float] | tuple[float, ...]) -> None: ...
10841084
@overload
1085-
def coords(self, __x1: float, __y1: float, *args: float) -> None: ...
1085+
def coords(self, __tagOrId: str | _CanvasItemId, __x1: float, __y1: float, *args: float) -> None: ...
10861086
# create_foo() methods accept coords as a list, a tuple, or as separate arguments.
10871087
# Keyword arguments should be the same in each pair of overloads.
10881088
def create_arc(self, *args, **kw) -> _CanvasItemId: ...

0 commit comments

Comments
 (0)