relax tkinter bind callback return types (#5025)

Fixes #5010
This commit is contained in:
Akuli authored and GitHub committed 2021-02-15 07:54:13 -08:00
1 parent 903f74a68e
commit 003694ddd3
2 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -953,7 +953,7 @@ class Treeview(Widget, tkinter.XView, tkinter.YView):
self,
tagname: str,
sequence: Optional[str] = ...,
callback: Optional[Callable[[tkinter.Event[Treeview]], Optional[Literal["break"]]]] = ...,
callback: Optional[Callable[[tkinter.Event[Treeview]], Any]] = ...,
) -> str: ...
@overload
def tag_bind(self, tagname: str, sequence: Optional[str], callback: str) -> None: ...