Skip to content

Commit 58da238

Browse files
authored
[tkinter.constants] Use literal values for boolean constants (#15037)
1 parent d37ab65 commit 58da238

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

stdlib/tkinter/constants.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from typing import Final
22

33
# These are not actually bools. See #4669
4-
NO: Final[bool]
5-
YES: Final[bool]
6-
TRUE: Final[bool]
7-
FALSE: Final[bool]
8-
ON: Final[bool]
9-
OFF: Final[bool]
4+
YES: Final = True
5+
NO: Final = False
6+
TRUE: Final = True
7+
FALSE: Final = False
8+
ON: Final = True
9+
OFF: Final = False
1010
N: Final = "n"
1111
S: Final = "s"
1212
W: Final = "w"

0 commit comments

Comments
 (0)