File tree Expand file tree Collapse file tree 4 files changed +27
-27
lines changed Expand file tree Collapse file tree 4 files changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,8 @@ EXCEPTION: Final = 8
106
106
READABLE : Final = 2
107
107
WRITABLE : Final = 4
108
108
109
- TCL_VERSION : str
110
- TK_VERSION : str
109
+ TCL_VERSION : Final [ str ]
110
+ TK_VERSION : Final [ str ]
111
111
112
112
@final
113
113
class TkttType :
Original file line number Diff line number Diff line change 1
1
from typing import Final
2
2
3
3
# 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 ]
10
10
N : Final = "n"
11
11
S : Final = "s"
12
12
W : Final = "w"
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ import sys
2
2
from _typeshed import Incomplete
3
3
from collections .abc import Mapping
4
4
from tkinter import Widget
5
- from typing import Any
5
+ from typing import Any , Final
6
6
7
7
if sys .version_info >= (3 , 9 ):
8
8
__all__ = ["Dialog" ]
9
9
10
- DIALOG_ICON : str
10
+ DIALOG_ICON : Final = "questhead"
11
11
12
12
class Dialog (Widget ):
13
13
widgetName : str
Original file line number Diff line number Diff line change 1
1
import sys
2
2
from tkinter .commondialog import Dialog
3
- from typing import ClassVar
3
+ from typing import ClassVar , Final
4
4
5
5
if sys .version_info >= (3 , 9 ):
6
6
__all__ = [
@@ -14,22 +14,22 @@ if sys.version_info >= (3, 9):
14
14
"askretrycancel" ,
15
15
]
16
16
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"
33
33
34
34
class Message (Dialog ):
35
35
command : ClassVar [str ]
You can’t perform that action at this time.
0 commit comments