-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed as not planned
Labels
topic: tkintertkinter-related issuestkinter-related issues
Description
The types for the exportselection argument in tkinter methods are inconsistent.
In 7 out of the 8 occurrences, the type is bool, but in the 1 other occurrence (in Listbox.__init__) the type is int:
typeshed/stdlib/tkinter/__init__.pyi
Line 2113 in 9d90eeb
| exportselection: int = ..., |
It seems that some code passes
0 or 1 instead of a bool (see #4765) so it would make sense for all of these types to be int. Or bool | Literal[0, 1] is probably better.Metadata
Metadata
Assignees
Labels
topic: tkintertkinter-related issuestkinter-related issues