basedpyright 1.24.0 → 1.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/dist/pyright-langserver.js +1 -1
  2. package/dist/pyright-langserver.js.LICENSE.txt +42 -0
  3. package/dist/pyright-langserver.js.map +1 -1
  4. package/dist/pyright.js +1 -1
  5. package/dist/pyright.js.map +1 -1
  6. package/dist/typeshed-fallback/stdlib/_asyncio.pyi +3 -25
  7. package/dist/typeshed-fallback/stdlib/_bisect.pyi +4 -44
  8. package/dist/typeshed-fallback/stdlib/_bootlocale.pyi +1 -1
  9. package/dist/typeshed-fallback/stdlib/_csv.pyi +2 -16
  10. package/dist/typeshed-fallback/stdlib/_dbm.pyi +1 -13
  11. package/dist/typeshed-fallback/stdlib/_decimal.pyi +1 -8
  12. package/dist/typeshed-fallback/stdlib/_dummy_thread.pyi +33 -33
  13. package/dist/typeshed-fallback/stdlib/_dummy_threading.pyi +164 -180
  14. package/dist/typeshed-fallback/stdlib/_gdbm.pyi +1 -39
  15. package/dist/typeshed-fallback/stdlib/_hashlib.pyi +7 -28
  16. package/dist/typeshed-fallback/stdlib/_imp.pyi +1 -3
  17. package/dist/typeshed-fallback/stdlib/_msi.pyi +92 -94
  18. package/dist/typeshed-fallback/stdlib/_sqlite3.pyi +6 -48
  19. package/dist/typeshed-fallback/stdlib/_ssl.pyi +1 -8
  20. package/dist/typeshed-fallback/stdlib/_thread.pyi +1 -8
  21. package/dist/typeshed-fallback/stdlib/_warnings.pyi +2 -6
  22. package/dist/typeshed-fallback/stdlib/aifc.pyi +91 -91
  23. package/dist/typeshed-fallback/stdlib/array.pyi +3 -17
  24. package/dist/typeshed-fallback/stdlib/asynchat.pyi +21 -21
  25. package/dist/typeshed-fallback/stdlib/asyncio/sslproto.pyi +4 -23
  26. package/dist/typeshed-fallback/stdlib/asyncore.pyi +90 -90
  27. package/dist/typeshed-fallback/stdlib/audioop.pyi +43 -95
  28. package/dist/typeshed-fallback/stdlib/binascii.pyi +5 -15
  29. package/dist/typeshed-fallback/stdlib/binhex.pyi +45 -45
  30. package/dist/typeshed-fallback/stdlib/builtins.pyi +8 -106
  31. package/dist/typeshed-fallback/stdlib/cgi.pyi +118 -118
  32. package/dist/typeshed-fallback/stdlib/cgitb.pyi +32 -32
  33. package/dist/typeshed-fallback/stdlib/chunk.pyi +20 -20
  34. package/dist/typeshed-fallback/stdlib/datetime.pyi +4 -12
  35. package/dist/typeshed-fallback/stdlib/distutils/__init__.pyi +5 -5
  36. package/dist/typeshed-fallback/stdlib/distutils/_msvccompiler.pyi +13 -13
  37. package/dist/typeshed-fallback/stdlib/distutils/archive_util.pyi +35 -35
  38. package/dist/typeshed-fallback/stdlib/distutils/bcppcompiler.pyi +3 -3
  39. package/dist/typeshed-fallback/stdlib/distutils/ccompiler.pyi +176 -176
  40. package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +229 -229
  41. package/dist/typeshed-fallback/stdlib/distutils/command/__init__.pyi +48 -48
  42. package/dist/typeshed-fallback/stdlib/distutils/command/bdist.pyi +27 -27
  43. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_dumb.pyi +22 -22
  44. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_msi.pyi +46 -46
  45. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_rpm.pyi +53 -53
  46. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_wininst.pyi +16 -16
  47. package/dist/typeshed-fallback/stdlib/distutils/command/build.pyi +34 -34
  48. package/dist/typeshed-fallback/stdlib/distutils/command/build_clib.pyi +29 -29
  49. package/dist/typeshed-fallback/stdlib/distutils/command/build_ext.pyi +52 -52
  50. package/dist/typeshed-fallback/stdlib/distutils/command/build_py.pyi +45 -45
  51. package/dist/typeshed-fallback/stdlib/distutils/command/build_scripts.pyi +25 -25
  52. package/dist/typeshed-fallback/stdlib/distutils/command/check.pyi +40 -40
  53. package/dist/typeshed-fallback/stdlib/distutils/command/clean.pyi +18 -18
  54. package/dist/typeshed-fallback/stdlib/distutils/command/config.pyi +84 -84
  55. package/dist/typeshed-fallback/stdlib/distutils/command/install.pyi +71 -71
  56. package/dist/typeshed-fallback/stdlib/distutils/command/install_data.pyi +20 -20
  57. package/dist/typeshed-fallback/stdlib/distutils/command/install_egg_info.pyi +19 -19
  58. package/dist/typeshed-fallback/stdlib/distutils/command/install_headers.pyi +17 -17
  59. package/dist/typeshed-fallback/stdlib/distutils/command/install_lib.pyi +26 -26
  60. package/dist/typeshed-fallback/stdlib/distutils/command/install_scripts.pyi +19 -19
  61. package/dist/typeshed-fallback/stdlib/distutils/command/register.pyi +21 -21
  62. package/dist/typeshed-fallback/stdlib/distutils/command/sdist.pyi +45 -45
  63. package/dist/typeshed-fallback/stdlib/distutils/command/upload.pyi +18 -18
  64. package/dist/typeshed-fallback/stdlib/distutils/config.pyi +17 -17
  65. package/dist/typeshed-fallback/stdlib/distutils/core.pyi +58 -58
  66. package/dist/typeshed-fallback/stdlib/distutils/cygwinccompiler.pyi +20 -20
  67. package/dist/typeshed-fallback/stdlib/distutils/debug.pyi +3 -3
  68. package/dist/typeshed-fallback/stdlib/distutils/dep_util.pyi +14 -14
  69. package/dist/typeshed-fallback/stdlib/distutils/dir_util.pyi +23 -23
  70. package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +317 -317
  71. package/dist/typeshed-fallback/stdlib/distutils/errors.pyi +19 -19
  72. package/dist/typeshed-fallback/stdlib/distutils/extension.pyi +36 -36
  73. package/dist/typeshed-fallback/stdlib/distutils/fancy_getopt.pyi +34 -34
  74. package/dist/typeshed-fallback/stdlib/distutils/file_util.pyi +38 -38
  75. package/dist/typeshed-fallback/stdlib/distutils/filelist.pyi +58 -58
  76. package/dist/typeshed-fallback/stdlib/distutils/log.pyi +26 -26
  77. package/dist/typeshed-fallback/stdlib/distutils/msvccompiler.pyi +3 -3
  78. package/dist/typeshed-fallback/stdlib/distutils/spawn.pyi +10 -10
  79. package/dist/typeshed-fallback/stdlib/distutils/sysconfig.pyi +33 -33
  80. package/dist/typeshed-fallback/stdlib/distutils/text_file.pyi +21 -21
  81. package/dist/typeshed-fallback/stdlib/distutils/unixccompiler.pyi +3 -3
  82. package/dist/typeshed-fallback/stdlib/distutils/util.pyi +53 -53
  83. package/dist/typeshed-fallback/stdlib/distutils/version.pyi +36 -38
  84. package/dist/typeshed-fallback/stdlib/dummy_threading.pyi +2 -2
  85. package/dist/typeshed-fallback/stdlib/encodings/mac_centeuro.pyi +21 -21
  86. package/dist/typeshed-fallback/stdlib/formatter.pyi +88 -88
  87. package/dist/typeshed-fallback/stdlib/hmac.pyi +2 -30
  88. package/dist/typeshed-fallback/stdlib/imghdr.pyi +17 -17
  89. package/dist/typeshed-fallback/stdlib/imp.pyi +62 -62
  90. package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +7 -36
  91. package/dist/typeshed-fallback/stdlib/lib2to3/btm_matcher.pyi +28 -28
  92. package/dist/typeshed-fallback/stdlib/lib2to3/fixer_base.pyi +42 -42
  93. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_apply.pyi +8 -8
  94. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_asserts.pyi +10 -10
  95. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_basestring.pyi +8 -8
  96. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_buffer.pyi +8 -8
  97. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_dict.pyi +16 -16
  98. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_except.pyi +14 -14
  99. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_exec.pyi +8 -8
  100. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_execfile.pyi +8 -8
  101. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_exitfunc.pyi +13 -13
  102. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_filter.pyi +9 -9
  103. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_funcattrs.pyi +8 -8
  104. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_future.pyi +8 -8
  105. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_getcwdu.pyi +8 -8
  106. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_has_key.pyi +8 -8
  107. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_idioms.pyi +15 -15
  108. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_import.pyi +16 -16
  109. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_imports.pyi +21 -21
  110. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_imports2.pyi +8 -8
  111. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_input.pyi +11 -11
  112. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_intern.pyi +9 -9
  113. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_isinstance.pyi +8 -8
  114. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_itertools.pyi +9 -9
  115. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_itertools_imports.pyi +7 -7
  116. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_long.pyi +7 -7
  117. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_map.pyi +9 -9
  118. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_metaclass.pyi +17 -17
  119. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_methodattrs.pyi +10 -10
  120. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_ne.pyi +8 -8
  121. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_next.pyi +19 -19
  122. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_nonzero.pyi +8 -8
  123. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_numliterals.pyi +8 -8
  124. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_operator.pyi +12 -12
  125. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_paren.pyi +8 -8
  126. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_print.pyi +12 -12
  127. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_raise.pyi +8 -8
  128. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_raw_input.pyi +8 -8
  129. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_reduce.pyi +8 -8
  130. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_reload.pyi +9 -9
  131. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_renames.pyi +17 -17
  132. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_repr.pyi +8 -8
  133. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_set_literal.pyi +7 -7
  134. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_standarderror.pyi +8 -8
  135. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_sys_exc.pyi +9 -9
  136. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_throw.pyi +8 -8
  137. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_tuple_params.pyi +17 -17
  138. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_types.pyi +8 -8
  139. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_unicode.pyi +12 -12
  140. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_urllib.pyi +15 -15
  141. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_ws_comma.pyi +12 -12
  142. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_xrange.pyi +20 -20
  143. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_xreadlines.pyi +8 -8
  144. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_zip.pyi +9 -9
  145. package/dist/typeshed-fallback/stdlib/lib2to3/main.pyi +42 -42
  146. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/__init__.pyi +9 -9
  147. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/driver.pyi +27 -27
  148. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/grammar.pyi +24 -24
  149. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/literals.pyi +7 -7
  150. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/parse.pyi +30 -30
  151. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/pgen.pyi +50 -50
  152. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/token.pyi +69 -69
  153. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/tokenize.pyi +96 -96
  154. package/dist/typeshed-fallback/stdlib/lib2to3/pygram.pyi +114 -114
  155. package/dist/typeshed-fallback/stdlib/lib2to3/pytree.pyi +117 -127
  156. package/dist/typeshed-fallback/stdlib/lib2to3/refactor.pyi +82 -82
  157. package/dist/typeshed-fallback/stdlib/mailcap.pyi +11 -11
  158. package/dist/typeshed-fallback/stdlib/marshal.pyi +4 -52
  159. package/dist/typeshed-fallback/stdlib/math.pyi +2 -6
  160. package/dist/typeshed-fallback/stdlib/msilib/__init__.pyi +177 -177
  161. package/dist/typeshed-fallback/stdlib/msilib/schema.pyi +94 -94
  162. package/dist/typeshed-fallback/stdlib/msilib/sequence.pyi +13 -13
  163. package/dist/typeshed-fallback/stdlib/msilib/text.pyi +7 -7
  164. package/dist/typeshed-fallback/stdlib/nis.pyi +4 -31
  165. package/dist/typeshed-fallback/stdlib/nntplib.pyi +125 -125
  166. package/dist/typeshed-fallback/stdlib/os/__init__.pyi +1 -8
  167. package/dist/typeshed-fallback/stdlib/parser.pyi +24 -55
  168. package/dist/typeshed-fallback/stdlib/pipes.pyi +16 -16
  169. package/dist/typeshed-fallback/stdlib/smtpd.pyi +91 -91
  170. package/dist/typeshed-fallback/stdlib/sndhdr.pyi +14 -14
  171. package/dist/typeshed-fallback/stdlib/spwd.pyi +13 -66
  172. package/dist/typeshed-fallback/stdlib/sqlite3/__init__.pyi +2 -6
  173. package/dist/typeshed-fallback/stdlib/ssl.pyi +0 -4
  174. package/dist/typeshed-fallback/stdlib/sunau.pyi +86 -86
  175. package/dist/typeshed-fallback/stdlib/symbol.pyi +93 -93
  176. package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +4 -40
  177. package/dist/typeshed-fallback/stdlib/telnetlib.pyi +123 -123
  178. package/dist/typeshed-fallback/stdlib/tkinter/tix.pyi +299 -299
  179. package/dist/typeshed-fallback/stdlib/types.pyi +2 -6
  180. package/dist/typeshed-fallback/stdlib/typing.pyi +2 -6
  181. package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +544 -559
  182. package/dist/typeshed-fallback/stdlib/unittest/__init__.pyi +1 -6
  183. package/dist/typeshed-fallback/stdlib/uu.pyi +13 -13
  184. package/dist/typeshed-fallback/stdlib/xdrlib.pyi +57 -57
  185. package/dist/typeshed-fallback/stdlib/xxlimited.pyi +1 -3
  186. package/dist/typeshed-fallback/stdlib/zipimport.pyi +0 -29
  187. package/dist/typeshed-fallback/stdlib/zlib.pyi +1 -10
  188. package/dist/typeshed-fallback/stdlib/zoneinfo/__init__.pyi +3 -9
  189. package/package.json +1 -1
