Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions stdlib/tkinter/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,12 @@ class Misc:
# binds do. The default value of func is not str.
@overload
def bind(
self, sequence: str | None = ..., func: Callable[[Event[Misc]], Any] | None = ..., add: bool | None = ...
self, sequence: str | None = ..., func: Callable[[Event[Misc]], Any] | None = ..., add: bool | str | None = ...
) -> str: ...
@overload
def bind(self, sequence: str | None, func: str, add: bool | None = ...) -> None: ...
def bind(self, sequence: str | None, func: str, add: bool | str | None = ...) -> None: ...
@overload
def bind(self, *, func: str, add: bool | None = ...) -> None: ...
def bind(self, *, func: str, add: bool | str | None = ...) -> None: ...
# There's no way to know what type of widget bind_all and bind_class
# callbacks will get, so those are Misc.
@overload
Expand Down