From eb7381a3c13e4e9a1afa9c3bc60785dcb54006b9 Mon Sep 17 00:00:00 2001 From: Akuli Date: Fri, 25 Dec 2020 17:07:55 +0200 Subject: [PATCH] use bool for tkinter.FALSE and its friends (#4853) Fixes #4669 --- stdlib/3/tkinter/constants.pyi | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/stdlib/3/tkinter/constants.pyi b/stdlib/3/tkinter/constants.pyi index 97ad295b3..1383b0f9b 100644 --- a/stdlib/3/tkinter/constants.pyi +++ b/stdlib/3/tkinter/constants.pyi @@ -1,11 +1,12 @@ from typing_extensions import Literal -NO: Literal[0] -YES: Literal[1] -TRUE: Literal[1] -FALSE: Literal[0] -ON: Literal[1] -OFF: Literal[0] +# These are not actually bools. See #4669 +NO: bool +YES: bool +TRUE: bool +FALSE: bool +ON: bool +OFF: bool N: Literal["n"] S: Literal["s"] W: Literal["w"]