File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,8 +106,8 @@ EXCEPTION: Final = 8
106106READABLE : Final = 2
107107WRITABLE : Final = 4
108108
109- TCL_VERSION : str
110- TK_VERSION : str
109+ TCL_VERSION : Final [ str ]
110+ TK_VERSION : Final [ str ]
111111
112112@final
113113class TkttType :
Original file line number Diff line number Diff line change 11from typing import Final
22
33# These are not actually bools. See #4669
4- NO : bool
5- YES : bool
6- TRUE : bool
7- FALSE : bool
8- ON : bool
9- OFF : bool
4+ NO : Final [ bool ]
5+ YES : Final [ bool ]
6+ TRUE : Final [ bool ]
7+ FALSE : Final [ bool ]
8+ ON : Final [ bool ]
9+ OFF : Final [ bool ]
1010N : Final = "n"
1111S : Final = "s"
1212W : Final = "w"
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ import sys
22from _typeshed import Incomplete
33from collections .abc import Mapping
44from tkinter import Widget
5- from typing import Any
5+ from typing import Any , Final
66
77if sys .version_info >= (3 , 9 ):
88 __all__ = ["Dialog" ]
99
10- DIALOG_ICON : str
10+ DIALOG_ICON : Final = "questhead"
1111
1212class Dialog (Widget ):
1313 widgetName : str
Original file line number Diff line number Diff line change 11import sys
22from tkinter .commondialog import Dialog
3- from typing import ClassVar
3+ from typing import ClassVar , Final
44
55if sys .version_info >= (3 , 9 ):
66 __all__ = [
@@ -14,22 +14,22 @@ if sys.version_info >= (3, 9):
1414 "askretrycancel" ,
1515 ]
1616
17- ERROR : str
18- INFO : str
19- QUESTION : str
20- WARNING : str
21- ABORTRETRYIGNORE : str
22- OK : str
23- OKCANCEL : str
24- RETRYCANCEL : str
25- YESNO : str
26- YESNOCANCEL : str
27- ABORT : str
28- RETRY : str
29- IGNORE : str
30- CANCEL : str
31- YES : str
32- NO : str
17+ ERROR : Final = "error"
18+ INFO : Final = "info"
19+ QUESTION : Final = "question"
20+ WARNING : Final = "warning"
21+ ABORTRETRYIGNORE : Final = "abortretryignore"
22+ OK : Final = "ok"
23+ OKCANCEL : Final = "okcancel"
24+ RETRYCANCEL : Final = "retrycancel"
25+ YESNO : Final = "yesno"
26+ YESNOCANCEL : Final = "yesnocancel"
27+ ABORT : Final = "abort"
28+ RETRY : Final = "retry"
29+ IGNORE : Final = "ignore"
30+ CANCEL : Final = "cancel"
31+ YES : Final = "yes"
32+ NO : Final = "no"
3333
3434class Message (Dialog ):
3535 command : ClassVar [str ]
You can’t perform that action at this time.
0 commit comments