@@ -1,299 +1,299 @@
1
- import tkinter
2
- from _typeshed import Incomplete
3
- from typing import Any, Final
4
-
5
- WINDOW: Final = "window"
6
- TEXT: Final = "text"
7
- STATUS: Final = "status"
8
- IMMEDIATE: Final = "immediate"
9
- IMAGE: Final = "image"
10
- IMAGETEXT: Final = "imagetext"
11
- BALLOON: Final = "balloon"
12
- AUTO: Final = "auto"
13
- ACROSSTOP: Final = "acrosstop"
14
-
15
- ASCII: Final = "ascii"
16
- CELL: Final = "cell"
17
- COLUMN: Final = "column"
18
- DECREASING: Final = "decreasing"
19
- INCREASING: Final = "increasing"
20
- INTEGER: Final = "integer"
21
- MAIN: Final = "main"
22
- MAX: Final = "max"
23
- REAL: Final = "real"
24
- ROW: Final = "row"
25
- S_REGION: Final = "s-region"
26
- X_REGION: Final = "x-region"
27
- Y_REGION: Final = "y-region"
28
-
29
- # These should be kept in sync with _tkinter constants, except TCL_ALL_EVENTS which doesn't match ALL_EVENTS
30
- TCL_DONT_WAIT: Final = 2
31
- TCL_WINDOW_EVENTS: Final = 4
32
- TCL_FILE_EVENTS: Final = 8
33
- TCL_TIMER_EVENTS: Final = 16
34
- TCL_IDLE_EVENTS: Final = 32
35
- TCL_ALL_EVENTS: Final = 0
36
-
37
- class tixCommand:
38
- def tix_addbitmapdir(self, directory: str) -> None: ...
39
- def tix_cget(self, option: str) -> Any: ...
40
- def tix_configure(self, cnf: dict[str, Any] | None = None, **kw: Any) -> Any: ...
41
- def tix_filedialog(self, dlgclass: str | None = None) -> str: ...
42
- def tix_getbitmap(self, name: str) -> str: ...
43
- def tix_getimage(self, name: str) -> str: ...
44
- def tix_option_get(self, name: str) -> Any: ...
45
- def tix_resetoptions(self, newScheme: str, newFontSet: str, newScmPrio: str | None = None) -> None: ...
46
-
47
- class Tk(tkinter.Tk, tixCommand):
48
- def __init__(self, screenName: str | None = None, baseName: str | None = None, className: str = "Tix") -> None: ...
49
-
50
- class TixWidget(tkinter.Widget):
51
- def __init__(
52
- self,
53
- master: tkinter.Misc | None = None,
54
- widgetName: str | None = None,
55
- static_options: list[str] | None = None,
56
- cnf: dict[str, Any] = {},
57
- kw: dict[str, Any] = {},
58
- ) -> None: ...
59
- def __getattr__(self, name: str): ...
60
- def set_silent(self, value: str) -> None: ...
61
- def subwidget(self, name: str) -> tkinter.Widget: ...
62
- def subwidgets_all(self) -> list[tkinter.Widget]: ...
63
- def config_all(self, option: Any, value: Any) -> None: ...
64
- def image_create(self, imgtype: str, cnf: dict[str, Any] = {}, master: tkinter.Widget | None = None, **kw) -> None: ...
65
- def image_delete(self, imgname: str) -> None: ...
66
-
67
- class TixSubWidget(TixWidget):
68
- def __init__(self, master: tkinter.Widget, name: str, destroy_physically: int = 1, check_intermediate: int = 1) -> None: ...
69
-
70
- class DisplayStyle:
71
- def __init__(self, itemtype: str, cnf: dict[str, Any] = {}, *, master: tkinter.Widget | None = None, **kw) -> None: ...
72
- def __getitem__(self, key: str): ...
73
- def __setitem__(self, key: str, value: Any) -> None: ...
74
- def delete(self) -> None: ...
75
- def config(self, cnf: dict[str, Any] = {}, **kw): ...
76
-
77
- class Balloon(TixWidget):
78
- def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
79
- def bind_widget(self, widget: tkinter.Widget, cnf: dict[str, Any] = {}, **kw) -> None: ...
80
- def unbind_widget(self, widget: tkinter.Widget) -> None: ...
81
-
82
- class ButtonBox(TixWidget):
83
- def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
84
- def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> tkinter.Widget: ...
85
- def invoke(self, name: str) -> None: ...
86
-
87
- class ComboBox(TixWidget):
88
- def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
89
- def add_history(self, str: str) -> None: ...
90
- def append_history(self, str: str) -> None: ...
91
- def insert(self, index: int, str: str) -> None: ...
92
- def pick(self, index: int) -> None: ...
93
-
94
- class Control(TixWidget):
95
- def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
96
- def decrement(self) -> None: ...
97
- def increment(self) -> None: ...
98
- def invoke(self) -> None: ...
99
-
100
- class LabelEntry(TixWidget):
101
- def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
102
-
103
- class LabelFrame(TixWidget):
104
- def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
105
-
106
- class Meter(TixWidget):
107
- def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
108
-
109
- class OptionMenu(TixWidget):
110
- def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
111
- def add_command(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
112
- def add_separator(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
113
- def delete(self, name: str) -> None: ...
114
- def disable(self, name: str) -> None: ...
115
- def enable(self, name: str) -> None: ...
116
-
117
- class PopupMenu(TixWidget):
118
- def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
119
- def bind_widget(self, widget: tkinter.Widget) -> None: ...
120
- def unbind_widget(self, widget: tkinter.Widget) -> None: ...
121
- def post_widget(self, widget: tkinter.Widget, x: int, y: int) -> None: ...
122
-
123
- class Select(TixWidget):
124
- def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
125
- def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> tkinter.Widget: ...
126
- def invoke(self, name: str) -> None: ...
127
-
128
- class StdButtonBox(TixWidget):
129
- def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
130
- def invoke(self, name: str) -> None: ...
131
-
132
- class DirList(TixWidget):
133
- def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
134
- def chdir(self, dir: str) -> None: ...
135
-
136
- class DirTree(TixWidget):
137
- def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
138
- def chdir(self, dir: str) -> None: ...
139
-
140
- class DirSelectDialog(TixWidget):
141
- def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
142
- def popup(self) -> None: ...
143
- def popdown(self) -> None: ...
144
-
145
- class DirSelectBox(TixWidget):
146
- def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
147
-
148
- class ExFileSelectBox(TixWidget):
149
- def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
150
- def filter(self) -> None: ...
151
- def invoke(self) -> None: ...
152
-
153
- class FileSelectBox(TixWidget):
154
- def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
155
- def apply_filter(self) -> None: ...
156
- def invoke(self) -> None: ...
157
-
158
- class FileEntry(TixWidget):
159
- def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
160
- def invoke(self) -> None: ...
161
- def file_dialog(self) -> None: ...
162
-
163
- class HList(TixWidget, tkinter.XView, tkinter.YView):
164
- def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
165
- def add(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> tkinter.Widget: ...
166
- def add_child(self, parent: str | None = None, cnf: dict[str, Any] = {}, **kw) -> tkinter.Widget: ...
167
- def anchor_set(self, entry: str) -> None: ...
168
- def anchor_clear(self) -> None: ...
169
- # FIXME: Overload, certain combos return, others don't
170
- def column_width(self, col: int = 0, width: int | None = None, chars: int | None = None) -> int | None: ...
171
- def delete_all(self) -> None: ...
172
- def delete_entry(self, entry: str) -> None: ...
173
- def delete_offsprings(self, entry: str) -> None: ...
174
- def delete_siblings(self, entry: str) -> None: ...
175
- def dragsite_set(self, index: int) -> None: ...
176
- def dragsite_clear(self) -> None: ...
177
- def dropsite_set(self, index: int) -> None: ...
178
- def dropsite_clear(self) -> None: ...
179
- def header_create(self, col: int, cnf: dict[str, Any] = {}, **kw) -> None: ...
180
- def header_configure(self, col: int, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
181
- def header_cget(self, col: int, opt): ...
182
- def header_exists(self, col: int) -> bool: ...
183
- def header_exist(self, col: int) -> bool: ...
184
- def header_delete(self, col: int) -> None: ...
185
- def header_size(self, col: int) -> int: ...
186
- def hide_entry(self, entry: str) -> None: ...
187
- def indicator_create(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
188
- def indicator_configure(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
189
- def indicator_cget(self, entry: str, opt): ...
190
- def indicator_exists(self, entry: str) -> bool: ...
191
- def indicator_delete(self, entry: str) -> None: ...
192
- def indicator_size(self, entry: str) -> int: ...
193
- def info_anchor(self) -> str: ...
194
- def info_bbox(self, entry: str) -> tuple[int, int, int, int]: ...
195
- def info_children(self, entry: str | None = None) -> tuple[str, ...]: ...
196
- def info_data(self, entry: str) -> Any: ...
197
- def info_dragsite(self) -> str: ...
198
- def info_dropsite(self) -> str: ...
199
- def info_exists(self, entry: str) -> bool: ...
200
- def info_hidden(self, entry: str) -> bool: ...
201
- def info_next(self, entry: str) -> str: ...
202
- def info_parent(self, entry: str) -> str: ...
203
- def info_prev(self, entry: str) -> str: ...
204
- def info_selection(self) -> tuple[str, ...]: ...
205
- def item_cget(self, entry: str, col: int, opt): ...
206
- def item_configure(self, entry: str, col: int, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
207
- def item_create(self, entry: str, col: int, cnf: dict[str, Any] = {}, **kw) -> None: ...
208
- def item_exists(self, entry: str, col: int) -> bool: ...
209
- def item_delete(self, entry: str, col: int) -> None: ...
210
- def entrycget(self, entry: str, opt): ...
211
- def entryconfigure(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
212
- def nearest(self, y: int) -> str: ...
213
- def see(self, entry: str) -> None: ...
214
- def selection_clear(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
215
- def selection_includes(self, entry: str) -> bool: ...
216
- def selection_set(self, first: str, last: str | None = None) -> None: ...
217
- def show_entry(self, entry: str) -> None: ...
218
-
219
- class CheckList(TixWidget):
220
- def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
221
- def autosetmode(self) -> None: ...
222
- def close(self, entrypath: str) -> None: ...
223
- def getmode(self, entrypath: str) -> str: ...
224
- def open(self, entrypath: str) -> None: ...
225
- def getselection(self, mode: str = "on") -> tuple[str, ...]: ...
226
- def getstatus(self, entrypath: str) -> str: ...
227
- def setstatus(self, entrypath: str, mode: str = "on") -> None: ...
228
-
229
- class Tree(TixWidget):
230
- def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
231
- def autosetmode(self) -> None: ...
232
- def close(self, entrypath: str) -> None: ...
233
- def getmode(self, entrypath: str) -> str: ...
234
- def open(self, entrypath: str) -> None: ...
235
- def setmode(self, entrypath: str, mode: str = "none") -> None: ...
236
-
237
- class TList(TixWidget, tkinter.XView, tkinter.YView):
238
- def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
239
- def active_set(self, index: int) -> None: ...
240
- def active_clear(self) -> None: ...
241
- def anchor_set(self, index: int) -> None: ...
242
- def anchor_clear(self) -> None: ...
243
- def delete(self, from_: int, to: int | None = None) -> None: ...
244
- def dragsite_set(self, index: int) -> None: ...
245
- def dragsite_clear(self) -> None: ...
246
- def dropsite_set(self, index: int) -> None: ...
247
- def dropsite_clear(self) -> None: ...
248
- def insert(self, index: int, cnf: dict[str, Any] = {}, **kw) -> None: ...
249
- def info_active(self) -> int: ...
250
- def info_anchor(self) -> int: ...
251
- def info_down(self, index: int) -> int: ...
252
- def info_left(self, index: int) -> int: ...
253
- def info_right(self, index: int) -> int: ...
254
- def info_selection(self) -> tuple[int, ...]: ...
255
- def info_size(self) -> int: ...
256
- def info_up(self, index: int) -> int: ...
257
- def nearest(self, x: int, y: int) -> int: ...
258
- def see(self, index: int) -> None: ...
259
- def selection_clear(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
260
- def selection_includes(self, index: int) -> bool: ...
261
- def selection_set(self, first: int, last: int | None = None) -> None: ...
262
-
263
- class PanedWindow(TixWidget):
264
- def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
265
- def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
266
- def delete(self, name: str) -> None: ...
267
- def forget(self, name: str) -> None: ... # type: ignore[override]
268
- def panecget(self, entry: str, opt): ...
269
- def paneconfigure(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
270
- def panes(self) -> list[tkinter.Widget]: ...
271
-
272
- class ListNoteBook(TixWidget):
273
- def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
274
- def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
275
- def page(self, name: str) -> tkinter.Widget: ...
276
- def pages(self) -> list[tkinter.Widget]: ...
277
- def raise_page(self, name: str) -> None: ...
278
-
279
- class NoteBook(TixWidget):
280
- def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
281
- def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
282
- def delete(self, name: str) -> None: ...
283
- def page(self, name: str) -> tkinter.Widget: ...
284
- def pages(self) -> list[tkinter.Widget]: ...
285
- def raise_page(self, name: str) -> None: ...
286
- def raised(self) -> bool: ...
287
-
288
- class InputOnly(TixWidget):
289
- def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
290
-
291
- class Form:
292
- def __setitem__(self, key: str, value: Any) -> None: ...
293
- def config(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
294
- def form(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
295
- def check(self) -> bool: ...
296
- def forget(self) -> None: ...
297
- def grid(self, xsize: int = 0, ysize: int = 0) -> tuple[int, int] | None: ...
298
- def info(self, option: str | None = None): ...
299
- def slaves(self) -> list[tkinter.Widget]: ...
1
+ import tkinter
2
+ from _typeshed import Incomplete
3
+ from typing import Any, Final
4
+
5
+ WINDOW: Final = "window"
6
+ TEXT: Final = "text"
7
+ STATUS: Final = "status"
8
+ IMMEDIATE: Final = "immediate"
9
+ IMAGE: Final = "image"
10
+ IMAGETEXT: Final = "imagetext"
11
+ BALLOON: Final = "balloon"
12
+ AUTO: Final = "auto"
13
+ ACROSSTOP: Final = "acrosstop"
14
+
15
+ ASCII: Final = "ascii"
16
+ CELL: Final = "cell"
17
+ COLUMN: Final = "column"
18
+ DECREASING: Final = "decreasing"
19
+ INCREASING: Final = "increasing"
20
+ INTEGER: Final = "integer"
21
+ MAIN: Final = "main"
22
+ MAX: Final = "max"
23
+ REAL: Final = "real"
24
+ ROW: Final = "row"
25
+ S_REGION: Final = "s-region"
26
+ X_REGION: Final = "x-region"
27
+ Y_REGION: Final = "y-region"
28
+
29
+ # These should be kept in sync with _tkinter constants, except TCL_ALL_EVENTS which doesn't match ALL_EVENTS
30
+ TCL_DONT_WAIT: Final = 2
31
+ TCL_WINDOW_EVENTS: Final = 4
32
+ TCL_FILE_EVENTS: Final = 8
33
+ TCL_TIMER_EVENTS: Final = 16
34
+ TCL_IDLE_EVENTS: Final = 32
35
+ TCL_ALL_EVENTS: Final = 0
36
+
37
+ class tixCommand:
38
+ def tix_addbitmapdir(self, directory: str) -> None: ...
39
+ def tix_cget(self, option: str) -> Any: ...
40
+ def tix_configure(self, cnf: dict[str, Any] | None = None, **kw: Any) -> Any: ...
41
+ def tix_filedialog(self, dlgclass: str | None = None) -> str: ...
42
+ def tix_getbitmap(self, name: str) -> str: ...
43
+ def tix_getimage(self, name: str) -> str: ...
44
+ def tix_option_get(self, name: str) -> Any: ...
45
+ def tix_resetoptions(self, newScheme: str, newFontSet: str, newScmPrio: str | None = None) -> None: ...
46
+
47
+ class Tk(tkinter.Tk, tixCommand):
48
+ def __init__(self, screenName: str | None = None, baseName: str | None = None, className: str = "Tix") -> None: ...
49
+
50
+ class TixWidget(tkinter.Widget):
51
+ def __init__(
52
+ self,
53
+ master: tkinter.Misc | None = None,
54
+ widgetName: str | None = None,
55
+ static_options: list[str] | None = None,
56
+ cnf: dict[str, Any] = {},
57
+ kw: dict[str, Any] = {},
58
+ ) -> None: ...
59
+ def __getattr__(self, name: str): ...
60
+ def set_silent(self, value: str) -> None: ...
61
+ def subwidget(self, name: str) -> tkinter.Widget: ...
62
+ def subwidgets_all(self) -> list[tkinter.Widget]: ...
63
+ def config_all(self, option: Any, value: Any) -> None: ...
64
+ def image_create(self, imgtype: str, cnf: dict[str, Any] = {}, master: tkinter.Widget | None = None, **kw) -> None: ...
65
+ def image_delete(self, imgname: str) -> None: ...
66
+
67
+ class TixSubWidget(TixWidget):
68
+ def __init__(self, master: tkinter.Widget, name: str, destroy_physically: int = 1, check_intermediate: int = 1) -> None: ...
69
+
70
+ class DisplayStyle:
71
+ def __init__(self, itemtype: str, cnf: dict[str, Any] = {}, *, master: tkinter.Widget | None = None, **kw) -> None: ...
72
+ def __getitem__(self, key: str): ...
73
+ def __setitem__(self, key: str, value: Any) -> None: ...
74
+ def delete(self) -> None: ...
75
+ def config(self, cnf: dict[str, Any] = {}, **kw): ...
76
+
77
+ class Balloon(TixWidget):
78
+ def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
79
+ def bind_widget(self, widget: tkinter.Widget, cnf: dict[str, Any] = {}, **kw) -> None: ...
80
+ def unbind_widget(self, widget: tkinter.Widget) -> None: ...
81
+
82
+ class ButtonBox(TixWidget):
83
+ def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
84
+ def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> tkinter.Widget: ...
85
+ def invoke(self, name: str) -> None: ...
86
+
87
+ class ComboBox(TixWidget):
88
+ def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
89
+ def add_history(self, str: str) -> None: ...
90
+ def append_history(self, str: str) -> None: ...
91
+ def insert(self, index: int, str: str) -> None: ...
92
+ def pick(self, index: int) -> None: ...
93
+
94
+ class Control(TixWidget):
95
+ def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
96
+ def decrement(self) -> None: ...
97
+ def increment(self) -> None: ...
98
+ def invoke(self) -> None: ...
99
+
100
+ class LabelEntry(TixWidget):
101
+ def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
102
+
103
+ class LabelFrame(TixWidget):
104
+ def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
105
+
106
+ class Meter(TixWidget):
107
+ def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
108
+
109
+ class OptionMenu(TixWidget):
110
+ def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
111
+ def add_command(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
112
+ def add_separator(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
113
+ def delete(self, name: str) -> None: ...
114
+ def disable(self, name: str) -> None: ...
115
+ def enable(self, name: str) -> None: ...
116
+
117
+ class PopupMenu(TixWidget):
118
+ def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
119
+ def bind_widget(self, widget: tkinter.Widget) -> None: ...
120
+ def unbind_widget(self, widget: tkinter.Widget) -> None: ...
121
+ def post_widget(self, widget: tkinter.Widget, x: int, y: int) -> None: ...
122
+
123
+ class Select(TixWidget):
124
+ def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
125
+ def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> tkinter.Widget: ...
126
+ def invoke(self, name: str) -> None: ...
127
+
128
+ class StdButtonBox(TixWidget):
129
+ def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
130
+ def invoke(self, name: str) -> None: ...
131
+
132
+ class DirList(TixWidget):
133
+ def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
134
+ def chdir(self, dir: str) -> None: ...
135
+
136
+ class DirTree(TixWidget):
137
+ def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
138
+ def chdir(self, dir: str) -> None: ...
139
+
140
+ class DirSelectDialog(TixWidget):
141
+ def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
142
+ def popup(self) -> None: ...
143
+ def popdown(self) -> None: ...
144
+
145
+ class DirSelectBox(TixWidget):
146
+ def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
147
+
148
+ class ExFileSelectBox(TixWidget):
149
+ def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
150
+ def filter(self) -> None: ...
151
+ def invoke(self) -> None: ...
152
+
153
+ class FileSelectBox(TixWidget):
154
+ def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
155
+ def apply_filter(self) -> None: ...
156
+ def invoke(self) -> None: ...
157
+
158
+ class FileEntry(TixWidget):
159
+ def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
160
+ def invoke(self) -> None: ...
161
+ def file_dialog(self) -> None: ...
162
+
163
+ class HList(TixWidget, tkinter.XView, tkinter.YView):
164
+ def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
165
+ def add(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> tkinter.Widget: ...
166
+ def add_child(self, parent: str | None = None, cnf: dict[str, Any] = {}, **kw) -> tkinter.Widget: ...
167
+ def anchor_set(self, entry: str) -> None: ...
168
+ def anchor_clear(self) -> None: ...
169
+ # FIXME: Overload, certain combos return, others don't
170
+ def column_width(self, col: int = 0, width: int | None = None, chars: int | None = None) -> int | None: ...
171
+ def delete_all(self) -> None: ...
172
+ def delete_entry(self, entry: str) -> None: ...
173
+ def delete_offsprings(self, entry: str) -> None: ...
174
+ def delete_siblings(self, entry: str) -> None: ...
175
+ def dragsite_set(self, index: int) -> None: ...
176
+ def dragsite_clear(self) -> None: ...
177
+ def dropsite_set(self, index: int) -> None: ...
178
+ def dropsite_clear(self) -> None: ...
179
+ def header_create(self, col: int, cnf: dict[str, Any] = {}, **kw) -> None: ...
180
+ def header_configure(self, col: int, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
181
+ def header_cget(self, col: int, opt): ...
182
+ def header_exists(self, col: int) -> bool: ...
183
+ def header_exist(self, col: int) -> bool: ...
184
+ def header_delete(self, col: int) -> None: ...
185
+ def header_size(self, col: int) -> int: ...
186
+ def hide_entry(self, entry: str) -> None: ...
187
+ def indicator_create(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
188
+ def indicator_configure(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
189
+ def indicator_cget(self, entry: str, opt): ...
190
+ def indicator_exists(self, entry: str) -> bool: ...
191
+ def indicator_delete(self, entry: str) -> None: ...
192
+ def indicator_size(self, entry: str) -> int: ...
193
+ def info_anchor(self) -> str: ...
194
+ def info_bbox(self, entry: str) -> tuple[int, int, int, int]: ...
195
+ def info_children(self, entry: str | None = None) -> tuple[str, ...]: ...
196
+ def info_data(self, entry: str) -> Any: ...
197
+ def info_dragsite(self) -> str: ...
198
+ def info_dropsite(self) -> str: ...
199
+ def info_exists(self, entry: str) -> bool: ...
200
+ def info_hidden(self, entry: str) -> bool: ...
201
+ def info_next(self, entry: str) -> str: ...
202
+ def info_parent(self, entry: str) -> str: ...
203
+ def info_prev(self, entry: str) -> str: ...
204
+ def info_selection(self) -> tuple[str, ...]: ...
205
+ def item_cget(self, entry: str, col: int, opt): ...
206
+ def item_configure(self, entry: str, col: int, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
207
+ def item_create(self, entry: str, col: int, cnf: dict[str, Any] = {}, **kw) -> None: ...
208
+ def item_exists(self, entry: str, col: int) -> bool: ...
209
+ def item_delete(self, entry: str, col: int) -> None: ...
210
+ def entrycget(self, entry: str, opt): ...
211
+ def entryconfigure(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
212
+ def nearest(self, y: int) -> str: ...
213
+ def see(self, entry: str) -> None: ...
214
+ def selection_clear(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
215
+ def selection_includes(self, entry: str) -> bool: ...
216
+ def selection_set(self, first: str, last: str | None = None) -> None: ...
217
+ def show_entry(self, entry: str) -> None: ...
218
+
219
+ class CheckList(TixWidget):
220
+ def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
221
+ def autosetmode(self) -> None: ...
222
+ def close(self, entrypath: str) -> None: ...
223
+ def getmode(self, entrypath: str) -> str: ...
224
+ def open(self, entrypath: str) -> None: ...
225
+ def getselection(self, mode: str = "on") -> tuple[str, ...]: ...
226
+ def getstatus(self, entrypath: str) -> str: ...
227
+ def setstatus(self, entrypath: str, mode: str = "on") -> None: ...
228
+
229
+ class Tree(TixWidget):
230
+ def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
231
+ def autosetmode(self) -> None: ...
232
+ def close(self, entrypath: str) -> None: ...
233
+ def getmode(self, entrypath: str) -> str: ...
234
+ def open(self, entrypath: str) -> None: ...
235
+ def setmode(self, entrypath: str, mode: str = "none") -> None: ...
236
+
237
+ class TList(TixWidget, tkinter.XView, tkinter.YView):
238
+ def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
239
+ def active_set(self, index: int) -> None: ...
240
+ def active_clear(self) -> None: ...
241
+ def anchor_set(self, index: int) -> None: ...
242
+ def anchor_clear(self) -> None: ...
243
+ def delete(self, from_: int, to: int | None = None) -> None: ...
244
+ def dragsite_set(self, index: int) -> None: ...
245
+ def dragsite_clear(self) -> None: ...
246
+ def dropsite_set(self, index: int) -> None: ...
247
+ def dropsite_clear(self) -> None: ...
248
+ def insert(self, index: int, cnf: dict[str, Any] = {}, **kw) -> None: ...
249
+ def info_active(self) -> int: ...
250
+ def info_anchor(self) -> int: ...
251
+ def info_down(self, index: int) -> int: ...
252
+ def info_left(self, index: int) -> int: ...
253
+ def info_right(self, index: int) -> int: ...
254
+ def info_selection(self) -> tuple[int, ...]: ...
255
+ def info_size(self) -> int: ...
256
+ def info_up(self, index: int) -> int: ...
257
+ def nearest(self, x: int, y: int) -> int: ...
258
+ def see(self, index: int) -> None: ...
259
+ def selection_clear(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
260
+ def selection_includes(self, index: int) -> bool: ...
261
+ def selection_set(self, first: int, last: int | None = None) -> None: ...
262
+
263
+ class PanedWindow(TixWidget):
264
+ def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
265
+ def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
266
+ def delete(self, name: str) -> None: ...
267
+ def forget(self, name: str) -> None: ... # type: ignore[override]
268
+ def panecget(self, entry: str, opt): ...
269
+ def paneconfigure(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
270
+ def panes(self) -> list[tkinter.Widget]: ...
271
+
272
+ class ListNoteBook(TixWidget):
273
+ def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
274
+ def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
275
+ def page(self, name: str) -> tkinter.Widget: ...
276
+ def pages(self) -> list[tkinter.Widget]: ...
277
+ def raise_page(self, name: str) -> None: ...
278
+
279
+ class NoteBook(TixWidget):
280
+ def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
281
+ def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
282
+ def delete(self, name: str) -> None: ...
283
+ def page(self, name: str) -> tkinter.Widget: ...
284
+ def pages(self) -> list[tkinter.Widget]: ...
285
+ def raise_page(self, name: str) -> None: ...
286
+ def raised(self) -> bool: ...
287
+
288
+ class InputOnly(TixWidget):
289
+ def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
290
+
291
+ class Form:
292
+ def __setitem__(self, key: str, value: Any) -> None: ...
293
+ def config(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
294
+ def form(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
295
+ def check(self) -> bool: ...
296
+ def forget(self) -> None: ...
297
+ def grid(self, xsize: int = 0, ysize: int = 0) -> tuple[int, int] | None: ...
298
+ def info(self, option: str | None = None): ...
299
+ def slaves(self) -> list[tkinter.Widget]: ...
@@ -295,9 +295,7 @@ class CodeType:
295
295
  co_filename: str = ...,
296
296
  co_name: str = ...,
297
297
  co_linetable: bytes = ...,
298
- ) -> Self:
299
- """Return a copy of the code object with new values for the specified fields."""
300
- ...
298
+ ) -> Self: ...
301
299
  else:
302
300
  def replace(
303
301
  self,
@@ -318,9 +316,7 @@ class CodeType:
318
316
  co_filename: str = ...,
319
317
  co_name: str = ...,
320
318
  co_lnotab: bytes = ...,
321
- ) -> Self:
322
- """Return a copy of the code object with new values for the specified fields."""
323
- ...
319
+ ) -> Self: ...
324
320
 
325
321
  if sys.version_info >= (3, 13):
326
322
  __replace__ = replace
@@ -515,14 +515,10 @@ else:
515
515
  from contextlib import AbstractAsyncContextManager, AbstractContextManager
516
516
 
517
517
  @runtime_checkable
518
- class ContextManager(AbstractContextManager[_T_co, bool | None], Protocol[_T_co]):
519
- """A generic version of contextlib.AbstractContextManager."""
520
- ...
518
+ class ContextManager(AbstractContextManager[_T_co, bool | None], Protocol[_T_co]): ...
521
519
 
522
520
  @runtime_checkable
523
- class AsyncContextManager(AbstractAsyncContextManager[_T_co, bool | None], Protocol[_T_co]):
524
- """A generic version of contextlib.AbstractAsyncContextManager."""
525
- ...
521
+ class AsyncContextManager(AbstractAsyncContextManager[_T_co, bool | None], Protocol[_T_co]): ...
526
522
 
527
523
  @runtime_checkable
528
524
  class Awaitable(Protocol[_T_co]):