@gnost-cli/darwin-arm64 0.0.1 → 0.5.1-rc.2

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 (1407) hide show
  1. package/README.md +1 -1
  2. package/bundle/_internal/6ec57f84c680d3a3778b__mypyc.cpython-312-darwin.so +4 -0
  3. package/bundle/_internal/Python +0 -0
  4. package/bundle/_internal/Python.framework/Python +0 -0
  5. package/bundle/_internal/Python.framework/Resources/Info.plist +30 -0
  6. package/bundle/_internal/Python.framework/Versions/3.12/Python +0 -0
  7. package/bundle/_internal/Python.framework/Versions/3.12/Resources/Info.plist +30 -0
  8. package/bundle/_internal/Python.framework/Versions/Current/Python +0 -0
  9. package/bundle/_internal/Python.framework/Versions/Current/Resources/Info.plist +30 -0
  10. package/bundle/_internal/ast_serialize/ast_serialize.abi3.so +0 -0
  11. package/bundle/_internal/bandit/__init__.py +20 -0
  12. package/bundle/_internal/bandit/__main__.py +17 -0
  13. package/bundle/_internal/bandit/blacklists/__init__.py +0 -0
  14. package/bundle/_internal/bandit/blacklists/calls.py +670 -0
  15. package/bundle/_internal/bandit/blacklists/imports.py +425 -0
  16. package/bundle/_internal/bandit/blacklists/utils.py +17 -0
  17. package/bundle/_internal/bandit/cli/__init__.py +0 -0
  18. package/bundle/_internal/bandit/cli/baseline.py +252 -0
  19. package/bundle/_internal/bandit/cli/config_generator.py +207 -0
  20. package/bundle/_internal/bandit/cli/main.py +701 -0
  21. package/bundle/_internal/bandit/core/__init__.py +15 -0
  22. package/bundle/_internal/bandit/core/blacklisting.py +72 -0
  23. package/bundle/_internal/bandit/core/config.py +271 -0
  24. package/bundle/_internal/bandit/core/constants.py +40 -0
  25. package/bundle/_internal/bandit/core/context.py +316 -0
  26. package/bundle/_internal/bandit/core/docs_utils.py +54 -0
  27. package/bundle/_internal/bandit/core/extension_loader.py +114 -0
  28. package/bundle/_internal/bandit/core/issue.py +245 -0
  29. package/bundle/_internal/bandit/core/manager.py +499 -0
  30. package/bundle/_internal/bandit/core/meta_ast.py +44 -0
  31. package/bundle/_internal/bandit/core/metrics.py +106 -0
  32. package/bundle/_internal/bandit/core/node_visitor.py +297 -0
  33. package/bundle/_internal/bandit/core/test_properties.py +83 -0
  34. package/bundle/_internal/bandit/core/test_set.py +114 -0
  35. package/bundle/_internal/bandit/core/tester.py +168 -0
  36. package/bundle/_internal/bandit/core/utils.py +398 -0
  37. package/bundle/_internal/bandit/formatters/__init__.py +0 -0
  38. package/bundle/_internal/bandit/formatters/csv.py +82 -0
  39. package/bundle/_internal/bandit/formatters/custom.py +161 -0
  40. package/bundle/_internal/bandit/formatters/html.py +394 -0
  41. package/bundle/_internal/bandit/formatters/json.py +155 -0
  42. package/bundle/_internal/bandit/formatters/sarif.py +374 -0
  43. package/bundle/_internal/bandit/formatters/screen.py +244 -0
  44. package/bundle/_internal/bandit/formatters/text.py +200 -0
  45. package/bundle/_internal/bandit/formatters/utils.py +14 -0
  46. package/bundle/_internal/bandit/formatters/xml.py +97 -0
  47. package/bundle/_internal/bandit/formatters/yaml.py +126 -0
  48. package/bundle/_internal/bandit/plugins/__init__.py +0 -0
  49. package/bundle/_internal/bandit/plugins/app_debug.py +63 -0
  50. package/bundle/_internal/bandit/plugins/asserts.py +83 -0
  51. package/bundle/_internal/bandit/plugins/crypto_request_no_cert_validation.py +75 -0
  52. package/bundle/_internal/bandit/plugins/django_sql_injection.py +155 -0
  53. package/bundle/_internal/bandit/plugins/django_xss.py +287 -0
  54. package/bundle/_internal/bandit/plugins/exec.py +55 -0
  55. package/bundle/_internal/bandit/plugins/general_bad_file_permissions.py +99 -0
  56. package/bundle/_internal/bandit/plugins/general_bind_all_interfaces.py +52 -0
  57. package/bundle/_internal/bandit/plugins/general_hardcoded_password.py +282 -0
  58. package/bundle/_internal/bandit/plugins/general_hardcoded_tmp.py +79 -0
  59. package/bundle/_internal/bandit/plugins/hashlib_insecure_functions.py +121 -0
  60. package/bundle/_internal/bandit/plugins/huggingface_unsafe_download.py +166 -0
  61. package/bundle/_internal/bandit/plugins/injection_paramiko.py +63 -0
  62. package/bundle/_internal/bandit/plugins/injection_shell.py +706 -0
  63. package/bundle/_internal/bandit/plugins/injection_sql.py +143 -0
  64. package/bundle/_internal/bandit/plugins/injection_wildcard.py +144 -0
  65. package/bundle/_internal/bandit/plugins/insecure_ssl_tls.py +285 -0
  66. package/bundle/_internal/bandit/plugins/jinja2_templates.py +134 -0
  67. package/bundle/_internal/bandit/plugins/logging_config_insecure_listen.py +58 -0
  68. package/bundle/_internal/bandit/plugins/mako_templates.py +69 -0
  69. package/bundle/_internal/bandit/plugins/markupsafe_markup_xss.py +118 -0
  70. package/bundle/_internal/bandit/plugins/pytorch_load.py +77 -0
  71. package/bundle/_internal/bandit/plugins/request_without_timeout.py +84 -0
  72. package/bundle/_internal/bandit/plugins/snmp_security_check.py +110 -0
  73. package/bundle/_internal/bandit/plugins/ssh_no_host_key_verification.py +76 -0
  74. package/bundle/_internal/bandit/plugins/tarfile_unsafe_members.py +121 -0
  75. package/bundle/_internal/bandit/plugins/trojansource.py +82 -0
  76. package/bundle/_internal/bandit/plugins/try_except_continue.py +108 -0
  77. package/bundle/_internal/bandit/plugins/try_except_pass.py +106 -0
  78. package/bundle/_internal/bandit/plugins/weak_cryptographic_key.py +165 -0
  79. package/bundle/_internal/bandit/plugins/yaml_load.py +76 -0
  80. package/bundle/_internal/bandit-1.9.4.dist-info/INSTALLER +1 -0
  81. package/bundle/_internal/bandit-1.9.4.dist-info/METADATA +212 -0
  82. package/bundle/_internal/bandit-1.9.4.dist-info/RECORD +150 -0
  83. package/bundle/_internal/bandit-1.9.4.dist-info/WHEEL +5 -0
  84. package/bundle/_internal/bandit-1.9.4.dist-info/entry_points.txt +63 -0
  85. package/bundle/_internal/bandit-1.9.4.dist-info/licenses/LICENSE +175 -0
  86. package/bundle/_internal/bandit-1.9.4.dist-info/pbr.json +1 -0
  87. package/bundle/_internal/bandit-1.9.4.dist-info/top_level.txt +1 -0
  88. package/bundle/_internal/base_library.zip +0 -0
  89. package/bundle/_internal/bin/ruff +0 -0
  90. package/bundle/_internal/gnost/__init__.py +1 -0
  91. package/bundle/_internal/gnost/analysis/__init__.py +0 -0
  92. package/bundle/_internal/gnost/analysis/analyzers/__init__.py +11 -0
  93. package/bundle/_internal/gnost/analysis/analyzers/maintainability_analyzer.py +901 -0
  94. package/bundle/_internal/gnost/analysis/analyzers/observability_analyzer.py +592 -0
  95. package/bundle/_internal/gnost/analysis/analyzers/readability_analyzer.py +968 -0
  96. package/bundle/_internal/gnost/analysis/analyzers/robustness_analyzer.py +944 -0
  97. package/bundle/_internal/gnost/analysis/config/mypy.ini +4 -0
  98. package/bundle/_internal/gnost/analysis/core/__init__.py +0 -0
  99. package/bundle/_internal/gnost/analysis/core/aggregator.py +584 -0
  100. package/bundle/_internal/gnost/analysis/core/engine.py +430 -0
  101. package/bundle/_internal/gnost/analysis/core/file_utils.py +209 -0
  102. package/bundle/_internal/gnost/analysis/core/interfaces.py +304 -0
  103. package/bundle/_internal/gnost/analysis/core/models.py +479 -0
  104. package/bundle/_internal/gnost/analysis/core/tool_runner.py +153 -0
  105. package/bundle/_internal/gnost/analysis/core/transformers.py +779 -0
  106. package/bundle/_internal/gnost/analysis/utils/__init__.py +0 -0
  107. package/bundle/_internal/gnost/analysis/utils/analyze.py +132 -0
  108. package/bundle/_internal/gnost/analysis/utils/df_handling.py +215 -0
  109. package/bundle/_internal/gnost/analysis/utils/duplicate_code.py +42 -0
  110. package/bundle/_internal/gnost/analysis/utils/extract.py +172 -0
  111. package/bundle/_internal/gnost/analysis/utils/mi.py +130 -0
  112. package/bundle/_internal/gnost/analysis/utils/tool_command.py +63 -0
  113. package/bundle/_internal/gnost/cli/__init__.py +3 -0
  114. package/bundle/_internal/gnost/cli/app.py +696 -0
  115. package/bundle/_internal/gnost/cli/commands/__init__.py +3 -0
  116. package/bundle/_internal/gnost/cli/commands/analysis.py +190 -0
  117. package/bundle/_internal/gnost/cli/commands/onboard.py +507 -0
  118. package/bundle/_internal/gnost/cli/commands/show.py +70 -0
  119. package/bundle/_internal/gnost/config/__init__.py +0 -0
  120. package/bundle/_internal/gnost/config/languages.py +10 -0
  121. package/bundle/_internal/gnost/config/settings.py +240 -0
  122. package/bundle/_internal/gnost/core/__init__.py +0 -0
  123. package/bundle/_internal/gnost/core/callgraph.py +399 -0
  124. package/bundle/_internal/gnost/core/caution.py +315 -0
  125. package/bundle/_internal/gnost/core/cycles.py +148 -0
  126. package/bundle/_internal/gnost/core/flow.py +204 -0
  127. package/bundle/_internal/gnost/core/graph.py +108 -0
  128. package/bundle/_internal/gnost/core/insight_builder.py +164 -0
  129. package/bundle/_internal/gnost/core/ranker.py +119 -0
  130. package/bundle/_internal/gnost/core/resolver.py +304 -0
  131. package/bundle/_internal/gnost/languages/base.py +108 -0
  132. package/bundle/_internal/gnost/languages/java.py +104 -0
  133. package/bundle/_internal/gnost/languages/javascript.py +153 -0
  134. package/bundle/_internal/gnost/languages/manifests.py +45 -0
  135. package/bundle/_internal/gnost/languages/python.py +318 -0
  136. package/bundle/_internal/gnost/languages/typescript.py +6 -0
  137. package/bundle/_internal/gnost/models/__init__.py +0 -0
  138. package/bundle/_internal/gnost/models/insights.py +68 -0
  139. package/bundle/_internal/gnost/reporters/__init__.py +3 -0
  140. package/bundle/_internal/gnost/reporters/analysis_html.py +1292 -0
  141. package/bundle/_internal/gnost/reporters/diagram_viewer.py +153 -0
  142. package/bundle/_internal/gnost/reporters/files.py +18 -0
  143. package/bundle/_internal/gnost/reporters/folders.py +18 -0
  144. package/bundle/_internal/gnost/reporters/insights_json.py +189 -0
  145. package/bundle/_internal/gnost/reporters/loc_summary.py +19 -0
  146. package/bundle/_internal/gnost/reporters/markdown.py +372 -0
  147. package/bundle/_internal/gnost/reporters/mermaid.py +543 -0
  148. package/bundle/_internal/gnost/reporters/mermaid_graph.py +309 -0
  149. package/bundle/_internal/gnost/reporters/readme.py +81 -0
  150. package/bundle/_internal/gnost/reporters/stats.py +13 -0
  151. package/bundle/_internal/gnost/reporters/summary.py +223 -0
  152. package/bundle/_internal/gnost/reporters/templates/analyzer_guides.json +247 -0
  153. package/bundle/_internal/gnost/reporters/templates/analyzer_guides_layout.html +9 -0
  154. package/bundle/_internal/gnost/reporters/templates/graph_viewer.html +427 -0
  155. package/bundle/_internal/gnost/reporters/vendor/THIRD_PARTY_NOTICES.md +205 -0
  156. package/bundle/_internal/gnost/reporters/vendor/cose-base.js +3214 -0
  157. package/bundle/_internal/gnost/reporters/vendor/cytoscape-fcose.js +1549 -0
  158. package/bundle/_internal/gnost/reporters/vendor/cytoscape.min.js +32 -0
  159. package/bundle/_internal/gnost/reporters/vendor/layout-base.js +5230 -0
  160. package/bundle/_internal/gnost/reporters/vendor/marked.min.js +6 -0
  161. package/bundle/_internal/gnost/reporters/vendor/mermaid.min.js +2314 -0
  162. package/bundle/_internal/gnost/reporters/vendor/svg-pan-zoom.min.js +3 -0
  163. package/bundle/_internal/gnost/reporters/vendor/vendor.json +44 -0
  164. package/bundle/_internal/gnost/routes/__init__.py +45 -0
  165. package/bundle/_internal/gnost/routes/java.py +72 -0
  166. package/bundle/_internal/gnost/routes/javascript.py +275 -0
  167. package/bundle/_internal/gnost/routes/models.py +58 -0
  168. package/bundle/_internal/gnost/routes/python.py +429 -0
  169. package/bundle/_internal/gnost/scanner/__init__.py +4 -0
  170. package/bundle/_internal/gnost/scanner/classify.py +13 -0
  171. package/bundle/_internal/gnost/scanner/engine.py +169 -0
  172. package/bundle/_internal/gnost/scanner/filters.py +197 -0
  173. package/bundle/_internal/gnost/scanner/loc.py +93 -0
  174. package/bundle/_internal/gnost/scanner/models.py +27 -0
  175. package/bundle/_internal/gnost/schemas/insights.schema.json +517 -0
  176. package/bundle/_internal/gnost/utils/__init__.py +0 -0
  177. package/bundle/_internal/gnost/utils/logger.py +85 -0
  178. package/bundle/_internal/gnost/utils/paths.py +29 -0
  179. package/bundle/_internal/gnost/utils/printer.py +46 -0
  180. package/bundle/_internal/gnost/utils/progress.py +20 -0
  181. package/bundle/_internal/gnost-0.5.1rc2.dist-info/INSTALLER +1 -0
  182. package/bundle/_internal/gnost-0.5.1rc2.dist-info/METADATA +130 -0
  183. package/bundle/_internal/gnost-0.5.1rc2.dist-info/RECORD +178 -0
  184. package/bundle/_internal/gnost-0.5.1rc2.dist-info/REQUESTED +0 -0
  185. package/bundle/_internal/gnost-0.5.1rc2.dist-info/WHEEL +5 -0
  186. package/bundle/_internal/gnost-0.5.1rc2.dist-info/direct_url.json +1 -0
  187. package/bundle/_internal/gnost-0.5.1rc2.dist-info/entry_points.txt +2 -0
  188. package/bundle/_internal/gnost-0.5.1rc2.dist-info/licenses/LICENSE +21 -0
  189. package/bundle/_internal/gnost-0.5.1rc2.dist-info/top_level.txt +1 -0
  190. package/bundle/_internal/libcrypto.3.dylib +0 -0
  191. package/bundle/_internal/libncurses.6.dylib +0 -0
  192. package/bundle/_internal/librt/base64.cpython-312-darwin.so +0 -0
  193. package/bundle/_internal/librt/internal.cpython-312-darwin.so +0 -0
  194. package/bundle/_internal/libssl.3.dylib +0 -0
  195. package/bundle/_internal/mypy/__init__.cpython-312-darwin.so +0 -0
  196. package/bundle/_internal/mypy/__init__.py +1 -0
  197. package/bundle/_internal/mypy/__main__.py +52 -0
  198. package/bundle/_internal/mypy/api.cpython-312-darwin.so +0 -0
  199. package/bundle/_internal/mypy/api.py +95 -0
  200. package/bundle/_internal/mypy/applytype.cpython-312-darwin.so +0 -0
  201. package/bundle/_internal/mypy/applytype.py +317 -0
  202. package/bundle/_internal/mypy/argmap.cpython-312-darwin.so +0 -0
  203. package/bundle/_internal/mypy/argmap.py +269 -0
  204. package/bundle/_internal/mypy/binder.cpython-312-darwin.so +0 -0
  205. package/bundle/_internal/mypy/binder.py +710 -0
  206. package/bundle/_internal/mypy/bogus_type.py +27 -0
  207. package/bundle/_internal/mypy/build.cpython-312-darwin.so +0 -0
  208. package/bundle/_internal/mypy/build.py +5533 -0
  209. package/bundle/_internal/mypy/build_worker/__init__.cpython-312-darwin.so +0 -0
  210. package/bundle/_internal/mypy/build_worker/__init__.py +0 -0
  211. package/bundle/_internal/mypy/build_worker/__main__.py +6 -0
  212. package/bundle/_internal/mypy/build_worker/worker.cpython-312-darwin.so +0 -0
  213. package/bundle/_internal/mypy/build_worker/worker.py +379 -0
  214. package/bundle/_internal/mypy/cache.cpython-312-darwin.so +0 -0
  215. package/bundle/_internal/mypy/cache.py +626 -0
  216. package/bundle/_internal/mypy/checker.cpython-312-darwin.so +0 -0
  217. package/bundle/_internal/mypy/checker.py +10110 -0
  218. package/bundle/_internal/mypy/checker_shared.cpython-312-darwin.so +0 -0
  219. package/bundle/_internal/mypy/checker_shared.py +377 -0
  220. package/bundle/_internal/mypy/checker_state.cpython-312-darwin.so +0 -0
  221. package/bundle/_internal/mypy/checker_state.py +30 -0
  222. package/bundle/_internal/mypy/checkexpr.cpython-312-darwin.so +0 -0
  223. package/bundle/_internal/mypy/checkexpr.py +7018 -0
  224. package/bundle/_internal/mypy/checkmember.cpython-312-darwin.so +0 -0
  225. package/bundle/_internal/mypy/checkmember.py +1593 -0
  226. package/bundle/_internal/mypy/checkpattern.cpython-312-darwin.so +0 -0
  227. package/bundle/_internal/mypy/checkpattern.py +883 -0
  228. package/bundle/_internal/mypy/checkstrformat.cpython-312-darwin.so +0 -0
  229. package/bundle/_internal/mypy/checkstrformat.py +1103 -0
  230. package/bundle/_internal/mypy/config_parser.cpython-312-darwin.so +0 -0
  231. package/bundle/_internal/mypy/config_parser.py +749 -0
  232. package/bundle/_internal/mypy/constant_fold.cpython-312-darwin.so +0 -0
  233. package/bundle/_internal/mypy/constant_fold.py +187 -0
  234. package/bundle/_internal/mypy/constraints.cpython-312-darwin.so +0 -0
  235. package/bundle/_internal/mypy/constraints.py +1748 -0
  236. package/bundle/_internal/mypy/copytype.cpython-312-darwin.so +0 -0
  237. package/bundle/_internal/mypy/copytype.py +137 -0
  238. package/bundle/_internal/mypy/defaults.cpython-312-darwin.so +0 -0
  239. package/bundle/_internal/mypy/defaults.py +67 -0
  240. package/bundle/_internal/mypy/dmypy/__init__.cpython-312-darwin.so +0 -0
  241. package/bundle/_internal/mypy/dmypy/__init__.py +0 -0
  242. package/bundle/_internal/mypy/dmypy/__main__.py +6 -0
  243. package/bundle/_internal/mypy/dmypy/client.cpython-312-darwin.so +0 -0
  244. package/bundle/_internal/mypy/dmypy/client.py +732 -0
  245. package/bundle/_internal/mypy/dmypy_os.cpython-312-darwin.so +0 -0
  246. package/bundle/_internal/mypy/dmypy_os.py +43 -0
  247. package/bundle/_internal/mypy/dmypy_server.cpython-312-darwin.so +0 -0
  248. package/bundle/_internal/mypy/dmypy_server.py +1132 -0
  249. package/bundle/_internal/mypy/dmypy_util.cpython-312-darwin.so +0 -0
  250. package/bundle/_internal/mypy/dmypy_util.py +117 -0
  251. package/bundle/_internal/mypy/erasetype.cpython-312-darwin.so +0 -0
  252. package/bundle/_internal/mypy/erasetype.py +301 -0
  253. package/bundle/_internal/mypy/error_formatter.cpython-312-darwin.so +0 -0
  254. package/bundle/_internal/mypy/error_formatter.py +39 -0
  255. package/bundle/_internal/mypy/errorcodes.cpython-312-darwin.so +0 -0
  256. package/bundle/_internal/mypy/errorcodes.py +340 -0
  257. package/bundle/_internal/mypy/errors.cpython-312-darwin.so +0 -0
  258. package/bundle/_internal/mypy/errors.py +1468 -0
  259. package/bundle/_internal/mypy/evalexpr.cpython-312-darwin.so +0 -0
  260. package/bundle/_internal/mypy/evalexpr.py +211 -0
  261. package/bundle/_internal/mypy/expandtype.cpython-312-darwin.so +0 -0
  262. package/bundle/_internal/mypy/expandtype.py +662 -0
  263. package/bundle/_internal/mypy/exportjson.py +616 -0
  264. package/bundle/_internal/mypy/exprtotype.cpython-312-darwin.so +0 -0
  265. package/bundle/_internal/mypy/exprtotype.py +285 -0
  266. package/bundle/_internal/mypy/fastparse.cpython-312-darwin.so +0 -0
  267. package/bundle/_internal/mypy/fastparse.py +2267 -0
  268. package/bundle/_internal/mypy/find_sources.cpython-312-darwin.so +0 -0
  269. package/bundle/_internal/mypy/find_sources.py +257 -0
  270. package/bundle/_internal/mypy/fixup.cpython-312-darwin.so +0 -0
  271. package/bundle/_internal/mypy/fixup.py +438 -0
  272. package/bundle/_internal/mypy/freetree.cpython-312-darwin.so +0 -0
  273. package/bundle/_internal/mypy/freetree.py +23 -0
  274. package/bundle/_internal/mypy/fscache.cpython-312-darwin.so +0 -0
  275. package/bundle/_internal/mypy/fscache.py +312 -0
  276. package/bundle/_internal/mypy/fswatcher.cpython-312-darwin.so +0 -0
  277. package/bundle/_internal/mypy/fswatcher.py +106 -0
  278. package/bundle/_internal/mypy/gclogger.cpython-312-darwin.so +0 -0
  279. package/bundle/_internal/mypy/gclogger.py +48 -0
  280. package/bundle/_internal/mypy/git.cpython-312-darwin.so +0 -0
  281. package/bundle/_internal/mypy/git.py +69 -0
  282. package/bundle/_internal/mypy/graph_utils.cpython-312-darwin.so +0 -0
  283. package/bundle/_internal/mypy/graph_utils.py +161 -0
  284. package/bundle/_internal/mypy/indirection.cpython-312-darwin.so +0 -0
  285. package/bundle/_internal/mypy/indirection.py +176 -0
  286. package/bundle/_internal/mypy/infer.cpython-312-darwin.so +0 -0
  287. package/bundle/_internal/mypy/infer.py +80 -0
  288. package/bundle/_internal/mypy/inspections.cpython-312-darwin.so +0 -0
  289. package/bundle/_internal/mypy/inspections.py +626 -0
  290. package/bundle/_internal/mypy/ipc.cpython-312-darwin.so +0 -0
  291. package/bundle/_internal/mypy/ipc.py +508 -0
  292. package/bundle/_internal/mypy/join.cpython-312-darwin.so +0 -0
  293. package/bundle/_internal/mypy/join.py +962 -0
  294. package/bundle/_internal/mypy/known_modules.cpython-312-darwin.so +0 -0
  295. package/bundle/_internal/mypy/known_modules.py +174 -0
  296. package/bundle/_internal/mypy/literals.cpython-312-darwin.so +0 -0
  297. package/bundle/_internal/mypy/literals.py +327 -0
  298. package/bundle/_internal/mypy/lookup.cpython-312-darwin.so +0 -0
  299. package/bundle/_internal/mypy/lookup.py +80 -0
  300. package/bundle/_internal/mypy/main.cpython-312-darwin.so +0 -0
  301. package/bundle/_internal/mypy/main.py +1793 -0
  302. package/bundle/_internal/mypy/maptype.cpython-312-darwin.so +0 -0
  303. package/bundle/_internal/mypy/maptype.py +109 -0
  304. package/bundle/_internal/mypy/meet.cpython-312-darwin.so +0 -0
  305. package/bundle/_internal/mypy/meet.py +1371 -0
  306. package/bundle/_internal/mypy/memprofile.cpython-312-darwin.so +0 -0
  307. package/bundle/_internal/mypy/memprofile.py +122 -0
  308. package/bundle/_internal/mypy/message_registry.cpython-312-darwin.so +0 -0
  309. package/bundle/_internal/mypy/message_registry.py +378 -0
  310. package/bundle/_internal/mypy/messages.cpython-312-darwin.so +0 -0
  311. package/bundle/_internal/mypy/messages.py +3535 -0
  312. package/bundle/_internal/mypy/metastore.cpython-312-darwin.so +0 -0
  313. package/bundle/_internal/mypy/metastore.py +278 -0
  314. package/bundle/_internal/mypy/mixedtraverser.cpython-312-darwin.so +0 -0
  315. package/bundle/_internal/mypy/mixedtraverser.py +147 -0
  316. package/bundle/_internal/mypy/modulefinder.cpython-312-darwin.so +0 -0
  317. package/bundle/_internal/mypy/modulefinder.py +1008 -0
  318. package/bundle/_internal/mypy/moduleinspect.cpython-312-darwin.so +0 -0
  319. package/bundle/_internal/mypy/moduleinspect.py +184 -0
  320. package/bundle/_internal/mypy/modules_state.cpython-312-darwin.so +0 -0
  321. package/bundle/_internal/mypy/modules_state.py +20 -0
  322. package/bundle/_internal/mypy/mro.cpython-312-darwin.so +0 -0
  323. package/bundle/_internal/mypy/mro.py +62 -0
  324. package/bundle/_internal/mypy/nativeparse.cpython-312-darwin.so +0 -0
  325. package/bundle/_internal/mypy/nativeparse.py +2199 -0
  326. package/bundle/_internal/mypy/nodes.cpython-312-darwin.so +0 -0
  327. package/bundle/_internal/mypy/nodes.py +5608 -0
  328. package/bundle/_internal/mypy/operators.cpython-312-darwin.so +0 -0
  329. package/bundle/_internal/mypy/operators.py +126 -0
  330. package/bundle/_internal/mypy/options.cpython-312-darwin.so +0 -0
  331. package/bundle/_internal/mypy/options.py +678 -0
  332. package/bundle/_internal/mypy/parse.cpython-312-darwin.so +0 -0
  333. package/bundle/_internal/mypy/parse.py +135 -0
  334. package/bundle/_internal/mypy/partially_defined.cpython-312-darwin.so +0 -0
  335. package/bundle/_internal/mypy/partially_defined.py +703 -0
  336. package/bundle/_internal/mypy/patterns.cpython-312-darwin.so +0 -0
  337. package/bundle/_internal/mypy/patterns.py +162 -0
  338. package/bundle/_internal/mypy/plugin.cpython-312-darwin.so +0 -0
  339. package/bundle/_internal/mypy/plugin.py +945 -0
  340. package/bundle/_internal/mypy/plugins/__init__.py +0 -0
  341. package/bundle/_internal/mypy/plugins/attrs.cpython-312-darwin.so +0 -0
  342. package/bundle/_internal/mypy/plugins/attrs.py +1179 -0
  343. package/bundle/_internal/mypy/plugins/common.cpython-312-darwin.so +0 -0
  344. package/bundle/_internal/mypy/plugins/common.py +441 -0
  345. package/bundle/_internal/mypy/plugins/constants.cpython-312-darwin.so +0 -0
  346. package/bundle/_internal/mypy/plugins/constants.py +20 -0
  347. package/bundle/_internal/mypy/plugins/ctypes.cpython-312-darwin.so +0 -0
  348. package/bundle/_internal/mypy/plugins/ctypes.py +245 -0
  349. package/bundle/_internal/mypy/plugins/dataclasses.cpython-312-darwin.so +0 -0
  350. package/bundle/_internal/mypy/plugins/dataclasses.py +1135 -0
  351. package/bundle/_internal/mypy/plugins/default.cpython-312-darwin.so +0 -0
  352. package/bundle/_internal/mypy/plugins/default.py +612 -0
  353. package/bundle/_internal/mypy/plugins/enums.cpython-312-darwin.so +0 -0
  354. package/bundle/_internal/mypy/plugins/enums.py +299 -0
  355. package/bundle/_internal/mypy/plugins/functools.cpython-312-darwin.so +0 -0
  356. package/bundle/_internal/mypy/plugins/functools.py +399 -0
  357. package/bundle/_internal/mypy/plugins/proper_plugin.cpython-312-darwin.so +0 -0
  358. package/bundle/_internal/mypy/plugins/proper_plugin.py +178 -0
  359. package/bundle/_internal/mypy/plugins/singledispatch.cpython-312-darwin.so +0 -0
  360. package/bundle/_internal/mypy/plugins/singledispatch.py +212 -0
  361. package/bundle/_internal/mypy/py.typed +1 -0
  362. package/bundle/_internal/mypy/pyinfo.py +79 -0
  363. package/bundle/_internal/mypy/reachability.cpython-312-darwin.so +0 -0
  364. package/bundle/_internal/mypy/reachability.py +388 -0
  365. package/bundle/_internal/mypy/refinfo.cpython-312-darwin.so +0 -0
  366. package/bundle/_internal/mypy/refinfo.py +92 -0
  367. package/bundle/_internal/mypy/renaming.cpython-312-darwin.so +0 -0
  368. package/bundle/_internal/mypy/renaming.py +583 -0
  369. package/bundle/_internal/mypy/report.cpython-312-darwin.so +0 -0
  370. package/bundle/_internal/mypy/report.py +930 -0
  371. package/bundle/_internal/mypy/scope.cpython-312-darwin.so +0 -0
  372. package/bundle/_internal/mypy/scope.py +125 -0
  373. package/bundle/_internal/mypy/semanal.cpython-312-darwin.so +0 -0
  374. package/bundle/_internal/mypy/semanal.py +8674 -0
  375. package/bundle/_internal/mypy/semanal_classprop.cpython-312-darwin.so +0 -0
  376. package/bundle/_internal/mypy/semanal_classprop.py +188 -0
  377. package/bundle/_internal/mypy/semanal_enum.cpython-312-darwin.so +0 -0
  378. package/bundle/_internal/mypy/semanal_enum.py +259 -0
  379. package/bundle/_internal/mypy/semanal_infer.cpython-312-darwin.so +0 -0
  380. package/bundle/_internal/mypy/semanal_infer.py +135 -0
  381. package/bundle/_internal/mypy/semanal_main.cpython-312-darwin.so +0 -0
  382. package/bundle/_internal/mypy/semanal_main.py +542 -0
  383. package/bundle/_internal/mypy/semanal_namedtuple.cpython-312-darwin.so +0 -0
  384. package/bundle/_internal/mypy/semanal_namedtuple.py +679 -0
  385. package/bundle/_internal/mypy/semanal_newtype.cpython-312-darwin.so +0 -0
  386. package/bundle/_internal/mypy/semanal_newtype.py +272 -0
  387. package/bundle/_internal/mypy/semanal_pass1.cpython-312-darwin.so +0 -0
  388. package/bundle/_internal/mypy/semanal_pass1.py +159 -0
  389. package/bundle/_internal/mypy/semanal_shared.cpython-312-darwin.so +0 -0
  390. package/bundle/_internal/mypy/semanal_shared.py +499 -0
  391. package/bundle/_internal/mypy/semanal_typeargs.cpython-312-darwin.so +0 -0
  392. package/bundle/_internal/mypy/semanal_typeargs.py +309 -0
  393. package/bundle/_internal/mypy/semanal_typeddict.cpython-312-darwin.so +0 -0
  394. package/bundle/_internal/mypy/semanal_typeddict.py +826 -0
  395. package/bundle/_internal/mypy/server/__init__.py +0 -0
  396. package/bundle/_internal/mypy/server/astdiff.cpython-312-darwin.so +0 -0
  397. package/bundle/_internal/mypy/server/astdiff.py +552 -0
  398. package/bundle/_internal/mypy/server/astmerge.cpython-312-darwin.so +0 -0
  399. package/bundle/_internal/mypy/server/astmerge.py +583 -0
  400. package/bundle/_internal/mypy/server/aststrip.cpython-312-darwin.so +0 -0
  401. package/bundle/_internal/mypy/server/aststrip.py +255 -0
  402. package/bundle/_internal/mypy/server/deps.cpython-312-darwin.so +0 -0
  403. package/bundle/_internal/mypy/server/deps.py +1153 -0
  404. package/bundle/_internal/mypy/server/mergecheck.cpython-312-darwin.so +0 -0
  405. package/bundle/_internal/mypy/server/mergecheck.py +84 -0
  406. package/bundle/_internal/mypy/server/objgraph.cpython-312-darwin.so +0 -0
  407. package/bundle/_internal/mypy/server/objgraph.py +101 -0
  408. package/bundle/_internal/mypy/server/subexpr.cpython-312-darwin.so +0 -0
  409. package/bundle/_internal/mypy/server/subexpr.py +208 -0
  410. package/bundle/_internal/mypy/server/target.cpython-312-darwin.so +0 -0
  411. package/bundle/_internal/mypy/server/target.py +11 -0
  412. package/bundle/_internal/mypy/server/trigger.cpython-312-darwin.so +0 -0
  413. package/bundle/_internal/mypy/server/trigger.py +26 -0
  414. package/bundle/_internal/mypy/server/update.cpython-312-darwin.so +0 -0
  415. package/bundle/_internal/mypy/server/update.py +1372 -0
  416. package/bundle/_internal/mypy/sharedparse.cpython-312-darwin.so +0 -0
  417. package/bundle/_internal/mypy/sharedparse.py +114 -0
  418. package/bundle/_internal/mypy/solve.cpython-312-darwin.so +0 -0
  419. package/bundle/_internal/mypy/solve.py +602 -0
  420. package/bundle/_internal/mypy/split_namespace.py +35 -0
  421. package/bundle/_internal/mypy/state.cpython-312-darwin.so +0 -0
  422. package/bundle/_internal/mypy/state.py +29 -0
  423. package/bundle/_internal/mypy/stats.cpython-312-darwin.so +0 -0
  424. package/bundle/_internal/mypy/stats.py +494 -0
  425. package/bundle/_internal/mypy/strconv.cpython-312-darwin.so +0 -0
  426. package/bundle/_internal/mypy/strconv.py +707 -0
  427. package/bundle/_internal/mypy/stubdoc.py +545 -0
  428. package/bundle/_internal/mypy/stubgen.cpython-312-darwin.so +0 -0
  429. package/bundle/_internal/mypy/stubgen.py +2064 -0
  430. package/bundle/_internal/mypy/stubgenc.py +1046 -0
  431. package/bundle/_internal/mypy/stubinfo.cpython-312-darwin.so +0 -0
  432. package/bundle/_internal/mypy/stubinfo.py +321 -0
  433. package/bundle/_internal/mypy/stubtest.py +2676 -0
  434. package/bundle/_internal/mypy/stubutil.cpython-312-darwin.so +0 -0
  435. package/bundle/_internal/mypy/stubutil.py +895 -0
  436. package/bundle/_internal/mypy/subtypes.cpython-312-darwin.so +0 -0
  437. package/bundle/_internal/mypy/subtypes.py +2572 -0
  438. package/bundle/_internal/mypy/suggestions.cpython-312-darwin.so +0 -0
  439. package/bundle/_internal/mypy/suggestions.py +1068 -0
  440. package/bundle/_internal/mypy/test/__init__.py +0 -0
  441. package/bundle/_internal/mypy/test/config.py +31 -0
  442. package/bundle/_internal/mypy/test/data.py +864 -0
  443. package/bundle/_internal/mypy/test/helpers.py +546 -0
  444. package/bundle/_internal/mypy/test/meta/__init__.py +0 -0
  445. package/bundle/_internal/mypy/test/meta/_pytest.py +72 -0
  446. package/bundle/_internal/mypy/test/meta/test_diff_helper.py +47 -0
  447. package/bundle/_internal/mypy/test/meta/test_parse_data.py +69 -0
  448. package/bundle/_internal/mypy/test/meta/test_update_data.py +131 -0
  449. package/bundle/_internal/mypy/test/test_config_parser.py +130 -0
  450. package/bundle/_internal/mypy/test/test_diff_cache.py +209 -0
  451. package/bundle/_internal/mypy/test/test_find_sources.py +376 -0
  452. package/bundle/_internal/mypy/test/test_nativeparse.py +306 -0
  453. package/bundle/_internal/mypy/test/test_ref_info.py +46 -0
  454. package/bundle/_internal/mypy/test/testapi.py +45 -0
  455. package/bundle/_internal/mypy/test/testargs.py +202 -0
  456. package/bundle/_internal/mypy/test/testcheck.py +360 -0
  457. package/bundle/_internal/mypy/test/testcmdline.py +162 -0
  458. package/bundle/_internal/mypy/test/testconstraints.py +134 -0
  459. package/bundle/_internal/mypy/test/testdaemon.py +132 -0
  460. package/bundle/_internal/mypy/test/testdeps.py +85 -0
  461. package/bundle/_internal/mypy/test/testdiff.py +70 -0
  462. package/bundle/_internal/mypy/test/testerrorstream.py +46 -0
  463. package/bundle/_internal/mypy/test/testexportjson.py +104 -0
  464. package/bundle/_internal/mypy/test/testfinegrained.py +453 -0
  465. package/bundle/_internal/mypy/test/testfinegrainedcache.py +18 -0
  466. package/bundle/_internal/mypy/test/testformatter.py +85 -0
  467. package/bundle/_internal/mypy/test/testfscache.py +100 -0
  468. package/bundle/_internal/mypy/test/testgraph.py +138 -0
  469. package/bundle/_internal/mypy/test/testinfer.py +373 -0
  470. package/bundle/_internal/mypy/test/testipc.py +154 -0
  471. package/bundle/_internal/mypy/test/testmerge.py +235 -0
  472. package/bundle/_internal/mypy/test/testmodulefinder.py +284 -0
  473. package/bundle/_internal/mypy/test/testmypyc.py +26 -0
  474. package/bundle/_internal/mypy/test/testoutput.py +64 -0
  475. package/bundle/_internal/mypy/test/testparse.py +131 -0
  476. package/bundle/_internal/mypy/test/testpep561.py +174 -0
  477. package/bundle/_internal/mypy/test/testpythoneval.py +116 -0
  478. package/bundle/_internal/mypy/test/testreports.py +59 -0
  479. package/bundle/_internal/mypy/test/testsemanal.py +219 -0
  480. package/bundle/_internal/mypy/test/testsolve.py +287 -0
  481. package/bundle/_internal/mypy/test/teststubgen.py +1650 -0
  482. package/bundle/_internal/mypy/test/teststubinfo.py +24 -0
  483. package/bundle/_internal/mypy/test/teststubtest.py +3417 -0
  484. package/bundle/_internal/mypy/test/testsubtypes.py +306 -0
  485. package/bundle/_internal/mypy/test/testtransform.py +64 -0
  486. package/bundle/_internal/mypy/test/testtypegen.py +83 -0
  487. package/bundle/_internal/mypy/test/testtypes.py +1666 -0
  488. package/bundle/_internal/mypy/test/testutil.py +111 -0
  489. package/bundle/_internal/mypy/test/typefixture.py +419 -0
  490. package/bundle/_internal/mypy/test/update_data.py +87 -0
  491. package/bundle/_internal/mypy/test/visitors.cpython-312-darwin.so +0 -0
  492. package/bundle/_internal/mypy/test/visitors.py +77 -0
  493. package/bundle/_internal/mypy/traverser.cpython-312-darwin.so +0 -0
  494. package/bundle/_internal/mypy/traverser.py +1106 -0
  495. package/bundle/_internal/mypy/treetransform.cpython-312-darwin.so +0 -0
  496. package/bundle/_internal/mypy/treetransform.py +820 -0
  497. package/bundle/_internal/mypy/tvar_scope.cpython-312-darwin.so +0 -0
  498. package/bundle/_internal/mypy/tvar_scope.py +154 -0
  499. package/bundle/_internal/mypy/type_visitor.cpython-312-darwin.so +0 -0
  500. package/bundle/_internal/mypy/type_visitor.py +630 -0
  501. package/bundle/_internal/mypy/typeanal.cpython-312-darwin.so +0 -0
  502. package/bundle/_internal/mypy/typeanal.py +2961 -0
  503. package/bundle/_internal/mypy/typeops.cpython-312-darwin.so +0 -0
  504. package/bundle/_internal/mypy/typeops.py +1355 -0
  505. package/bundle/_internal/mypy/types.cpython-312-darwin.so +0 -0
  506. package/bundle/_internal/mypy/types.py +4639 -0
  507. package/bundle/_internal/mypy/types_utils.cpython-312-darwin.so +0 -0
  508. package/bundle/_internal/mypy/types_utils.py +183 -0
  509. package/bundle/_internal/mypy/typeshed/LICENSE +237 -0
  510. package/bundle/_internal/mypy/typeshed/stdlib/VERSIONS +349 -0
  511. package/bundle/_internal/mypy/typeshed/stdlib/__future__.pyi +36 -0
  512. package/bundle/_internal/mypy/typeshed/stdlib/__main__.pyi +1 -0
  513. package/bundle/_internal/mypy/typeshed/stdlib/_ast.pyi +141 -0
  514. package/bundle/_internal/mypy/typeshed/stdlib/_asyncio.pyi +114 -0
  515. package/bundle/_internal/mypy/typeshed/stdlib/_bisect.pyi +103 -0
  516. package/bundle/_internal/mypy/typeshed/stdlib/_blake2.pyi +119 -0
  517. package/bundle/_internal/mypy/typeshed/stdlib/_bz2.pyi +24 -0
  518. package/bundle/_internal/mypy/typeshed/stdlib/_codecs.pyi +125 -0
  519. package/bundle/_internal/mypy/typeshed/stdlib/_collections_abc.pyi +105 -0
  520. package/bundle/_internal/mypy/typeshed/stdlib/_compat_pickle.pyi +10 -0
  521. package/bundle/_internal/mypy/typeshed/stdlib/_compression.pyi +39 -0
  522. package/bundle/_internal/mypy/typeshed/stdlib/_contextvars.pyi +69 -0
  523. package/bundle/_internal/mypy/typeshed/stdlib/_csv.pyi +116 -0
  524. package/bundle/_internal/mypy/typeshed/stdlib/_ctypes.pyi +375 -0
  525. package/bundle/_internal/mypy/typeshed/stdlib/_curses.pyi +583 -0
  526. package/bundle/_internal/mypy/typeshed/stdlib/_curses_panel.pyi +27 -0
  527. package/bundle/_internal/mypy/typeshed/stdlib/_dbm.pyi +46 -0
  528. package/bundle/_internal/mypy/typeshed/stdlib/_decimal.pyi +73 -0
  529. package/bundle/_internal/mypy/typeshed/stdlib/_frozen_importlib.pyi +121 -0
  530. package/bundle/_internal/mypy/typeshed/stdlib/_frozen_importlib_external.pyi +218 -0
  531. package/bundle/_internal/mypy/typeshed/stdlib/_gdbm.pyi +50 -0
  532. package/bundle/_internal/mypy/typeshed/stdlib/_hashlib.pyi +127 -0
  533. package/bundle/_internal/mypy/typeshed/stdlib/_heapq.pyi +18 -0
  534. package/bundle/_internal/mypy/typeshed/stdlib/_imp.pyi +30 -0
  535. package/bundle/_internal/mypy/typeshed/stdlib/_interpchannels.pyi +86 -0
  536. package/bundle/_internal/mypy/typeshed/stdlib/_interpqueues.pyi +31 -0
  537. package/bundle/_internal/mypy/typeshed/stdlib/_interpreters.pyi +68 -0
  538. package/bundle/_internal/mypy/typeshed/stdlib/_io.pyi +330 -0
  539. package/bundle/_internal/mypy/typeshed/stdlib/_json.pyi +59 -0
  540. package/bundle/_internal/mypy/typeshed/stdlib/_locale.pyi +121 -0
  541. package/bundle/_internal/mypy/typeshed/stdlib/_lsprof.pyi +34 -0
  542. package/bundle/_internal/mypy/typeshed/stdlib/_lzma.pyi +71 -0
  543. package/bundle/_internal/mypy/typeshed/stdlib/_markupbase.pyi +10 -0
  544. package/bundle/_internal/mypy/typeshed/stdlib/_msi.pyi +97 -0
  545. package/bundle/_internal/mypy/typeshed/stdlib/_multibytecodec.pyi +49 -0
  546. package/bundle/_internal/mypy/typeshed/stdlib/_operator.pyi +130 -0
  547. package/bundle/_internal/mypy/typeshed/stdlib/_osx_support.pyi +34 -0
  548. package/bundle/_internal/mypy/typeshed/stdlib/_pickle.pyi +114 -0
  549. package/bundle/_internal/mypy/typeshed/stdlib/_posixsubprocess.pyi +59 -0
  550. package/bundle/_internal/mypy/typeshed/stdlib/_py_abc.pyi +14 -0
  551. package/bundle/_internal/mypy/typeshed/stdlib/_pydecimal.pyi +50 -0
  552. package/bundle/_internal/mypy/typeshed/stdlib/_queue.pyi +18 -0
  553. package/bundle/_internal/mypy/typeshed/stdlib/_random.pyi +14 -0
  554. package/bundle/_internal/mypy/typeshed/stdlib/_remote_debugging.pyi +186 -0
  555. package/bundle/_internal/mypy/typeshed/stdlib/_sitebuiltins.pyi +18 -0
  556. package/bundle/_internal/mypy/typeshed/stdlib/_socket.pyi +966 -0
  557. package/bundle/_internal/mypy/typeshed/stdlib/_sqlite3.pyi +311 -0
  558. package/bundle/_internal/mypy/typeshed/stdlib/_ssl.pyi +303 -0
  559. package/bundle/_internal/mypy/typeshed/stdlib/_stat.pyi +119 -0
  560. package/bundle/_internal/mypy/typeshed/stdlib/_struct.pyi +24 -0
  561. package/bundle/_internal/mypy/typeshed/stdlib/_thread.pyi +125 -0
  562. package/bundle/_internal/mypy/typeshed/stdlib/_threading_local.pyi +24 -0
  563. package/bundle/_internal/mypy/typeshed/stdlib/_tkinter.pyi +156 -0
  564. package/bundle/_internal/mypy/typeshed/stdlib/_tracemalloc.pyi +13 -0
  565. package/bundle/_internal/mypy/typeshed/stdlib/_typeshed/README.md +34 -0
  566. package/bundle/_internal/mypy/typeshed/stdlib/_typeshed/__init__.pyi +415 -0
  567. package/bundle/_internal/mypy/typeshed/stdlib/_typeshed/_type_checker_internals.pyi +102 -0
  568. package/bundle/_internal/mypy/typeshed/stdlib/_typeshed/dbapi.pyi +36 -0
  569. package/bundle/_internal/mypy/typeshed/stdlib/_typeshed/importlib.pyi +18 -0
  570. package/bundle/_internal/mypy/typeshed/stdlib/_typeshed/wsgi.pyi +43 -0
  571. package/bundle/_internal/mypy/typeshed/stdlib/_typeshed/xml.pyi +9 -0
  572. package/bundle/_internal/mypy/typeshed/stdlib/_warnings.pyi +54 -0
  573. package/bundle/_internal/mypy/typeshed/stdlib/_weakref.pyi +15 -0
  574. package/bundle/_internal/mypy/typeshed/stdlib/_weakrefset.pyi +49 -0
  575. package/bundle/_internal/mypy/typeshed/stdlib/_winapi.pyi +319 -0
  576. package/bundle/_internal/mypy/typeshed/stdlib/_zstd.pyi +102 -0
  577. package/bundle/_internal/mypy/typeshed/stdlib/abc.pyi +50 -0
  578. package/bundle/_internal/mypy/typeshed/stdlib/aifc.pyi +79 -0
  579. package/bundle/_internal/mypy/typeshed/stdlib/annotationlib.pyi +156 -0
  580. package/bundle/_internal/mypy/typeshed/stdlib/antigravity.pyi +3 -0
  581. package/bundle/_internal/mypy/typeshed/stdlib/argparse.pyi +866 -0
  582. package/bundle/_internal/mypy/typeshed/stdlib/array.pyi +113 -0
  583. package/bundle/_internal/mypy/typeshed/stdlib/ast.pyi +2199 -0
  584. package/bundle/_internal/mypy/typeshed/stdlib/asynchat.pyi +21 -0
  585. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/__init__.pyi +1022 -0
  586. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/base_events.pyi +607 -0
  587. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/base_futures.pyi +17 -0
  588. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/base_subprocess.pyi +62 -0
  589. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/base_tasks.pyi +17 -0
  590. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/constants.pyi +20 -0
  591. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/coroutines.pyi +45 -0
  592. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/events.pyi +803 -0
  593. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/exceptions.pyi +44 -0
  594. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/format_helpers.pyi +31 -0
  595. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/futures.pyi +19 -0
  596. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/graph.pyi +29 -0
  597. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/locks.pyi +83 -0
  598. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/log.pyi +3 -0
  599. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/mixins.pyi +9 -0
  600. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/proactor_events.pyi +53 -0
  601. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/protocols.pyi +39 -0
  602. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/queues.pyi +45 -0
  603. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/runners.pyi +41 -0
  604. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/selector_events.pyi +10 -0
  605. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/sslproto.pyi +164 -0
  606. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/staggered.pyi +10 -0
  607. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/streams.pyi +124 -0
  608. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/subprocess.pyi +166 -0
  609. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/taskgroups.pyi +41 -0
  610. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/tasks.pyi +315 -0
  611. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/threads.pyi +9 -0
  612. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/timeouts.pyi +20 -0
  613. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/tools.pyi +51 -0
  614. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/transports.pyi +57 -0
  615. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/trsock.pyi +137 -0
  616. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/unix_events.pyi +277 -0
  617. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/windows_events.pyi +122 -0
  618. package/bundle/_internal/mypy/typeshed/stdlib/asyncio/windows_utils.pyi +49 -0
  619. package/bundle/_internal/mypy/typeshed/stdlib/asyncore.pyi +91 -0
  620. package/bundle/_internal/mypy/typeshed/stdlib/atexit.pyi +11 -0
  621. package/bundle/_internal/mypy/typeshed/stdlib/audioop.pyi +44 -0
  622. package/bundle/_internal/mypy/typeshed/stdlib/base64.pyi +124 -0
  623. package/bundle/_internal/mypy/typeshed/stdlib/bdb.pyi +139 -0
  624. package/bundle/_internal/mypy/typeshed/stdlib/binascii.pyi +102 -0
  625. package/bundle/_internal/mypy/typeshed/stdlib/binhex.pyi +44 -0
  626. package/bundle/_internal/mypy/typeshed/stdlib/bisect.pyi +4 -0
  627. package/bundle/_internal/mypy/typeshed/stdlib/builtins.pyi +2470 -0
  628. package/bundle/_internal/mypy/typeshed/stdlib/bz2.pyi +121 -0
  629. package/bundle/_internal/mypy/typeshed/stdlib/cProfile.pyi +33 -0
  630. package/bundle/_internal/mypy/typeshed/stdlib/calendar.pyi +249 -0
  631. package/bundle/_internal/mypy/typeshed/stdlib/cgi.pyi +120 -0
  632. package/bundle/_internal/mypy/typeshed/stdlib/cgitb.pyi +32 -0
  633. package/bundle/_internal/mypy/typeshed/stdlib/chunk.pyi +20 -0
  634. package/bundle/_internal/mypy/typeshed/stdlib/cmath.pyi +36 -0
  635. package/bundle/_internal/mypy/typeshed/stdlib/cmd.pyi +46 -0
  636. package/bundle/_internal/mypy/typeshed/stdlib/code.pyi +55 -0
  637. package/bundle/_internal/mypy/typeshed/stdlib/codecs.pyi +357 -0
  638. package/bundle/_internal/mypy/typeshed/stdlib/codeop.pyi +21 -0
  639. package/bundle/_internal/mypy/typeshed/stdlib/collections/__init__.pyi +565 -0
  640. package/bundle/_internal/mypy/typeshed/stdlib/collections/abc.pyi +2 -0
  641. package/bundle/_internal/mypy/typeshed/stdlib/colorsys.pyi +15 -0
  642. package/bundle/_internal/mypy/typeshed/stdlib/compileall.pyi +51 -0
  643. package/bundle/_internal/mypy/typeshed/stdlib/compression/__init__.pyi +0 -0
  644. package/bundle/_internal/mypy/typeshed/stdlib/compression/_common/__init__.pyi +0 -0
  645. package/bundle/_internal/mypy/typeshed/stdlib/compression/_common/_streams.pyi +37 -0
  646. package/bundle/_internal/mypy/typeshed/stdlib/compression/bz2.pyi +1 -0
  647. package/bundle/_internal/mypy/typeshed/stdlib/compression/gzip.pyi +1 -0
  648. package/bundle/_internal/mypy/typeshed/stdlib/compression/lzma.pyi +1 -0
  649. package/bundle/_internal/mypy/typeshed/stdlib/compression/zlib.pyi +1 -0
  650. package/bundle/_internal/mypy/typeshed/stdlib/compression/zstd/__init__.pyi +94 -0
  651. package/bundle/_internal/mypy/typeshed/stdlib/compression/zstd/_zstdfile.pyi +117 -0
  652. package/bundle/_internal/mypy/typeshed/stdlib/concurrent/__init__.pyi +0 -0
  653. package/bundle/_internal/mypy/typeshed/stdlib/concurrent/futures/__init__.pyi +71 -0
  654. package/bundle/_internal/mypy/typeshed/stdlib/concurrent/futures/_base.pyi +119 -0
  655. package/bundle/_internal/mypy/typeshed/stdlib/concurrent/futures/interpreter.pyi +82 -0
  656. package/bundle/_internal/mypy/typeshed/stdlib/concurrent/futures/process.pyi +248 -0
  657. package/bundle/_internal/mypy/typeshed/stdlib/concurrent/futures/thread.pyi +143 -0
  658. package/bundle/_internal/mypy/typeshed/stdlib/concurrent/interpreters/__init__.pyi +68 -0
  659. package/bundle/_internal/mypy/typeshed/stdlib/concurrent/interpreters/_crossinterp.pyi +30 -0
  660. package/bundle/_internal/mypy/typeshed/stdlib/concurrent/interpreters/_queues.pyi +74 -0
  661. package/bundle/_internal/mypy/typeshed/stdlib/configparser.pyi +509 -0
  662. package/bundle/_internal/mypy/typeshed/stdlib/contextlib.pyi +211 -0
  663. package/bundle/_internal/mypy/typeshed/stdlib/contextvars.pyi +3 -0
  664. package/bundle/_internal/mypy/typeshed/stdlib/copy.pyi +37 -0
  665. package/bundle/_internal/mypy/typeshed/stdlib/copyreg.pyi +20 -0
  666. package/bundle/_internal/mypy/typeshed/stdlib/crypt.pyi +26 -0
  667. package/bundle/_internal/mypy/typeshed/stdlib/csv.pyi +153 -0
  668. package/bundle/_internal/mypy/typeshed/stdlib/ctypes/__init__.pyi +394 -0
  669. package/bundle/_internal/mypy/typeshed/stdlib/ctypes/_endian.pyi +16 -0
  670. package/bundle/_internal/mypy/typeshed/stdlib/ctypes/macholib/__init__.pyi +3 -0
  671. package/bundle/_internal/mypy/typeshed/stdlib/ctypes/macholib/dyld.pyi +8 -0
  672. package/bundle/_internal/mypy/typeshed/stdlib/ctypes/macholib/dylib.pyi +14 -0
  673. package/bundle/_internal/mypy/typeshed/stdlib/ctypes/macholib/framework.pyi +14 -0
  674. package/bundle/_internal/mypy/typeshed/stdlib/ctypes/util.pyi +11 -0
  675. package/bundle/_internal/mypy/typeshed/stdlib/ctypes/wintypes.pyi +321 -0
  676. package/bundle/_internal/mypy/typeshed/stdlib/curses/__init__.pyi +38 -0
  677. package/bundle/_internal/mypy/typeshed/stdlib/curses/ascii.pyi +62 -0
  678. package/bundle/_internal/mypy/typeshed/stdlib/curses/has_key.pyi +1 -0
  679. package/bundle/_internal/mypy/typeshed/stdlib/curses/panel.pyi +1 -0
  680. package/bundle/_internal/mypy/typeshed/stdlib/curses/textpad.pyi +11 -0
  681. package/bundle/_internal/mypy/typeshed/stdlib/dataclasses.pyi +401 -0
  682. package/bundle/_internal/mypy/typeshed/stdlib/datetime.pyi +381 -0
  683. package/bundle/_internal/mypy/typeshed/stdlib/dbm/__init__.pyi +105 -0
  684. package/bundle/_internal/mypy/typeshed/stdlib/dbm/dumb.pyi +41 -0
  685. package/bundle/_internal/mypy/typeshed/stdlib/dbm/gnu.pyi +1 -0
  686. package/bundle/_internal/mypy/typeshed/stdlib/dbm/ndbm.pyi +1 -0
  687. package/bundle/_internal/mypy/typeshed/stdlib/dbm/sqlite3.pyi +34 -0
  688. package/bundle/_internal/mypy/typeshed/stdlib/decimal.pyi +278 -0
  689. package/bundle/_internal/mypy/typeshed/stdlib/difflib.pyi +157 -0
  690. package/bundle/_internal/mypy/typeshed/stdlib/dis.pyi +302 -0
  691. package/bundle/_internal/mypy/typeshed/stdlib/distutils/__init__.pyi +5 -0
  692. package/bundle/_internal/mypy/typeshed/stdlib/distutils/_msvccompiler.pyi +13 -0
  693. package/bundle/_internal/mypy/typeshed/stdlib/distutils/archive_util.pyi +36 -0
  694. package/bundle/_internal/mypy/typeshed/stdlib/distutils/bcppcompiler.pyi +3 -0
  695. package/bundle/_internal/mypy/typeshed/stdlib/distutils/ccompiler.pyi +182 -0
  696. package/bundle/_internal/mypy/typeshed/stdlib/distutils/cmd.pyi +238 -0
  697. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/__init__.pyi +41 -0
  698. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/bdist.pyi +27 -0
  699. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/bdist_dumb.pyi +22 -0
  700. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/bdist_msi.pyi +45 -0
  701. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/bdist_packager.pyi +0 -0
  702. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/bdist_rpm.pyi +53 -0
  703. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/build.pyi +34 -0
  704. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/build_clib.pyi +29 -0
  705. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/build_ext.pyi +52 -0
  706. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/build_py.pyi +45 -0
  707. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/build_scripts.pyi +25 -0
  708. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/check.pyi +39 -0
  709. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/clean.pyi +18 -0
  710. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/config.pyi +84 -0
  711. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/install.pyi +67 -0
  712. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/install_data.pyi +20 -0
  713. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/install_egg_info.pyi +19 -0
  714. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/install_headers.pyi +17 -0
  715. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/install_lib.pyi +26 -0
  716. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/install_scripts.pyi +19 -0
  717. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/register.pyi +20 -0
  718. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/sdist.pyi +45 -0
  719. package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/upload.pyi +18 -0
  720. package/bundle/_internal/mypy/typeshed/stdlib/distutils/config.pyi +17 -0
  721. package/bundle/_internal/mypy/typeshed/stdlib/distutils/core.pyi +58 -0
  722. package/bundle/_internal/mypy/typeshed/stdlib/distutils/cygwinccompiler.pyi +20 -0
  723. package/bundle/_internal/mypy/typeshed/stdlib/distutils/debug.pyi +3 -0
  724. package/bundle/_internal/mypy/typeshed/stdlib/distutils/dep_util.pyi +14 -0
  725. package/bundle/_internal/mypy/typeshed/stdlib/distutils/dir_util.pyi +23 -0
  726. package/bundle/_internal/mypy/typeshed/stdlib/distutils/dist.pyi +318 -0
  727. package/bundle/_internal/mypy/typeshed/stdlib/distutils/errors.pyi +19 -0
  728. package/bundle/_internal/mypy/typeshed/stdlib/distutils/extension.pyi +36 -0
  729. package/bundle/_internal/mypy/typeshed/stdlib/distutils/fancy_getopt.pyi +45 -0
  730. package/bundle/_internal/mypy/typeshed/stdlib/distutils/file_util.pyi +40 -0
  731. package/bundle/_internal/mypy/typeshed/stdlib/distutils/filelist.pyi +61 -0
  732. package/bundle/_internal/mypy/typeshed/stdlib/distutils/log.pyi +26 -0
  733. package/bundle/_internal/mypy/typeshed/stdlib/distutils/msvccompiler.pyi +3 -0
  734. package/bundle/_internal/mypy/typeshed/stdlib/distutils/spawn.pyi +10 -0
  735. package/bundle/_internal/mypy/typeshed/stdlib/distutils/sysconfig.pyi +32 -0
  736. package/bundle/_internal/mypy/typeshed/stdlib/distutils/text_file.pyi +21 -0
  737. package/bundle/_internal/mypy/typeshed/stdlib/distutils/unixccompiler.pyi +3 -0
  738. package/bundle/_internal/mypy/typeshed/stdlib/distutils/util.pyi +53 -0
  739. package/bundle/_internal/mypy/typeshed/stdlib/distutils/version.pyi +36 -0
  740. package/bundle/_internal/mypy/typeshed/stdlib/doctest.pyi +265 -0
  741. package/bundle/_internal/mypy/typeshed/stdlib/email/__init__.pyi +68 -0
  742. package/bundle/_internal/mypy/typeshed/stdlib/email/_header_value_parser.pyi +415 -0
  743. package/bundle/_internal/mypy/typeshed/stdlib/email/_policybase.pyi +80 -0
  744. package/bundle/_internal/mypy/typeshed/stdlib/email/base64mime.pyi +13 -0
  745. package/bundle/_internal/mypy/typeshed/stdlib/email/charset.pyi +44 -0
  746. package/bundle/_internal/mypy/typeshed/stdlib/email/contentmanager.pyi +11 -0
  747. package/bundle/_internal/mypy/typeshed/stdlib/email/encoders.pyi +8 -0
  748. package/bundle/_internal/mypy/typeshed/stdlib/email/errors.pyi +38 -0
  749. package/bundle/_internal/mypy/typeshed/stdlib/email/feedparser.pyi +24 -0
  750. package/bundle/_internal/mypy/typeshed/stdlib/email/generator.pyi +79 -0
  751. package/bundle/_internal/mypy/typeshed/stdlib/email/header.pyi +32 -0
  752. package/bundle/_internal/mypy/typeshed/stdlib/email/headerregistry.pyi +196 -0
  753. package/bundle/_internal/mypy/typeshed/stdlib/email/iterators.pyi +15 -0
  754. package/bundle/_internal/mypy/typeshed/stdlib/email/message.pyi +191 -0
  755. package/bundle/_internal/mypy/typeshed/stdlib/email/mime/__init__.pyi +0 -0
  756. package/bundle/_internal/mypy/typeshed/stdlib/email/mime/application.pyi +17 -0
  757. package/bundle/_internal/mypy/typeshed/stdlib/email/mime/audio.pyi +17 -0
  758. package/bundle/_internal/mypy/typeshed/stdlib/email/mime/base.pyi +8 -0
  759. package/bundle/_internal/mypy/typeshed/stdlib/email/mime/image.pyi +17 -0
  760. package/bundle/_internal/mypy/typeshed/stdlib/email/mime/message.pyi +8 -0
  761. package/bundle/_internal/mypy/typeshed/stdlib/email/mime/multipart.pyi +18 -0
  762. package/bundle/_internal/mypy/typeshed/stdlib/email/mime/nonmultipart.pyi +5 -0
  763. package/bundle/_internal/mypy/typeshed/stdlib/email/mime/text.pyi +9 -0
  764. package/bundle/_internal/mypy/typeshed/stdlib/email/parser.pyi +42 -0
  765. package/bundle/_internal/mypy/typeshed/stdlib/email/policy.pyi +78 -0
  766. package/bundle/_internal/mypy/typeshed/stdlib/email/quoprimime.pyi +28 -0
  767. package/bundle/_internal/mypy/typeshed/stdlib/email/utils.pyi +72 -0
  768. package/bundle/_internal/mypy/typeshed/stdlib/encodings/__init__.pyi +15 -0
  769. package/bundle/_internal/mypy/typeshed/stdlib/encodings/aliases.pyi +1 -0
  770. package/bundle/_internal/mypy/typeshed/stdlib/encodings/ascii.pyi +30 -0
  771. package/bundle/_internal/mypy/typeshed/stdlib/encodings/base64_codec.pyi +26 -0
  772. package/bundle/_internal/mypy/typeshed/stdlib/encodings/big5.pyi +23 -0
  773. package/bundle/_internal/mypy/typeshed/stdlib/encodings/big5hkscs.pyi +23 -0
  774. package/bundle/_internal/mypy/typeshed/stdlib/encodings/bz2_codec.pyi +26 -0
  775. package/bundle/_internal/mypy/typeshed/stdlib/encodings/charmap.pyi +33 -0
  776. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp037.pyi +21 -0
  777. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1006.pyi +21 -0
  778. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1026.pyi +21 -0
  779. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1125.pyi +21 -0
  780. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1140.pyi +21 -0
  781. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1250.pyi +21 -0
  782. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1251.pyi +21 -0
  783. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1252.pyi +21 -0
  784. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1253.pyi +21 -0
  785. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1254.pyi +21 -0
  786. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1255.pyi +21 -0
  787. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1256.pyi +21 -0
  788. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1257.pyi +21 -0
  789. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1258.pyi +21 -0
  790. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp273.pyi +21 -0
  791. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp424.pyi +21 -0
  792. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp437.pyi +21 -0
  793. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp500.pyi +21 -0
  794. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp720.pyi +21 -0
  795. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp737.pyi +21 -0
  796. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp775.pyi +21 -0
  797. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp850.pyi +21 -0
  798. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp852.pyi +21 -0
  799. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp855.pyi +21 -0
  800. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp856.pyi +21 -0
  801. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp857.pyi +21 -0
  802. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp858.pyi +21 -0
  803. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp860.pyi +21 -0
  804. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp861.pyi +21 -0
  805. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp862.pyi +21 -0
  806. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp863.pyi +21 -0
  807. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp864.pyi +21 -0
  808. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp865.pyi +21 -0
  809. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp866.pyi +21 -0
  810. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp869.pyi +21 -0
  811. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp874.pyi +21 -0
  812. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp875.pyi +21 -0
  813. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp932.pyi +23 -0
  814. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp949.pyi +23 -0
  815. package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp950.pyi +23 -0
  816. package/bundle/_internal/mypy/typeshed/stdlib/encodings/euc_jis_2004.pyi +23 -0
  817. package/bundle/_internal/mypy/typeshed/stdlib/encodings/euc_jisx0213.pyi +23 -0
  818. package/bundle/_internal/mypy/typeshed/stdlib/encodings/euc_jp.pyi +23 -0
  819. package/bundle/_internal/mypy/typeshed/stdlib/encodings/euc_kr.pyi +23 -0
  820. package/bundle/_internal/mypy/typeshed/stdlib/encodings/gb18030.pyi +23 -0
  821. package/bundle/_internal/mypy/typeshed/stdlib/encodings/gb2312.pyi +23 -0
  822. package/bundle/_internal/mypy/typeshed/stdlib/encodings/gbk.pyi +23 -0
  823. package/bundle/_internal/mypy/typeshed/stdlib/encodings/hex_codec.pyi +26 -0
  824. package/bundle/_internal/mypy/typeshed/stdlib/encodings/hp_roman8.pyi +21 -0
  825. package/bundle/_internal/mypy/typeshed/stdlib/encodings/hz.pyi +23 -0
  826. package/bundle/_internal/mypy/typeshed/stdlib/encodings/idna.pyi +26 -0
  827. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso2022_jp.pyi +23 -0
  828. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso2022_jp_1.pyi +23 -0
  829. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso2022_jp_2.pyi +23 -0
  830. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso2022_jp_2004.pyi +23 -0
  831. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso2022_jp_3.pyi +23 -0
  832. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso2022_jp_ext.pyi +23 -0
  833. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso2022_kr.pyi +23 -0
  834. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_1.pyi +21 -0
  835. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_10.pyi +21 -0
  836. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_11.pyi +21 -0
  837. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_13.pyi +21 -0
  838. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_14.pyi +21 -0
  839. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_15.pyi +21 -0
  840. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_16.pyi +21 -0
  841. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_2.pyi +21 -0
  842. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_3.pyi +21 -0
  843. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_4.pyi +21 -0
  844. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_5.pyi +21 -0
  845. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_6.pyi +21 -0
  846. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_7.pyi +21 -0
  847. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_8.pyi +21 -0
  848. package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_9.pyi +21 -0
  849. package/bundle/_internal/mypy/typeshed/stdlib/encodings/johab.pyi +23 -0
  850. package/bundle/_internal/mypy/typeshed/stdlib/encodings/koi8_r.pyi +21 -0
  851. package/bundle/_internal/mypy/typeshed/stdlib/encodings/koi8_t.pyi +21 -0
  852. package/bundle/_internal/mypy/typeshed/stdlib/encodings/koi8_u.pyi +21 -0
  853. package/bundle/_internal/mypy/typeshed/stdlib/encodings/kz1048.pyi +21 -0
  854. package/bundle/_internal/mypy/typeshed/stdlib/encodings/latin_1.pyi +30 -0
  855. package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_arabic.pyi +21 -0
  856. package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_croatian.pyi +21 -0
  857. package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_cyrillic.pyi +21 -0
  858. package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_farsi.pyi +21 -0
  859. package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_greek.pyi +21 -0
  860. package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_iceland.pyi +21 -0
  861. package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_latin2.pyi +21 -0
  862. package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_roman.pyi +21 -0
  863. package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_romanian.pyi +21 -0
  864. package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_turkish.pyi +21 -0
  865. package/bundle/_internal/mypy/typeshed/stdlib/encodings/mbcs.pyi +28 -0
  866. package/bundle/_internal/mypy/typeshed/stdlib/encodings/oem.pyi +28 -0
  867. package/bundle/_internal/mypy/typeshed/stdlib/encodings/palmos.pyi +21 -0
  868. package/bundle/_internal/mypy/typeshed/stdlib/encodings/ptcp154.pyi +21 -0
  869. package/bundle/_internal/mypy/typeshed/stdlib/encodings/punycode.pyi +33 -0
  870. package/bundle/_internal/mypy/typeshed/stdlib/encodings/quopri_codec.pyi +26 -0
  871. package/bundle/_internal/mypy/typeshed/stdlib/encodings/raw_unicode_escape.pyi +23 -0
  872. package/bundle/_internal/mypy/typeshed/stdlib/encodings/rot_13.pyi +23 -0
  873. package/bundle/_internal/mypy/typeshed/stdlib/encodings/shift_jis.pyi +23 -0
  874. package/bundle/_internal/mypy/typeshed/stdlib/encodings/shift_jis_2004.pyi +23 -0
  875. package/bundle/_internal/mypy/typeshed/stdlib/encodings/shift_jisx0213.pyi +23 -0
  876. package/bundle/_internal/mypy/typeshed/stdlib/encodings/tis_620.pyi +21 -0
  877. package/bundle/_internal/mypy/typeshed/stdlib/encodings/undefined.pyi +20 -0
  878. package/bundle/_internal/mypy/typeshed/stdlib/encodings/unicode_escape.pyi +23 -0
  879. package/bundle/_internal/mypy/typeshed/stdlib/encodings/utf_16.pyi +20 -0
  880. package/bundle/_internal/mypy/typeshed/stdlib/encodings/utf_16_be.pyi +26 -0
  881. package/bundle/_internal/mypy/typeshed/stdlib/encodings/utf_16_le.pyi +26 -0
  882. package/bundle/_internal/mypy/typeshed/stdlib/encodings/utf_32.pyi +20 -0
  883. package/bundle/_internal/mypy/typeshed/stdlib/encodings/utf_32_be.pyi +26 -0
  884. package/bundle/_internal/mypy/typeshed/stdlib/encodings/utf_32_le.pyi +26 -0
  885. package/bundle/_internal/mypy/typeshed/stdlib/encodings/utf_7.pyi +26 -0
  886. package/bundle/_internal/mypy/typeshed/stdlib/encodings/utf_8.pyi +26 -0
  887. package/bundle/_internal/mypy/typeshed/stdlib/encodings/utf_8_sig.pyi +22 -0
  888. package/bundle/_internal/mypy/typeshed/stdlib/encodings/uu_codec.pyi +28 -0
  889. package/bundle/_internal/mypy/typeshed/stdlib/encodings/zlib_codec.pyi +26 -0
  890. package/bundle/_internal/mypy/typeshed/stdlib/ensurepip/__init__.pyi +12 -0
  891. package/bundle/_internal/mypy/typeshed/stdlib/enum.pyi +374 -0
  892. package/bundle/_internal/mypy/typeshed/stdlib/errno.pyi +227 -0
  893. package/bundle/_internal/mypy/typeshed/stdlib/faulthandler.pyi +61 -0
  894. package/bundle/_internal/mypy/typeshed/stdlib/fcntl.pyi +157 -0
  895. package/bundle/_internal/mypy/typeshed/stdlib/filecmp.pyi +65 -0
  896. package/bundle/_internal/mypy/typeshed/stdlib/fileinput.pyi +141 -0
  897. package/bundle/_internal/mypy/typeshed/stdlib/fnmatch.pyi +16 -0
  898. package/bundle/_internal/mypy/typeshed/stdlib/fractions.pyi +185 -0
  899. package/bundle/_internal/mypy/typeshed/stdlib/ftplib.pyi +174 -0
  900. package/bundle/_internal/mypy/typeshed/stdlib/functools.pyi +287 -0
  901. package/bundle/_internal/mypy/typeshed/stdlib/gc.pyi +32 -0
  902. package/bundle/_internal/mypy/typeshed/stdlib/genericpath.pyi +98 -0
  903. package/bundle/_internal/mypy/typeshed/stdlib/getopt.pyi +27 -0
  904. package/bundle/_internal/mypy/typeshed/stdlib/getpass.pyi +14 -0
  905. package/bundle/_internal/mypy/typeshed/stdlib/gettext.pyi +190 -0
  906. package/bundle/_internal/mypy/typeshed/stdlib/glob.pyi +50 -0
  907. package/bundle/_internal/mypy/typeshed/stdlib/graphlib.pyi +29 -0
  908. package/bundle/_internal/mypy/typeshed/stdlib/grp.pyi +21 -0
  909. package/bundle/_internal/mypy/typeshed/stdlib/gzip.pyi +181 -0
  910. package/bundle/_internal/mypy/typeshed/stdlib/hashlib.pyi +112 -0
  911. package/bundle/_internal/mypy/typeshed/stdlib/heapq.pyi +32 -0
  912. package/bundle/_internal/mypy/typeshed/stdlib/hmac.pyi +33 -0
  913. package/bundle/_internal/mypy/typeshed/stdlib/html/__init__.pyi +7 -0
  914. package/bundle/_internal/mypy/typeshed/stdlib/html/entities.pyi +8 -0
  915. package/bundle/_internal/mypy/typeshed/stdlib/html/parser.pyi +40 -0
  916. package/bundle/_internal/mypy/typeshed/stdlib/http/__init__.pyi +118 -0
  917. package/bundle/_internal/mypy/typeshed/stdlib/http/client.pyi +318 -0
  918. package/bundle/_internal/mypy/typeshed/stdlib/http/cookiejar.pyi +158 -0
  919. package/bundle/_internal/mypy/typeshed/stdlib/http/cookies.pyi +57 -0
  920. package/bundle/_internal/mypy/typeshed/stdlib/http/server.pyi +139 -0
  921. package/bundle/_internal/mypy/typeshed/stdlib/imaplib.pyi +212 -0
  922. package/bundle/_internal/mypy/typeshed/stdlib/imghdr.pyi +18 -0
  923. package/bundle/_internal/mypy/typeshed/stdlib/imp.pyi +63 -0
  924. package/bundle/_internal/mypy/typeshed/stdlib/importlib/__init__.pyi +17 -0
  925. package/bundle/_internal/mypy/typeshed/stdlib/importlib/_abc.pyi +21 -0
  926. package/bundle/_internal/mypy/typeshed/stdlib/importlib/_bootstrap.pyi +2 -0
  927. package/bundle/_internal/mypy/typeshed/stdlib/importlib/_bootstrap_external.pyi +2 -0
  928. package/bundle/_internal/mypy/typeshed/stdlib/importlib/abc.pyi +165 -0
  929. package/bundle/_internal/mypy/typeshed/stdlib/importlib/machinery.pyi +43 -0
  930. package/bundle/_internal/mypy/typeshed/stdlib/importlib/metadata/__init__.pyi +310 -0
  931. package/bundle/_internal/mypy/typeshed/stdlib/importlib/metadata/_meta.pyi +65 -0
  932. package/bundle/_internal/mypy/typeshed/stdlib/importlib/metadata/diagnose.pyi +2 -0
  933. package/bundle/_internal/mypy/typeshed/stdlib/importlib/readers.pyi +69 -0
  934. package/bundle/_internal/mypy/typeshed/stdlib/importlib/resources/__init__.pyi +81 -0
  935. package/bundle/_internal/mypy/typeshed/stdlib/importlib/resources/_common.pyi +48 -0
  936. package/bundle/_internal/mypy/typeshed/stdlib/importlib/resources/_functional.pyi +35 -0
  937. package/bundle/_internal/mypy/typeshed/stdlib/importlib/resources/abc.pyi +64 -0
  938. package/bundle/_internal/mypy/typeshed/stdlib/importlib/resources/readers.pyi +14 -0
  939. package/bundle/_internal/mypy/typeshed/stdlib/importlib/resources/simple.pyi +59 -0
  940. package/bundle/_internal/mypy/typeshed/stdlib/importlib/simple.pyi +11 -0
  941. package/bundle/_internal/mypy/typeshed/stdlib/importlib/util.pyi +75 -0
  942. package/bundle/_internal/mypy/typeshed/stdlib/inspect.pyi +749 -0
  943. package/bundle/_internal/mypy/typeshed/stdlib/io.pyi +75 -0
  944. package/bundle/_internal/mypy/typeshed/stdlib/ipaddress.pyi +249 -0
  945. package/bundle/_internal/mypy/typeshed/stdlib/itertools.pyi +376 -0
  946. package/bundle/_internal/mypy/typeshed/stdlib/json/__init__.pyi +93 -0
  947. package/bundle/_internal/mypy/typeshed/stdlib/json/decoder.pyi +50 -0
  948. package/bundle/_internal/mypy/typeshed/stdlib/json/encoder.pyi +40 -0
  949. package/bundle/_internal/mypy/typeshed/stdlib/json/scanner.pyi +7 -0
  950. package/bundle/_internal/mypy/typeshed/stdlib/json/tool.pyi +1 -0
  951. package/bundle/_internal/mypy/typeshed/stdlib/keyword.pyi +16 -0
  952. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/__init__.pyi +0 -0
  953. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/btm_matcher.pyi +28 -0
  954. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixer_base.pyi +42 -0
  955. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/__init__.pyi +0 -0
  956. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_apply.pyi +8 -0
  957. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_asserts.pyi +10 -0
  958. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_basestring.pyi +8 -0
  959. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_buffer.pyi +8 -0
  960. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_dict.pyi +16 -0
  961. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_except.pyi +14 -0
  962. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_exec.pyi +8 -0
  963. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_execfile.pyi +8 -0
  964. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_exitfunc.pyi +13 -0
  965. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_filter.pyi +9 -0
  966. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_funcattrs.pyi +8 -0
  967. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_future.pyi +8 -0
  968. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_getcwdu.pyi +8 -0
  969. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_has_key.pyi +8 -0
  970. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_idioms.pyi +15 -0
  971. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_import.pyi +16 -0
  972. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_imports.pyi +21 -0
  973. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_imports2.pyi +8 -0
  974. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_input.pyi +11 -0
  975. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_intern.pyi +9 -0
  976. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_isinstance.pyi +8 -0
  977. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_itertools.pyi +9 -0
  978. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_itertools_imports.pyi +7 -0
  979. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_long.pyi +7 -0
  980. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_map.pyi +9 -0
  981. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_metaclass.pyi +17 -0
  982. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_methodattrs.pyi +10 -0
  983. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_ne.pyi +8 -0
  984. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_next.pyi +19 -0
  985. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_nonzero.pyi +8 -0
  986. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_numliterals.pyi +8 -0
  987. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_operator.pyi +12 -0
  988. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_paren.pyi +8 -0
  989. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_print.pyi +12 -0
  990. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_raise.pyi +8 -0
  991. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_raw_input.pyi +8 -0
  992. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_reduce.pyi +8 -0
  993. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_reload.pyi +9 -0
  994. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_renames.pyi +17 -0
  995. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_repr.pyi +8 -0
  996. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_set_literal.pyi +7 -0
  997. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_standarderror.pyi +8 -0
  998. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_sys_exc.pyi +9 -0
  999. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_throw.pyi +8 -0
  1000. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_tuple_params.pyi +16 -0
  1001. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_types.pyi +8 -0
  1002. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_unicode.pyi +12 -0
  1003. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_urllib.pyi +15 -0
  1004. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_ws_comma.pyi +12 -0
  1005. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_xrange.pyi +20 -0
  1006. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_xreadlines.pyi +8 -0
  1007. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_zip.pyi +9 -0
  1008. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/main.pyi +42 -0
  1009. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pgen2/__init__.pyi +8 -0
  1010. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pgen2/driver.pyi +27 -0
  1011. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pgen2/grammar.pyi +25 -0
  1012. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pgen2/literals.pyi +7 -0
  1013. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pgen2/parse.pyi +30 -0
  1014. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pgen2/pgen.pyi +53 -0
  1015. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pgen2/token.pyi +69 -0
  1016. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pgen2/tokenize.pyi +96 -0
  1017. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pygram.pyi +114 -0
  1018. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pytree.pyi +118 -0
  1019. package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/refactor.pyi +86 -0
  1020. package/bundle/_internal/mypy/typeshed/stdlib/linecache.pyi +18 -0
  1021. package/bundle/_internal/mypy/typeshed/stdlib/locale.pyi +160 -0
  1022. package/bundle/_internal/mypy/typeshed/stdlib/logging/__init__.pyi +674 -0
  1023. package/bundle/_internal/mypy/typeshed/stdlib/logging/config.pyi +141 -0
  1024. package/bundle/_internal/mypy/typeshed/stdlib/logging/handlers.pyi +258 -0
  1025. package/bundle/_internal/mypy/typeshed/stdlib/lzma.pyi +181 -0
  1026. package/bundle/_internal/mypy/typeshed/stdlib/mailbox.pyi +307 -0
  1027. package/bundle/_internal/mypy/typeshed/stdlib/mailcap.pyi +11 -0
  1028. package/bundle/_internal/mypy/typeshed/stdlib/marshal.pyi +51 -0
  1029. package/bundle/_internal/mypy/typeshed/stdlib/math/__init__.pyi +157 -0
  1030. package/bundle/_internal/mypy/typeshed/stdlib/math/integer.pyi +8 -0
  1031. package/bundle/_internal/mypy/typeshed/stdlib/mimetypes.pyi +56 -0
  1032. package/bundle/_internal/mypy/typeshed/stdlib/mmap.pyi +191 -0
  1033. package/bundle/_internal/mypy/typeshed/stdlib/modulefinder.pyi +68 -0
  1034. package/bundle/_internal/mypy/typeshed/stdlib/msilib/__init__.pyi +177 -0
  1035. package/bundle/_internal/mypy/typeshed/stdlib/msilib/schema.pyi +95 -0
  1036. package/bundle/_internal/mypy/typeshed/stdlib/msilib/sequence.pyi +13 -0
  1037. package/bundle/_internal/mypy/typeshed/stdlib/msilib/text.pyi +8 -0
  1038. package/bundle/_internal/mypy/typeshed/stdlib/msvcrt.pyi +31 -0
  1039. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/__init__.pyi +90 -0
  1040. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/connection.pyi +97 -0
  1041. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/context.pyi +220 -0
  1042. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/dummy/__init__.pyi +89 -0
  1043. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/dummy/connection.pyi +39 -0
  1044. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/forkserver.pyi +78 -0
  1045. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/heap.pyi +41 -0
  1046. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/managers.pyi +390 -0
  1047. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/pool.pyi +101 -0
  1048. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/popen_fork.pyi +26 -0
  1049. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/popen_forkserver.pyi +16 -0
  1050. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/popen_spawn_posix.pyi +20 -0
  1051. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/popen_spawn_win32.pyi +30 -0
  1052. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/process.pyi +57 -0
  1053. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/queues.pyi +46 -0
  1054. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/reduction.pyi +95 -0
  1055. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/resource_sharer.pyi +20 -0
  1056. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/resource_tracker.pyi +21 -0
  1057. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/shared_memory.pyi +43 -0
  1058. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/sharedctypes.pyi +140 -0
  1059. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/spawn.pyi +32 -0
  1060. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/synchronize.pyi +63 -0
  1061. package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/util.pyi +109 -0
  1062. package/bundle/_internal/mypy/typeshed/stdlib/netrc.pyi +23 -0
  1063. package/bundle/_internal/mypy/typeshed/stdlib/nis.pyi +9 -0
  1064. package/bundle/_internal/mypy/typeshed/stdlib/nntplib.pyi +120 -0
  1065. package/bundle/_internal/mypy/typeshed/stdlib/nt.pyi +116 -0
  1066. package/bundle/_internal/mypy/typeshed/stdlib/ntpath.pyi +134 -0
  1067. package/bundle/_internal/mypy/typeshed/stdlib/nturl2path.pyi +6 -0
  1068. package/bundle/_internal/mypy/typeshed/stdlib/numbers.pyi +220 -0
  1069. package/bundle/_internal/mypy/typeshed/stdlib/opcode.pyi +53 -0
  1070. package/bundle/_internal/mypy/typeshed/stdlib/operator.pyi +219 -0
  1071. package/bundle/_internal/mypy/typeshed/stdlib/optparse.pyi +312 -0
  1072. package/bundle/_internal/mypy/typeshed/stdlib/os/__init__.pyi +1878 -0
  1073. package/bundle/_internal/mypy/typeshed/stdlib/os/path.pyi +8 -0
  1074. package/bundle/_internal/mypy/typeshed/stdlib/ossaudiodev.pyi +132 -0
  1075. package/bundle/_internal/mypy/typeshed/stdlib/pathlib/__init__.pyi +358 -0
  1076. package/bundle/_internal/mypy/typeshed/stdlib/pathlib/types.pyi +8 -0
  1077. package/bundle/_internal/mypy/typeshed/stdlib/pdb.pyi +275 -0
  1078. package/bundle/_internal/mypy/typeshed/stdlib/pickle.pyi +240 -0
  1079. package/bundle/_internal/mypy/typeshed/stdlib/pickletools.pyi +176 -0
  1080. package/bundle/_internal/mypy/typeshed/stdlib/pipes.pyi +16 -0
  1081. package/bundle/_internal/mypy/typeshed/stdlib/pkgutil.pyi +60 -0
  1082. package/bundle/_internal/mypy/typeshed/stdlib/platform.pyi +100 -0
  1083. package/bundle/_internal/mypy/typeshed/stdlib/plistlib.pyi +84 -0
  1084. package/bundle/_internal/mypy/typeshed/stdlib/poplib.pyi +93 -0
  1085. package/bundle/_internal/mypy/typeshed/stdlib/posix.pyi +427 -0
  1086. package/bundle/_internal/mypy/typeshed/stdlib/posixpath.pyi +230 -0
  1087. package/bundle/_internal/mypy/typeshed/stdlib/pprint.pyi +170 -0
  1088. package/bundle/_internal/mypy/typeshed/stdlib/profile.pyi +31 -0
  1089. package/bundle/_internal/mypy/typeshed/stdlib/profiling/__init__.pyi +3 -0
  1090. package/bundle/_internal/mypy/typeshed/stdlib/profiling/sampling/__init__.pyi +17 -0
  1091. package/bundle/_internal/mypy/typeshed/stdlib/profiling/sampling/collector.pyi +25 -0
  1092. package/bundle/_internal/mypy/typeshed/stdlib/profiling/sampling/gecko_collector.pyi +111 -0
  1093. package/bundle/_internal/mypy/typeshed/stdlib/profiling/sampling/heatmap_collector.pyi +24 -0
  1094. package/bundle/_internal/mypy/typeshed/stdlib/profiling/sampling/jsonl_collector.pyi +15 -0
  1095. package/bundle/_internal/mypy/typeshed/stdlib/profiling/sampling/pstats_collector.pyi +17 -0
  1096. package/bundle/_internal/mypy/typeshed/stdlib/profiling/sampling/stack_collector.pyi +40 -0
  1097. package/bundle/_internal/mypy/typeshed/stdlib/profiling/sampling/string_table.pyi +5 -0
  1098. package/bundle/_internal/mypy/typeshed/stdlib/profiling/tracing.pyi +9 -0
  1099. package/bundle/_internal/mypy/typeshed/stdlib/pstats.pyi +96 -0
  1100. package/bundle/_internal/mypy/typeshed/stdlib/pty.pyi +24 -0
  1101. package/bundle/_internal/mypy/typeshed/stdlib/pwd.pyi +27 -0
  1102. package/bundle/_internal/mypy/typeshed/stdlib/py_compile.pyi +28 -0
  1103. package/bundle/_internal/mypy/typeshed/stdlib/pyclbr.pyi +57 -0
  1104. package/bundle/_internal/mypy/typeshed/stdlib/pydoc.pyi +348 -0
  1105. package/bundle/_internal/mypy/typeshed/stdlib/pydoc_data/__init__.pyi +0 -0
  1106. package/bundle/_internal/mypy/typeshed/stdlib/pydoc_data/module_docs.pyi +3 -0
  1107. package/bundle/_internal/mypy/typeshed/stdlib/pydoc_data/topics.pyi +3 -0
  1108. package/bundle/_internal/mypy/typeshed/stdlib/pyexpat/__init__.pyi +88 -0
  1109. package/bundle/_internal/mypy/typeshed/stdlib/pyexpat/errors.pyi +53 -0
  1110. package/bundle/_internal/mypy/typeshed/stdlib/pyexpat/model.pyi +13 -0
  1111. package/bundle/_internal/mypy/typeshed/stdlib/queue.pyi +55 -0
  1112. package/bundle/_internal/mypy/typeshed/stdlib/quopri.pyi +12 -0
  1113. package/bundle/_internal/mypy/typeshed/stdlib/random.pyi +135 -0
  1114. package/bundle/_internal/mypy/typeshed/stdlib/re.pyi +347 -0
  1115. package/bundle/_internal/mypy/typeshed/stdlib/readline.pyi +39 -0
  1116. package/bundle/_internal/mypy/typeshed/stdlib/reprlib.pyi +64 -0
  1117. package/bundle/_internal/mypy/typeshed/stdlib/resource.pyi +102 -0
  1118. package/bundle/_internal/mypy/typeshed/stdlib/rlcompleter.pyi +9 -0
  1119. package/bundle/_internal/mypy/typeshed/stdlib/runpy.pyi +24 -0
  1120. package/bundle/_internal/mypy/typeshed/stdlib/sched.pyi +34 -0
  1121. package/bundle/_internal/mypy/typeshed/stdlib/secrets.pyi +17 -0
  1122. package/bundle/_internal/mypy/typeshed/stdlib/select.pyi +171 -0
  1123. package/bundle/_internal/mypy/typeshed/stdlib/selectors.pyi +67 -0
  1124. package/bundle/_internal/mypy/typeshed/stdlib/shelve.pyi +110 -0
  1125. package/bundle/_internal/mypy/typeshed/stdlib/shlex.pyi +63 -0
  1126. package/bundle/_internal/mypy/typeshed/stdlib/shutil.pyi +243 -0
  1127. package/bundle/_internal/mypy/typeshed/stdlib/signal.pyi +174 -0
  1128. package/bundle/_internal/mypy/typeshed/stdlib/site.pyi +46 -0
  1129. package/bundle/_internal/mypy/typeshed/stdlib/smtpd.pyi +92 -0
  1130. package/bundle/_internal/mypy/typeshed/stdlib/smtplib.pyi +223 -0
  1131. package/bundle/_internal/mypy/typeshed/stdlib/sndhdr.pyi +14 -0
  1132. package/bundle/_internal/mypy/typeshed/stdlib/socket.pyi +1587 -0
  1133. package/bundle/_internal/mypy/typeshed/stdlib/socketserver.pyi +170 -0
  1134. package/bundle/_internal/mypy/typeshed/stdlib/spwd.pyi +45 -0
  1135. package/bundle/_internal/mypy/typeshed/stdlib/sqlite3/__init__.pyi +510 -0
  1136. package/bundle/_internal/mypy/typeshed/stdlib/sqlite3/dbapi2.pyi +244 -0
  1137. package/bundle/_internal/mypy/typeshed/stdlib/sqlite3/dump.pyi +2 -0
  1138. package/bundle/_internal/mypy/typeshed/stdlib/sre_compile.pyi +12 -0
  1139. package/bundle/_internal/mypy/typeshed/stdlib/sre_constants.pyi +135 -0
  1140. package/bundle/_internal/mypy/typeshed/stdlib/sre_parse.pyi +102 -0
  1141. package/bundle/_internal/mypy/typeshed/stdlib/ssl.pyi +540 -0
  1142. package/bundle/_internal/mypy/typeshed/stdlib/stat.pyi +126 -0
  1143. package/bundle/_internal/mypy/typeshed/stdlib/statistics.pyi +161 -0
  1144. package/bundle/_internal/mypy/typeshed/stdlib/string/__init__.pyi +81 -0
  1145. package/bundle/_internal/mypy/typeshed/stdlib/string/templatelib.pyi +36 -0
  1146. package/bundle/_internal/mypy/typeshed/stdlib/stringprep.pyi +29 -0
  1147. package/bundle/_internal/mypy/typeshed/stdlib/struct.pyi +5 -0
  1148. package/bundle/_internal/mypy/typeshed/stdlib/subprocess.pyi +1484 -0
  1149. package/bundle/_internal/mypy/typeshed/stdlib/sunau.pyi +82 -0
  1150. package/bundle/_internal/mypy/typeshed/stdlib/symtable.pyi +95 -0
  1151. package/bundle/_internal/mypy/typeshed/stdlib/sys/__init__.pyi +538 -0
  1152. package/bundle/_internal/mypy/typeshed/stdlib/sys/__jit.pyi +11 -0
  1153. package/bundle/_internal/mypy/typeshed/stdlib/sys/_monitoring.pyi +69 -0
  1154. package/bundle/_internal/mypy/typeshed/stdlib/sysconfig.pyi +59 -0
  1155. package/bundle/_internal/mypy/typeshed/stdlib/syslog.pyi +58 -0
  1156. package/bundle/_internal/mypy/typeshed/stdlib/tabnanny.pyi +16 -0
  1157. package/bundle/_internal/mypy/typeshed/stdlib/tarfile.pyi +868 -0
  1158. package/bundle/_internal/mypy/typeshed/stdlib/telnetlib.pyi +123 -0
  1159. package/bundle/_internal/mypy/typeshed/stdlib/tempfile.pyi +474 -0
  1160. package/bundle/_internal/mypy/typeshed/stdlib/termios.pyi +303 -0
  1161. package/bundle/_internal/mypy/typeshed/stdlib/textwrap.pyi +103 -0
  1162. package/bundle/_internal/mypy/typeshed/stdlib/this.pyi +2 -0
  1163. package/bundle/_internal/mypy/typeshed/stdlib/threading.pyi +221 -0
  1164. package/bundle/_internal/mypy/typeshed/stdlib/time.pyi +117 -0
  1165. package/bundle/_internal/mypy/typeshed/stdlib/timeit.pyi +46 -0
  1166. package/bundle/_internal/mypy/typeshed/stdlib/tkinter/__init__.pyi +4376 -0
  1167. package/bundle/_internal/mypy/typeshed/stdlib/tkinter/colorchooser.pyi +12 -0
  1168. package/bundle/_internal/mypy/typeshed/stdlib/tkinter/commondialog.pyi +14 -0
  1169. package/bundle/_internal/mypy/typeshed/stdlib/tkinter/constants.pyi +80 -0
  1170. package/bundle/_internal/mypy/typeshed/stdlib/tkinter/dialog.pyi +13 -0
  1171. package/bundle/_internal/mypy/typeshed/stdlib/tkinter/dnd.pyi +19 -0
  1172. package/bundle/_internal/mypy/typeshed/stdlib/tkinter/filedialog.pyi +149 -0
  1173. package/bundle/_internal/mypy/typeshed/stdlib/tkinter/font.pyi +123 -0
  1174. package/bundle/_internal/mypy/typeshed/stdlib/tkinter/messagebox.pyi +98 -0
  1175. package/bundle/_internal/mypy/typeshed/stdlib/tkinter/scrolledtext.pyi +9 -0
  1176. package/bundle/_internal/mypy/typeshed/stdlib/tkinter/simpledialog.pyi +58 -0
  1177. package/bundle/_internal/mypy/typeshed/stdlib/tkinter/tix.pyi +299 -0
  1178. package/bundle/_internal/mypy/typeshed/stdlib/tkinter/ttk.pyi +1434 -0
  1179. package/bundle/_internal/mypy/typeshed/stdlib/token.pyi +166 -0
  1180. package/bundle/_internal/mypy/typeshed/stdlib/tokenize.pyi +201 -0
  1181. package/bundle/_internal/mypy/typeshed/stdlib/tomllib.pyi +27 -0
  1182. package/bundle/_internal/mypy/typeshed/stdlib/trace.pyi +85 -0
  1183. package/bundle/_internal/mypy/typeshed/stdlib/traceback.pyi +293 -0
  1184. package/bundle/_internal/mypy/typeshed/stdlib/tracemalloc.pyi +123 -0
  1185. package/bundle/_internal/mypy/typeshed/stdlib/tty.pyi +29 -0
  1186. package/bundle/_internal/mypy/typeshed/stdlib/turtle.pyi +856 -0
  1187. package/bundle/_internal/mypy/typeshed/stdlib/types.pyi +744 -0
  1188. package/bundle/_internal/mypy/typeshed/stdlib/typing.pyi +1250 -0
  1189. package/bundle/_internal/mypy/typeshed/stdlib/typing_extensions.pyi +749 -0
  1190. package/bundle/_internal/mypy/typeshed/stdlib/unicodedata.pyi +94 -0
  1191. package/bundle/_internal/mypy/typeshed/stdlib/unittest/__init__.pyi +63 -0
  1192. package/bundle/_internal/mypy/typeshed/stdlib/unittest/_log.pyi +29 -0
  1193. package/bundle/_internal/mypy/typeshed/stdlib/unittest/async_case.pyi +24 -0
  1194. package/bundle/_internal/mypy/typeshed/stdlib/unittest/case.pyi +352 -0
  1195. package/bundle/_internal/mypy/typeshed/stdlib/unittest/loader.pyi +55 -0
  1196. package/bundle/_internal/mypy/typeshed/stdlib/unittest/main.pyi +74 -0
  1197. package/bundle/_internal/mypy/typeshed/stdlib/unittest/mock.pyi +555 -0
  1198. package/bundle/_internal/mypy/typeshed/stdlib/unittest/result.pyi +46 -0
  1199. package/bundle/_internal/mypy/typeshed/stdlib/unittest/runner.pyi +93 -0
  1200. package/bundle/_internal/mypy/typeshed/stdlib/unittest/signals.pyi +15 -0
  1201. package/bundle/_internal/mypy/typeshed/stdlib/unittest/suite.pyi +23 -0
  1202. package/bundle/_internal/mypy/typeshed/stdlib/unittest/util.pyi +39 -0
  1203. package/bundle/_internal/mypy/typeshed/stdlib/urllib/__init__.pyi +0 -0
  1204. package/bundle/_internal/mypy/typeshed/stdlib/urllib/error.pyi +29 -0
  1205. package/bundle/_internal/mypy/typeshed/stdlib/urllib/parse.pyi +354 -0
  1206. package/bundle/_internal/mypy/typeshed/stdlib/urllib/request.pyi +447 -0
  1207. package/bundle/_internal/mypy/typeshed/stdlib/urllib/response.pyi +45 -0
  1208. package/bundle/_internal/mypy/typeshed/stdlib/urllib/robotparser.pyi +20 -0
  1209. package/bundle/_internal/mypy/typeshed/stdlib/uu.pyi +12 -0
  1210. package/bundle/_internal/mypy/typeshed/stdlib/uuid.pyi +106 -0
  1211. package/bundle/_internal/mypy/typeshed/stdlib/venv/__init__.pyi +86 -0
  1212. package/bundle/_internal/mypy/typeshed/stdlib/warnings.pyi +146 -0
  1213. package/bundle/_internal/mypy/typeshed/stdlib/wave.pyi +105 -0
  1214. package/bundle/_internal/mypy/typeshed/stdlib/weakref.pyi +217 -0
  1215. package/bundle/_internal/mypy/typeshed/stdlib/webbrowser.pyi +93 -0
  1216. package/bundle/_internal/mypy/typeshed/stdlib/winreg.pyi +137 -0
  1217. package/bundle/_internal/mypy/typeshed/stdlib/winsound.pyi +40 -0
  1218. package/bundle/_internal/mypy/typeshed/stdlib/wsgiref/__init__.pyi +0 -0
  1219. package/bundle/_internal/mypy/typeshed/stdlib/wsgiref/handlers.pyi +91 -0
  1220. package/bundle/_internal/mypy/typeshed/stdlib/wsgiref/headers.pyi +27 -0
  1221. package/bundle/_internal/mypy/typeshed/stdlib/wsgiref/simple_server.pyi +37 -0
  1222. package/bundle/_internal/mypy/typeshed/stdlib/wsgiref/types.pyi +31 -0
  1223. package/bundle/_internal/mypy/typeshed/stdlib/wsgiref/util.pyi +26 -0
  1224. package/bundle/_internal/mypy/typeshed/stdlib/wsgiref/validate.pyi +50 -0
  1225. package/bundle/_internal/mypy/typeshed/stdlib/xdrlib.pyi +57 -0
  1226. package/bundle/_internal/mypy/typeshed/stdlib/xml/__init__.pyi +9 -0
  1227. package/bundle/_internal/mypy/typeshed/stdlib/xml/dom/NodeFilter.pyi +22 -0
  1228. package/bundle/_internal/mypy/typeshed/stdlib/xml/dom/__init__.pyi +101 -0
  1229. package/bundle/_internal/mypy/typeshed/stdlib/xml/dom/domreg.pyi +8 -0
  1230. package/bundle/_internal/mypy/typeshed/stdlib/xml/dom/expatbuilder.pyi +126 -0
  1231. package/bundle/_internal/mypy/typeshed/stdlib/xml/dom/minicompat.pyi +24 -0
  1232. package/bundle/_internal/mypy/typeshed/stdlib/xml/dom/minidom.pyi +693 -0
  1233. package/bundle/_internal/mypy/typeshed/stdlib/xml/dom/pulldom.pyi +109 -0
  1234. package/bundle/_internal/mypy/typeshed/stdlib/xml/dom/xmlbuilder.pyi +82 -0
  1235. package/bundle/_internal/mypy/typeshed/stdlib/xml/etree/ElementInclude.pyi +28 -0
  1236. package/bundle/_internal/mypy/typeshed/stdlib/xml/etree/ElementPath.pyi +42 -0
  1237. package/bundle/_internal/mypy/typeshed/stdlib/xml/etree/ElementTree.pyi +402 -0
  1238. package/bundle/_internal/mypy/typeshed/stdlib/xml/etree/__init__.pyi +0 -0
  1239. package/bundle/_internal/mypy/typeshed/stdlib/xml/etree/cElementTree.pyi +1 -0
  1240. package/bundle/_internal/mypy/typeshed/stdlib/xml/parsers/__init__.pyi +1 -0
  1241. package/bundle/_internal/mypy/typeshed/stdlib/xml/parsers/expat/__init__.pyi +7 -0
  1242. package/bundle/_internal/mypy/typeshed/stdlib/xml/parsers/expat/errors.pyi +1 -0
  1243. package/bundle/_internal/mypy/typeshed/stdlib/xml/parsers/expat/model.pyi +1 -0
  1244. package/bundle/_internal/mypy/typeshed/stdlib/xml/sax/__init__.pyi +42 -0
  1245. package/bundle/_internal/mypy/typeshed/stdlib/xml/sax/_exceptions.pyi +19 -0
  1246. package/bundle/_internal/mypy/typeshed/stdlib/xml/sax/expatreader.pyi +72 -0
  1247. package/bundle/_internal/mypy/typeshed/stdlib/xml/sax/handler.pyi +85 -0
  1248. package/bundle/_internal/mypy/typeshed/stdlib/xml/sax/saxutils.pyi +69 -0
  1249. package/bundle/_internal/mypy/typeshed/stdlib/xml/sax/xmlreader.pyi +94 -0
  1250. package/bundle/_internal/mypy/typeshed/stdlib/xml/utils.pyi +2 -0
  1251. package/bundle/_internal/mypy/typeshed/stdlib/xmlrpc/__init__.pyi +0 -0
  1252. package/bundle/_internal/mypy/typeshed/stdlib/xmlrpc/client.pyi +300 -0
  1253. package/bundle/_internal/mypy/typeshed/stdlib/xmlrpc/server.pyi +149 -0
  1254. package/bundle/_internal/mypy/typeshed/stdlib/xxlimited.pyi +15 -0
  1255. package/bundle/_internal/mypy/typeshed/stdlib/zipapp.pyi +19 -0
  1256. package/bundle/_internal/mypy/typeshed/stdlib/zipfile/__init__.pyi +411 -0
  1257. package/bundle/_internal/mypy/typeshed/stdlib/zipfile/_path/__init__.pyi +87 -0
  1258. package/bundle/_internal/mypy/typeshed/stdlib/zipfile/_path/glob.pyi +26 -0
  1259. package/bundle/_internal/mypy/typeshed/stdlib/zipimport.pyi +44 -0
  1260. package/bundle/_internal/mypy/typeshed/stdlib/zlib.pyi +81 -0
  1261. package/bundle/_internal/mypy/typeshed/stdlib/zoneinfo/__init__.pyi +36 -0
  1262. package/bundle/_internal/mypy/typeshed/stdlib/zoneinfo/_common.pyi +14 -0
  1263. package/bundle/_internal/mypy/typeshed/stdlib/zoneinfo/_tzpath.pyi +13 -0
  1264. package/bundle/_internal/mypy/typeshed/stubs/librt/librt/__init__.pyi +0 -0
  1265. package/bundle/_internal/mypy/typeshed/stubs/librt/librt/base64.pyi +4 -0
  1266. package/bundle/_internal/mypy/typeshed/stubs/librt/librt/internal.pyi +22 -0
  1267. package/bundle/_internal/mypy/typeshed/stubs/librt/librt/random.pyi +22 -0
  1268. package/bundle/_internal/mypy/typeshed/stubs/librt/librt/strings.pyi +61 -0
  1269. package/bundle/_internal/mypy/typeshed/stubs/librt/librt/threading.pyi +16 -0
  1270. package/bundle/_internal/mypy/typeshed/stubs/librt/librt/time.pyi +1 -0
  1271. package/bundle/_internal/mypy/typeshed/stubs/librt/librt/vecs.pyi +24 -0
  1272. package/bundle/_internal/mypy/typeshed/stubs/mypy-extensions/mypy_extensions.pyi +226 -0
  1273. package/bundle/_internal/mypy/typestate.cpython-312-darwin.so +0 -0
  1274. package/bundle/_internal/mypy/typestate.py +334 -0
  1275. package/bundle/_internal/mypy/typetraverser.cpython-312-darwin.so +0 -0
  1276. package/bundle/_internal/mypy/typetraverser.py +166 -0
  1277. package/bundle/_internal/mypy/typevars.cpython-312-darwin.so +0 -0
  1278. package/bundle/_internal/mypy/typevars.py +84 -0
  1279. package/bundle/_internal/mypy/typevartuples.cpython-312-darwin.so +0 -0
  1280. package/bundle/_internal/mypy/typevartuples.py +36 -0
  1281. package/bundle/_internal/mypy/util.cpython-312-darwin.so +0 -0
  1282. package/bundle/_internal/mypy/util.py +1055 -0
  1283. package/bundle/_internal/mypy/version.py +1 -0
  1284. package/bundle/_internal/mypy/visitor.cpython-312-darwin.so +0 -0
  1285. package/bundle/_internal/mypy/visitor.py +639 -0
  1286. package/bundle/_internal/mypy/xml/mypy-html.css +104 -0
  1287. package/bundle/_internal/mypy/xml/mypy-html.xslt +81 -0
  1288. package/bundle/_internal/mypy/xml/mypy-txt.xslt +100 -0
  1289. package/bundle/_internal/mypy/xml/mypy.xsd +50 -0
  1290. package/bundle/_internal/mypy-2.4.1.dist-info/INSTALLER +1 -0
  1291. package/bundle/_internal/mypy-2.4.1.dist-info/METADATA +56 -0
  1292. package/bundle/_internal/mypy-2.4.1.dist-info/RECORD +1814 -0
  1293. package/bundle/_internal/mypy-2.4.1.dist-info/WHEEL +6 -0
  1294. package/bundle/_internal/mypy-2.4.1.dist-info/entry_points.txt +6 -0
  1295. package/bundle/_internal/mypy-2.4.1.dist-info/licenses/LICENSE +264 -0
  1296. package/bundle/_internal/mypy-2.4.1.dist-info/licenses/mypy/typeshed/LICENSE +237 -0
  1297. package/bundle/_internal/mypy-2.4.1.dist-info/top_level.txt +3 -0
  1298. package/bundle/_internal/mypyc/__init__.cpython-312-darwin.so +0 -0
  1299. package/bundle/_internal/python3.12/lib-dynload/_asyncio.cpython-312-darwin.so +0 -0
  1300. package/bundle/_internal/python3.12/lib-dynload/_bisect.cpython-312-darwin.so +0 -0
  1301. package/bundle/_internal/python3.12/lib-dynload/_blake2.cpython-312-darwin.so +0 -0
  1302. package/bundle/_internal/python3.12/lib-dynload/_bz2.cpython-312-darwin.so +0 -0
  1303. package/bundle/_internal/python3.12/lib-dynload/_codecs_cn.cpython-312-darwin.so +0 -0
  1304. package/bundle/_internal/python3.12/lib-dynload/_codecs_hk.cpython-312-darwin.so +0 -0
  1305. package/bundle/_internal/python3.12/lib-dynload/_codecs_iso2022.cpython-312-darwin.so +0 -0
  1306. package/bundle/_internal/python3.12/lib-dynload/_codecs_jp.cpython-312-darwin.so +0 -0
  1307. package/bundle/_internal/python3.12/lib-dynload/_codecs_kr.cpython-312-darwin.so +0 -0
  1308. package/bundle/_internal/python3.12/lib-dynload/_codecs_tw.cpython-312-darwin.so +0 -0
  1309. package/bundle/_internal/python3.12/lib-dynload/_contextvars.cpython-312-darwin.so +0 -0
  1310. package/bundle/_internal/python3.12/lib-dynload/_csv.cpython-312-darwin.so +0 -0
  1311. package/bundle/_internal/python3.12/lib-dynload/_ctypes.cpython-312-darwin.so +0 -0
  1312. package/bundle/_internal/python3.12/lib-dynload/_curses.cpython-312-darwin.so +0 -0
  1313. package/bundle/_internal/python3.12/lib-dynload/_datetime.cpython-312-darwin.so +0 -0
  1314. package/bundle/_internal/python3.12/lib-dynload/_decimal.cpython-312-darwin.so +0 -0
  1315. package/bundle/_internal/python3.12/lib-dynload/_elementtree.cpython-312-darwin.so +0 -0
  1316. package/bundle/_internal/python3.12/lib-dynload/_hashlib.cpython-312-darwin.so +0 -0
  1317. package/bundle/_internal/python3.12/lib-dynload/_heapq.cpython-312-darwin.so +0 -0
  1318. package/bundle/_internal/python3.12/lib-dynload/_json.cpython-312-darwin.so +0 -0
  1319. package/bundle/_internal/python3.12/lib-dynload/_lzma.cpython-312-darwin.so +0 -0
  1320. package/bundle/_internal/python3.12/lib-dynload/_md5.cpython-312-darwin.so +0 -0
  1321. package/bundle/_internal/python3.12/lib-dynload/_multibytecodec.cpython-312-darwin.so +0 -0
  1322. package/bundle/_internal/python3.12/lib-dynload/_multiprocessing.cpython-312-darwin.so +0 -0
  1323. package/bundle/_internal/python3.12/lib-dynload/_opcode.cpython-312-darwin.so +0 -0
  1324. package/bundle/_internal/python3.12/lib-dynload/_pickle.cpython-312-darwin.so +0 -0
  1325. package/bundle/_internal/python3.12/lib-dynload/_posixshmem.cpython-312-darwin.so +0 -0
  1326. package/bundle/_internal/python3.12/lib-dynload/_posixsubprocess.cpython-312-darwin.so +0 -0
  1327. package/bundle/_internal/python3.12/lib-dynload/_queue.cpython-312-darwin.so +0 -0
  1328. package/bundle/_internal/python3.12/lib-dynload/_random.cpython-312-darwin.so +0 -0
  1329. package/bundle/_internal/python3.12/lib-dynload/_scproxy.cpython-312-darwin.so +0 -0
  1330. package/bundle/_internal/python3.12/lib-dynload/_sha1.cpython-312-darwin.so +0 -0
  1331. package/bundle/_internal/python3.12/lib-dynload/_sha2.cpython-312-darwin.so +0 -0
  1332. package/bundle/_internal/python3.12/lib-dynload/_sha3.cpython-312-darwin.so +0 -0
  1333. package/bundle/_internal/python3.12/lib-dynload/_socket.cpython-312-darwin.so +0 -0
  1334. package/bundle/_internal/python3.12/lib-dynload/_sqlite3.cpython-312-darwin.so +0 -0
  1335. package/bundle/_internal/python3.12/lib-dynload/_ssl.cpython-312-darwin.so +0 -0
  1336. package/bundle/_internal/python3.12/lib-dynload/_statistics.cpython-312-darwin.so +0 -0
  1337. package/bundle/_internal/python3.12/lib-dynload/_struct.cpython-312-darwin.so +0 -0
  1338. package/bundle/_internal/python3.12/lib-dynload/_uuid.cpython-312-darwin.so +0 -0
  1339. package/bundle/_internal/python3.12/lib-dynload/array.cpython-312-darwin.so +0 -0
  1340. package/bundle/_internal/python3.12/lib-dynload/binascii.cpython-312-darwin.so +0 -0
  1341. package/bundle/_internal/python3.12/lib-dynload/fcntl.cpython-312-darwin.so +0 -0
  1342. package/bundle/_internal/python3.12/lib-dynload/grp.cpython-312-darwin.so +0 -0
  1343. package/bundle/_internal/python3.12/lib-dynload/math.cpython-312-darwin.so +0 -0
  1344. package/bundle/_internal/python3.12/lib-dynload/mmap.cpython-312-darwin.so +0 -0
  1345. package/bundle/_internal/python3.12/lib-dynload/pyexpat.cpython-312-darwin.so +0 -0
  1346. package/bundle/_internal/python3.12/lib-dynload/readline.cpython-312-darwin.so +0 -0
  1347. package/bundle/_internal/python3.12/lib-dynload/resource.cpython-312-darwin.so +0 -0
  1348. package/bundle/_internal/python3.12/lib-dynload/select.cpython-312-darwin.so +0 -0
  1349. package/bundle/_internal/python3.12/lib-dynload/syslog.cpython-312-darwin.so +0 -0
  1350. package/bundle/_internal/python3.12/lib-dynload/termios.cpython-312-darwin.so +0 -0
  1351. package/bundle/_internal/python3.12/lib-dynload/unicodedata.cpython-312-darwin.so +0 -0
  1352. package/bundle/_internal/python3.12/lib-dynload/zlib.cpython-312-darwin.so +0 -0
  1353. package/bundle/_internal/radon/__init__.py +21 -0
  1354. package/bundle/_internal/radon/__main__.py +4 -0
  1355. package/bundle/_internal/radon/cli/__init__.py +433 -0
  1356. package/bundle/_internal/radon/cli/colors.py +49 -0
  1357. package/bundle/_internal/radon/cli/harvest.py +449 -0
  1358. package/bundle/_internal/radon/cli/tools.py +597 -0
  1359. package/bundle/_internal/radon/complexity.py +108 -0
  1360. package/bundle/_internal/radon/contrib/__init__.py +0 -0
  1361. package/bundle/_internal/radon/contrib/flake8.py +72 -0
  1362. package/bundle/_internal/radon/metrics.py +157 -0
  1363. package/bundle/_internal/radon/raw.py +245 -0
  1364. package/bundle/_internal/radon/tests/__init__.py +0 -0
  1365. package/bundle/_internal/radon/tests/conftest.py +31 -0
  1366. package/bundle/_internal/radon/tests/data/__init__.py +5 -0
  1367. package/bundle/_internal/radon/tests/data/no_encoding.py +2 -0
  1368. package/bundle/_internal/radon/tests/data/py3unicode.py +5 -0
  1369. package/bundle/_internal/radon/tests/run.py +14 -0
  1370. package/bundle/_internal/radon/tests/test_cli.py +282 -0
  1371. package/bundle/_internal/radon/tests/test_cli_colors.py +22 -0
  1372. package/bundle/_internal/radon/tests/test_cli_harvest.py +392 -0
  1373. package/bundle/_internal/radon/tests/test_cli_tools.py +616 -0
  1374. package/bundle/_internal/radon/tests/test_complexity_utils.py +118 -0
  1375. package/bundle/_internal/radon/tests/test_complexity_visitor.py +754 -0
  1376. package/bundle/_internal/radon/tests/test_halstead.py +113 -0
  1377. package/bundle/_internal/radon/tests/test_ipynb.py +141 -0
  1378. package/bundle/_internal/radon/tests/test_other_metrics.py +169 -0
  1379. package/bundle/_internal/radon/tests/test_raw.py +467 -0
  1380. package/bundle/_internal/radon/visitors.py +460 -0
  1381. package/bundle/_internal/radon-6.0.1.dist-info/INSTALLER +1 -0
  1382. package/bundle/_internal/radon-6.0.1.dist-info/LICENSE +22 -0
  1383. package/bundle/_internal/radon-6.0.1.dist-info/METADATA +263 -0
  1384. package/bundle/_internal/radon-6.0.1.dist-info/RECORD +64 -0
  1385. package/bundle/_internal/radon-6.0.1.dist-info/WHEEL +6 -0
  1386. package/bundle/_internal/radon-6.0.1.dist-info/entry_points.txt +8 -0
  1387. package/bundle/_internal/radon-6.0.1.dist-info/top_level.txt +1 -0
  1388. package/bundle/_internal/setuptools/_vendor/jaraco/text/Lorem ipsum.txt +2 -0
  1389. package/bundle/_internal/stevedore-5.10.0.dist-info/INSTALLER +1 -0
  1390. package/bundle/_internal/stevedore-5.10.0.dist-info/METADATA +56 -0
  1391. package/bundle/_internal/stevedore-5.10.0.dist-info/RECORD +84 -0
  1392. package/bundle/_internal/stevedore-5.10.0.dist-info/WHEEL +5 -0
  1393. package/bundle/_internal/stevedore-5.10.0.dist-info/entry_points.txt +10 -0
  1394. package/bundle/_internal/stevedore-5.10.0.dist-info/licenses/AUTHORS +76 -0
  1395. package/bundle/_internal/stevedore-5.10.0.dist-info/licenses/LICENSE +202 -0
  1396. package/bundle/_internal/stevedore-5.10.0.dist-info/pbr.json +1 -0
  1397. package/bundle/_internal/stevedore-5.10.0.dist-info/top_level.txt +1 -0
  1398. package/bundle/_internal/tqdm-4.70.1.dist-info/INSTALLER +1 -0
  1399. package/bundle/_internal/tqdm-4.70.1.dist-info/METADATA +1600 -0
  1400. package/bundle/_internal/tqdm-4.70.1.dist-info/RECORD +72 -0
  1401. package/bundle/_internal/tqdm-4.70.1.dist-info/WHEEL +5 -0
  1402. package/bundle/_internal/tqdm-4.70.1.dist-info/entry_points.txt +2 -0
  1403. package/bundle/_internal/tqdm-4.70.1.dist-info/licenses/LICENCE +49 -0
  1404. package/bundle/_internal/tqdm-4.70.1.dist-info/top_level.txt +1 -0
  1405. package/bundle/_internal/yaml/_yaml.cpython-312-darwin.so +0 -0
  1406. package/bundle/gnost +0 -0
  1407. package/package.json +10 -7
@@ -0,0 +1,4376 @@
1
+ import _tkinter
2
+ import sys
3
+ from _typeshed import FileDescriptorLike, Incomplete, MaybeNone, StrOrBytesPath
4
+ from collections.abc import Callable, Iterable, Mapping, Sequence
5
+ from tkinter.constants import *
6
+ from tkinter.font import _FontDescription
7
+ from types import GenericAlias, TracebackType
8
+ from typing import (
9
+ Any,
10
+ ClassVar,
11
+ Final,
12
+ Generic,
13
+ Literal,
14
+ NamedTuple,
15
+ ParamSpec,
16
+ Protocol,
17
+ TypeAlias,
18
+ TypedDict,
19
+ TypeVar,
20
+ overload,
21
+ type_check_only,
22
+ )
23
+ from typing_extensions import TypeVarTuple, Unpack, deprecated, disjoint_base
24
+
25
+ if sys.version_info >= (3, 11):
26
+ from enum import StrEnum
27
+ else:
28
+ from enum import Enum
29
+
30
+ __all__ = [
31
+ "TclError",
32
+ "NO",
33
+ "FALSE",
34
+ "OFF",
35
+ "YES",
36
+ "TRUE",
37
+ "ON",
38
+ "N",
39
+ "S",
40
+ "W",
41
+ "E",
42
+ "NW",
43
+ "SW",
44
+ "NE",
45
+ "SE",
46
+ "NS",
47
+ "EW",
48
+ "NSEW",
49
+ "CENTER",
50
+ "NONE",
51
+ "X",
52
+ "Y",
53
+ "BOTH",
54
+ "LEFT",
55
+ "TOP",
56
+ "RIGHT",
57
+ "BOTTOM",
58
+ "RAISED",
59
+ "SUNKEN",
60
+ "FLAT",
61
+ "RIDGE",
62
+ "GROOVE",
63
+ "SOLID",
64
+ "HORIZONTAL",
65
+ "VERTICAL",
66
+ "NUMERIC",
67
+ "CHAR",
68
+ "WORD",
69
+ "BASELINE",
70
+ "INSIDE",
71
+ "OUTSIDE",
72
+ "SEL",
73
+ "SEL_FIRST",
74
+ "SEL_LAST",
75
+ "END",
76
+ "INSERT",
77
+ "CURRENT",
78
+ "ANCHOR",
79
+ "ALL",
80
+ "NORMAL",
81
+ "DISABLED",
82
+ "ACTIVE",
83
+ "HIDDEN",
84
+ "CASCADE",
85
+ "CHECKBUTTON",
86
+ "COMMAND",
87
+ "RADIOBUTTON",
88
+ "SEPARATOR",
89
+ "SINGLE",
90
+ "BROWSE",
91
+ "MULTIPLE",
92
+ "EXTENDED",
93
+ "DOTBOX",
94
+ "UNDERLINE",
95
+ "PIESLICE",
96
+ "CHORD",
97
+ "ARC",
98
+ "FIRST",
99
+ "LAST",
100
+ "BUTT",
101
+ "PROJECTING",
102
+ "ROUND",
103
+ "BEVEL",
104
+ "MITER",
105
+ "MOVETO",
106
+ "SCROLL",
107
+ "UNITS",
108
+ "PAGES",
109
+ "TkVersion",
110
+ "TclVersion",
111
+ "READABLE",
112
+ "WRITABLE",
113
+ "EXCEPTION",
114
+ "EventType",
115
+ "Event",
116
+ "NoDefaultRoot",
117
+ "Variable",
118
+ "StringVar",
119
+ "IntVar",
120
+ "DoubleVar",
121
+ "BooleanVar",
122
+ "mainloop",
123
+ "getint",
124
+ "getdouble",
125
+ "getboolean",
126
+ "Misc",
127
+ "CallWrapper",
128
+ "XView",
129
+ "YView",
130
+ "Wm",
131
+ "Tk",
132
+ "Tcl",
133
+ "Pack",
134
+ "Place",
135
+ "Grid",
136
+ "BaseWidget",
137
+ "Widget",
138
+ "Toplevel",
139
+ "Button",
140
+ "Canvas",
141
+ "Checkbutton",
142
+ "Entry",
143
+ "Frame",
144
+ "Label",
145
+ "Listbox",
146
+ "Menu",
147
+ "Menubutton",
148
+ "Message",
149
+ "Radiobutton",
150
+ "Scale",
151
+ "Scrollbar",
152
+ "Text",
153
+ "OptionMenu",
154
+ "Image",
155
+ "PhotoImage",
156
+ "BitmapImage",
157
+ "image_names",
158
+ "image_types",
159
+ "Spinbox",
160
+ "LabelFrame",
161
+ "PanedWindow",
162
+ ]
163
+
164
+ # Using anything from tkinter.font in this file means that 'import tkinter'
165
+ # seems to also load tkinter.font. That's not how it actually works, but
166
+ # unfortunately not much can be done about it. https://github.com/python/typeshed/pull/4346
167
+
168
+ TclError = _tkinter.TclError
169
+ wantobjects: int
170
+ TkVersion: Final[float]
171
+ TclVersion: Final[float]
172
+ READABLE: Final = _tkinter.READABLE
173
+ WRITABLE: Final = _tkinter.WRITABLE
174
+ EXCEPTION: Final = _tkinter.EXCEPTION
175
+
176
+ # Quick guide for figuring out which widget class to choose:
177
+ # - Misc: any widget (don't use BaseWidget because Tk doesn't inherit from BaseWidget)
178
+ # - Widget: anything that is meant to be put into another widget with e.g. pack or grid
179
+ #
180
+ # Don't trust tkinter's docstrings, because they have been created by copy/pasting from
181
+ # Tk's manual pages more than 10 years ago. Use the latest manual pages instead:
182
+ #
183
+ # $ sudo apt install tk-doc tcl-doc
184
+ # $ man 3tk label # tkinter.Label
185
+ # $ man 3tk ttk_label # tkinter.ttk.Label
186
+ # $ man 3tcl after # tkinter.Misc.after
187
+ #
188
+ # You can also read the manual pages online: https://www.tcl.tk/doc/
189
+
190
+ # manual page: Tk_GetCursor
191
+ _Cursor: TypeAlias = str | tuple[str] | tuple[str, str] | tuple[str, str, str] | tuple[str, str, str, str]
192
+
193
+ if sys.version_info >= (3, 11):
194
+ @type_check_only
195
+ class _VersionInfoTypeBase(NamedTuple):
196
+ major: int
197
+ minor: int
198
+ micro: int
199
+ releaselevel: str
200
+ serial: int
201
+
202
+ if sys.version_info >= (3, 12):
203
+ class _VersionInfoType(_VersionInfoTypeBase): ...
204
+ else:
205
+ @disjoint_base
206
+ class _VersionInfoType(_VersionInfoTypeBase): ...
207
+
208
+ if sys.version_info >= (3, 11):
209
+ class EventType(StrEnum):
210
+ Activate = "36"
211
+ ButtonPress = "4"
212
+ Button = ButtonPress
213
+ ButtonRelease = "5"
214
+ Circulate = "26"
215
+ CirculateRequest = "27"
216
+ ClientMessage = "33"
217
+ Colormap = "32"
218
+ Configure = "22"
219
+ ConfigureRequest = "23"
220
+ Create = "16"
221
+ Deactivate = "37"
222
+ Destroy = "17"
223
+ Enter = "7"
224
+ Expose = "12"
225
+ FocusIn = "9"
226
+ FocusOut = "10"
227
+ GraphicsExpose = "13"
228
+ Gravity = "24"
229
+ KeyPress = "2"
230
+ Key = "2"
231
+ KeyRelease = "3"
232
+ Keymap = "11"
233
+ Leave = "8"
234
+ Map = "19"
235
+ MapRequest = "20"
236
+ Mapping = "34"
237
+ Motion = "6"
238
+ MouseWheel = "38"
239
+ NoExpose = "14"
240
+ Property = "28"
241
+ Reparent = "21"
242
+ ResizeRequest = "25"
243
+ Selection = "31"
244
+ SelectionClear = "29"
245
+ SelectionRequest = "30"
246
+ Unmap = "18"
247
+ VirtualEvent = "35"
248
+ Visibility = "15"
249
+
250
+ else:
251
+ class EventType(str, Enum):
252
+ Activate = "36"
253
+ ButtonPress = "4"
254
+ Button = ButtonPress
255
+ ButtonRelease = "5"
256
+ Circulate = "26"
257
+ CirculateRequest = "27"
258
+ ClientMessage = "33"
259
+ Colormap = "32"
260
+ Configure = "22"
261
+ ConfigureRequest = "23"
262
+ Create = "16"
263
+ Deactivate = "37"
264
+ Destroy = "17"
265
+ Enter = "7"
266
+ Expose = "12"
267
+ FocusIn = "9"
268
+ FocusOut = "10"
269
+ GraphicsExpose = "13"
270
+ Gravity = "24"
271
+ KeyPress = "2"
272
+ Key = KeyPress
273
+ KeyRelease = "3"
274
+ Keymap = "11"
275
+ Leave = "8"
276
+ Map = "19"
277
+ MapRequest = "20"
278
+ Mapping = "34"
279
+ Motion = "6"
280
+ MouseWheel = "38"
281
+ NoExpose = "14"
282
+ Property = "28"
283
+ Reparent = "21"
284
+ ResizeRequest = "25"
285
+ Selection = "31"
286
+ SelectionClear = "29"
287
+ SelectionRequest = "30"
288
+ Unmap = "18"
289
+ VirtualEvent = "35"
290
+ Visibility = "15"
291
+
292
+ _W = TypeVar("_W", bound=Misc)
293
+ # Events considered covariant because you should never assign to event.widget.
294
+ _W_co = TypeVar("_W_co", covariant=True, bound=Misc, default=Misc)
295
+
296
+ class Event(Generic[_W_co]):
297
+ serial: int
298
+ num: int
299
+ focus: bool
300
+ height: int
301
+ width: int
302
+ keycode: int
303
+ state: int | str
304
+ time: int
305
+ x: int
306
+ y: int
307
+ x_root: int
308
+ y_root: int
309
+ char: str
310
+ send_event: bool
311
+ keysym: str
312
+ keysym_num: int
313
+ type: EventType
314
+ widget: _W_co
315
+ delta: int
316
+ if sys.version_info >= (3, 15):
317
+ detail: str
318
+ user_data: str
319
+ if sys.version_info >= (3, 14):
320
+ def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
321
+
322
+ def NoDefaultRoot() -> None: ...
323
+
324
+ class Variable:
325
+ def __init__(self, master: Misc | None = None, value=None, name: str | None = None) -> None: ...
326
+ def set(self, value) -> None: ...
327
+ initialize = set
328
+ def get(self): ...
329
+ def trace_add(self, mode: Literal["array", "read", "write", "unset"], callback: Callable[[str, str, str], object]) -> str: ...
330
+ def trace_remove(self, mode: Literal["array", "read", "write", "unset"], cbname: str) -> None: ...
331
+ def trace_info(self) -> list[tuple[tuple[Literal["array", "read", "write", "unset"], ...], str]]: ...
332
+ @deprecated("Deprecated; will be removed in Python 3.17. Use `trace_add()` instead.")
333
+ def trace(self, mode, callback) -> str: ...
334
+ @deprecated("Deprecated; will be removed in Python 3.17. Use `trace_add()` instead.")
335
+ def trace_variable(self, mode, callback) -> str: ...
336
+ @deprecated("Deprecated; will be removed in Python 3.17. Use `trace_remove()` instead.")
337
+ def trace_vdelete(self, mode, cbname) -> None: ...
338
+ @deprecated("Deprecated; will be removed in Python 3.17. Use `trace_info()` instead.")
339
+ def trace_vinfo(self) -> list[Incomplete]: ...
340
+ def __eq__(self, other: object) -> bool: ...
341
+ def __del__(self) -> None: ...
342
+ __hash__: ClassVar[None] # type: ignore[assignment]
343
+
344
+ class StringVar(Variable):
345
+ def __init__(self, master: Misc | None = None, value: str | None = None, name: str | None = None) -> None: ...
346
+ def set(self, value: str) -> None: ...
347
+ initialize = set
348
+ def get(self) -> str: ...
349
+
350
+ class IntVar(Variable):
351
+ def __init__(self, master: Misc | None = None, value: int | None = None, name: str | None = None) -> None: ...
352
+ def set(self, value: int) -> None: ...
353
+ initialize = set
354
+ def get(self) -> int: ...
355
+
356
+ class DoubleVar(Variable):
357
+ def __init__(self, master: Misc | None = None, value: float | None = None, name: str | None = None) -> None: ...
358
+ def set(self, value: float) -> None: ...
359
+ initialize = set
360
+ def get(self) -> float: ...
361
+
362
+ class BooleanVar(Variable):
363
+ def __init__(self, master: Misc | None = None, value: bool | None = None, name: str | None = None) -> None: ...
364
+ def set(self, value: bool) -> None: ...
365
+ initialize = set
366
+ def get(self) -> bool: ...
367
+
368
+ def mainloop(n: int = 0) -> None: ...
369
+
370
+ getint = int
371
+ getdouble = float
372
+
373
+ def getboolean(s) -> bool: ...
374
+
375
+ _Ts = TypeVarTuple("_Ts")
376
+ _P = ParamSpec("_P")
377
+
378
+ @type_check_only
379
+ class _GridIndexInfo(TypedDict, total=False):
380
+ minsize: float | str
381
+ pad: float | str
382
+ uniform: str | None
383
+ weight: int
384
+
385
+ @type_check_only
386
+ class _BusyInfo(TypedDict):
387
+ cursor: _Cursor
388
+
389
+ class Misc:
390
+ master: Misc | None
391
+ tk: _tkinter.TkappType
392
+ children: dict[str, Widget]
393
+ if sys.version_info >= (3, 15):
394
+ __iter__: ClassVar[None] # prevent using __getitem__ for iteration
395
+
396
+ def destroy(self) -> None: ...
397
+ def deletecommand(self, name: str) -> None: ...
398
+ def tk_strictMotif(self, boolean=None): ...
399
+ def tk_bisque(self) -> None: ...
400
+ def tk_setPalette(self, *args, **kw) -> None: ...
401
+ def wait_variable(self, name: str | Variable = "PY_VAR") -> None: ...
402
+ waitvar = wait_variable
403
+ def wait_window(self, window: Misc | None = None) -> None: ...
404
+ def wait_visibility(self, window: Misc | None = None) -> None: ...
405
+ def setvar(self, name: str = "PY_VAR", value: str = "1") -> None: ...
406
+ def getvar(self, name: str = "PY_VAR"): ...
407
+ def getint(self, s) -> int: ...
408
+ def getdouble(self, s) -> float: ...
409
+ def getboolean(self, s) -> bool: ...
410
+ def focus_set(self) -> None: ...
411
+ focus = focus_set
412
+ def focus_force(self) -> None: ...
413
+ def focus_get(self) -> Misc | None: ...
414
+ def focus_displayof(self) -> Misc | None: ...
415
+ def focus_lastfor(self) -> Misc | None: ...
416
+ def tk_focusFollowsMouse(self) -> None: ...
417
+ def tk_focusNext(self) -> Misc | None: ...
418
+ def tk_focusPrev(self) -> Misc | None: ...
419
+ if sys.version_info >= (3, 14):
420
+ # .after() can be called without the "func" argument, but it is basically never what you want.
421
+ # It behaves like time.sleep() and freezes the GUI app.
422
+ def after(self, ms: int | Literal["idle"], func: Callable[_P, object], *args: _P.args, **kwargs: _P.kwargs) -> str: ...
423
+ # after_idle is essentially partialmethod(after, "idle")
424
+ def after_idle(self, func: Callable[_P, object], *args: _P.args, **kwargs: _P.kwargs) -> str: ...
425
+ else:
426
+ # .after() can be called without the "func" argument, but it is basically never what you want.
427
+ # It behaves like time.sleep() and freezes the GUI app.
428
+ def after(self, ms: int | Literal["idle"], func: Callable[[Unpack[_Ts]], object], *args: Unpack[_Ts]) -> str: ...
429
+ # after_idle is essentially partialmethod(after, "idle")
430
+ def after_idle(self, func: Callable[[Unpack[_Ts]], object], *args: Unpack[_Ts]) -> str: ...
431
+
432
+ def after_cancel(self, id: str) -> None: ...
433
+ if sys.version_info >= (3, 13):
434
+ def after_info(self, id: str | None = None) -> tuple[str, ...]: ...
435
+
436
+ def bell(self, displayof: Literal[0] | Misc | None = 0) -> None: ...
437
+ if sys.version_info >= (3, 13):
438
+ # Supports options from `_BusyInfo``
439
+ def tk_busy_cget(self, option: Literal["cursor"]) -> _Cursor: ...
440
+ busy_cget = tk_busy_cget
441
+ def tk_busy_configure(self, cnf: Any = None, **kw: Any) -> Any: ...
442
+ tk_busy_config = tk_busy_configure
443
+ busy_configure = tk_busy_configure
444
+ busy_config = tk_busy_configure
445
+ def tk_busy_current(self, pattern: str | None = None) -> list[Misc]: ...
446
+ busy_current = tk_busy_current
447
+ def tk_busy_forget(self) -> None: ...
448
+ busy_forget = tk_busy_forget
449
+ def tk_busy_hold(self, **kw: Unpack[_BusyInfo]) -> None: ...
450
+ tk_busy = tk_busy_hold
451
+ busy_hold = tk_busy_hold
452
+ busy = tk_busy_hold
453
+ def tk_busy_status(self) -> bool: ...
454
+ busy_status = tk_busy_status
455
+
456
+ def clipboard_get(self, *, displayof: Misc = ..., type: str = ...) -> str: ...
457
+ def clipboard_clear(self, *, displayof: Misc = ...) -> None: ...
458
+ def clipboard_append(self, string: str, *, displayof: Misc = ..., format: str = ..., type: str = ...) -> None: ...
459
+ def grab_current(self): ...
460
+ def grab_release(self) -> None: ...
461
+ def grab_set(self) -> None: ...
462
+ def grab_set_global(self) -> None: ...
463
+ def grab_status(self) -> Literal["local", "global"] | None: ...
464
+ def option_add(
465
+ self, pattern, value, priority: int | Literal["widgetDefault", "startupFile", "userDefault", "interactive"] | None = None
466
+ ) -> None: ...
467
+ def option_clear(self) -> None: ...
468
+ def option_get(self, name, className): ...
469
+ def option_readfile(self, fileName, priority=None) -> None: ...
470
+ def selection_clear(self, **kw) -> None: ...
471
+ def selection_get(self, **kw): ...
472
+ def selection_handle(self, command, **kw) -> None: ...
473
+ def selection_own(self, **kw) -> None: ...
474
+ def selection_own_get(self, **kw): ...
475
+ def send(self, interp, cmd, *args): ...
476
+ def lower(self, belowThis=None) -> None: ...
477
+ def tkraise(self, aboveThis=None) -> None: ...
478
+ lift = tkraise
479
+ if sys.version_info >= (3, 11):
480
+ def info_patchlevel(self) -> _VersionInfoType: ...
481
+
482
+ def winfo_atom(self, name: str, displayof: Literal[0] | Misc | None = 0) -> int: ...
483
+ def winfo_atomname(self, id: int, displayof: Literal[0] | Misc | None = 0) -> str: ...
484
+ def winfo_cells(self) -> int: ...
485
+ def winfo_children(self) -> list[Widget | Toplevel]: ...
486
+ def winfo_class(self) -> str: ...
487
+ def winfo_colormapfull(self) -> bool: ...
488
+ def winfo_containing(self, rootX: int, rootY: int, displayof: Literal[0] | Misc | None = 0) -> Misc | None: ...
489
+ def winfo_depth(self) -> int: ...
490
+ def winfo_exists(self) -> bool: ...
491
+ def winfo_fpixels(self, number: float | str) -> float: ...
492
+ def winfo_geometry(self) -> str: ...
493
+ def winfo_height(self) -> int: ...
494
+ def winfo_id(self) -> int: ...
495
+ def winfo_interps(self, displayof: Literal[0] | Misc | None = 0) -> tuple[str, ...]: ...
496
+ def winfo_ismapped(self) -> bool: ...
497
+ def winfo_manager(self) -> str: ...
498
+ def winfo_name(self) -> str: ...
499
+ def winfo_parent(self) -> str: ... # return value needs nametowidget()
500
+ def winfo_pathname(self, id: int, displayof: Literal[0] | Misc | None = 0): ...
501
+ def winfo_pixels(self, number: float | str) -> int: ...
502
+ def winfo_pointerx(self) -> int: ...
503
+ def winfo_pointerxy(self) -> tuple[int, int]: ...
504
+ def winfo_pointery(self) -> int: ...
505
+ def winfo_reqheight(self) -> int: ...
506
+ def winfo_reqwidth(self) -> int: ...
507
+ def winfo_rgb(self, color: str) -> tuple[int, int, int]: ...
508
+ def winfo_rootx(self) -> int: ...
509
+ def winfo_rooty(self) -> int: ...
510
+ def winfo_screen(self) -> str: ...
511
+ def winfo_screencells(self) -> int: ...
512
+ def winfo_screendepth(self) -> int: ...
513
+ def winfo_screenheight(self) -> int: ...
514
+ def winfo_screenmmheight(self) -> int: ...
515
+ def winfo_screenmmwidth(self) -> int: ...
516
+ def winfo_screenvisual(self) -> str: ...
517
+ def winfo_screenwidth(self) -> int: ...
518
+ def winfo_server(self) -> str: ...
519
+ def winfo_toplevel(self) -> Tk | Toplevel: ...
520
+ def winfo_viewable(self) -> bool: ...
521
+ def winfo_visual(self) -> str: ...
522
+ def winfo_visualid(self) -> str: ...
523
+ def winfo_visualsavailable(self, includeids: bool = False) -> list[tuple[str, int]]: ...
524
+ def winfo_vrootheight(self) -> int: ...
525
+ def winfo_vrootwidth(self) -> int: ...
526
+ def winfo_vrootx(self) -> int: ...
527
+ def winfo_vrooty(self) -> int: ...
528
+ def winfo_width(self) -> int: ...
529
+ def winfo_x(self) -> int: ...
530
+ def winfo_y(self) -> int: ...
531
+ def update(self) -> None: ...
532
+ def update_idletasks(self) -> None: ...
533
+
534
+ @overload
535
+ def bindtags(self, tagList: None = None) -> tuple[str, ...]: ...
536
+ @overload
537
+ def bindtags(self, tagList: list[str] | tuple[str, ...]) -> None: ...
538
+
539
+ # bind with isinstance(func, str) doesn't return anything, but all other
540
+ # binds do. The default value of func is not str.
541
+ @overload
542
+ def bind(
543
+ self,
544
+ sequence: str | None = None,
545
+ func: Callable[[Event[Misc]], object] | None = None,
546
+ add: Literal["", "+"] | bool | None = None,
547
+ ) -> str: ...
548
+ @overload
549
+ def bind(self, sequence: str | None, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
550
+ @overload
551
+ def bind(self, *, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
552
+
553
+ # There's no way to know what type of widget bind_all and bind_class
554
+ # callbacks will get, so those are Misc.
555
+ @overload
556
+ def bind_all(
557
+ self,
558
+ sequence: str | None = None,
559
+ func: Callable[[Event[Misc]], object] | None = None,
560
+ add: Literal["", "+"] | bool | None = None,
561
+ ) -> str: ...
562
+ @overload
563
+ def bind_all(self, sequence: str | None, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
564
+ @overload
565
+ def bind_all(self, *, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
566
+
567
+ @overload
568
+ def bind_class(
569
+ self,
570
+ className: str,
571
+ sequence: str | None = None,
572
+ func: Callable[[Event[Misc]], object] | None = None,
573
+ add: Literal["", "+"] | bool | None = None,
574
+ ) -> str: ...
575
+ @overload
576
+ def bind_class(self, className: str, sequence: str | None, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
577
+ @overload
578
+ def bind_class(self, className: str, *, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
579
+
580
+ def unbind(self, sequence: str, funcid: str | None = None) -> None: ...
581
+ def unbind_all(self, sequence: str) -> None: ...
582
+ def unbind_class(self, className: str, sequence: str) -> None: ...
583
+ def mainloop(self, n: int = 0) -> None: ...
584
+ def quit(self) -> None: ...
585
+ @property
586
+ def _windowingsystem(self) -> Literal["win32", "aqua", "x11"]: ...
587
+ def nametowidget(self, name: str | Misc | _tkinter.Tcl_Obj) -> Any: ...
588
+ def register(
589
+ self, func: Callable[..., object], subst: Callable[..., Sequence[Any]] | None = None, needcleanup: int = 1
590
+ ) -> str: ...
591
+ def keys(self) -> list[str]: ...
592
+
593
+ @overload
594
+ def pack_propagate(self, flag: bool) -> bool | None: ...
595
+ @overload
596
+ def pack_propagate(self) -> None: ...
597
+
598
+ propagate = pack_propagate
599
+ def grid_anchor(self, anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] | None = None) -> None: ...
600
+ anchor = grid_anchor
601
+
602
+ @overload
603
+ def grid_bbox(
604
+ self, column: None = None, row: None = None, col2: None = None, row2: None = None
605
+ ) -> tuple[int, int, int, int] | None: ...
606
+ @overload
607
+ def grid_bbox(self, column: int, row: int, col2: None = None, row2: None = None) -> tuple[int, int, int, int] | None: ...
608
+ @overload
609
+ def grid_bbox(self, column: int, row: int, col2: int, row2: int) -> tuple[int, int, int, int] | None: ...
610
+
611
+ bbox = grid_bbox
612
+ def grid_columnconfigure(
613
+ self,
614
+ index: int | str | list[int] | tuple[int, ...],
615
+ cnf: _GridIndexInfo = {},
616
+ *,
617
+ minsize: float | str = ...,
618
+ pad: float | str = ...,
619
+ uniform: str = ...,
620
+ weight: int = ...,
621
+ ) -> _GridIndexInfo | MaybeNone: ... # can be None but annoying to check
622
+ def grid_rowconfigure(
623
+ self,
624
+ index: int | str | list[int] | tuple[int, ...],
625
+ cnf: _GridIndexInfo = {},
626
+ *,
627
+ minsize: float | str = ...,
628
+ pad: float | str = ...,
629
+ uniform: str = ...,
630
+ weight: int = ...,
631
+ ) -> _GridIndexInfo | MaybeNone: ... # can be None but annoying to check
632
+ columnconfigure = grid_columnconfigure
633
+ rowconfigure = grid_rowconfigure
634
+ def grid_location(self, x: float | str, y: float | str) -> tuple[int, int]: ...
635
+
636
+ @overload
637
+ def grid_propagate(self, flag: bool) -> None: ...
638
+ @overload
639
+ def grid_propagate(self) -> bool: ...
640
+
641
+ def grid_size(self) -> tuple[int, int]: ...
642
+ size = grid_size
643
+ # Widget because Toplevel or Tk is never a slave
644
+ def pack_slaves(self) -> list[Widget]: ...
645
+ def grid_slaves(self, row: int | None = None, column: int | None = None) -> list[Widget]: ...
646
+ def place_slaves(self) -> list[Widget]: ...
647
+ slaves = pack_slaves
648
+ if sys.version_info >= (3, 15):
649
+ def pack_content(self) -> list[Widget]: ...
650
+ def grid_content(self, row: int | None = None, column: int | None = None) -> list[Widget]: ...
651
+ def place_content(self) -> list[Widget]: ...
652
+ content = pack_content
653
+
654
+ def event_add(self, virtual: str, *sequences: str) -> None: ...
655
+ def event_delete(self, virtual: str, *sequences: str) -> None: ...
656
+ def event_generate(
657
+ self,
658
+ sequence: str,
659
+ *,
660
+ above: Misc | int = ...,
661
+ borderwidth: float | str = ...,
662
+ button: int = ...,
663
+ count: int = ...,
664
+ data: Any = ..., # anything with usable str() value
665
+ delta: int = ...,
666
+ detail: str = ...,
667
+ focus: bool = ...,
668
+ height: float | str = ...,
669
+ keycode: int = ...,
670
+ keysym: str = ...,
671
+ mode: str = ...,
672
+ override: bool = ...,
673
+ place: Literal["PlaceOnTop", "PlaceOnBottom"] = ...,
674
+ root: Misc | int = ...,
675
+ rootx: float | str = ...,
676
+ rooty: float | str = ...,
677
+ sendevent: bool = ...,
678
+ serial: int = ...,
679
+ state: int | str = ...,
680
+ subwindow: Misc | int = ...,
681
+ time: int = ...,
682
+ warp: bool = ...,
683
+ width: float | str = ...,
684
+ when: Literal["now", "tail", "head", "mark"] = ...,
685
+ x: float | str = ...,
686
+ y: float | str = ...,
687
+ ) -> None: ...
688
+ def event_info(self, virtual: str | None = None) -> tuple[str, ...]: ...
689
+ def image_names(self) -> tuple[str, ...]: ...
690
+ def image_types(self) -> tuple[str, ...]: ...
691
+ # See #4363 and #4891
692
+ def __setitem__(self, key: str, value: Any) -> None: ...
693
+ def __getitem__(self, key: str) -> Any: ...
694
+ def cget(self, key: str) -> Any: ...
695
+ def configure(self, cnf: Any = None) -> Any: ...
696
+ config = configure
697
+
698
+ class CallWrapper:
699
+ func: Incomplete
700
+ subst: Incomplete
701
+ widget: Incomplete
702
+ def __init__(self, func, subst, widget) -> None: ...
703
+ def __call__(self, *args): ...
704
+
705
+ class XView:
706
+ @overload
707
+ def xview(self) -> tuple[float, float]: ...
708
+ @overload
709
+ def xview(self, *args) -> None: ...
710
+
711
+ def xview_moveto(self, fraction: float) -> None: ...
712
+
713
+ @overload
714
+ def xview_scroll(self, number: int, what: Literal["units", "pages"]) -> None: ...
715
+ @overload
716
+ def xview_scroll(self, number: float | str, what: Literal["pixels"]) -> None: ...
717
+
718
+ class YView:
719
+ @overload
720
+ def yview(self) -> tuple[float, float]: ...
721
+ @overload
722
+ def yview(self, *args) -> None: ...
723
+
724
+ def yview_moveto(self, fraction: float) -> None: ...
725
+
726
+ @overload
727
+ def yview_scroll(self, number: int, what: Literal["units", "pages"]) -> None: ...
728
+ @overload
729
+ def yview_scroll(self, number: float | str, what: Literal["pixels"]) -> None: ...
730
+
731
+ if sys.platform == "darwin":
732
+ @type_check_only
733
+ class _WmAttributes(TypedDict):
734
+ alpha: float
735
+ fullscreen: bool
736
+ modified: bool
737
+ notify: bool
738
+ titlepath: str
739
+ topmost: bool
740
+ transparent: bool
741
+ type: str # Present, but not actually used on darwin
742
+
743
+ elif sys.platform == "win32":
744
+ @type_check_only
745
+ class _WmAttributes(TypedDict):
746
+ alpha: float
747
+ transparentcolor: str
748
+ disabled: bool
749
+ fullscreen: bool
750
+ toolwindow: bool
751
+ topmost: bool
752
+
753
+ else:
754
+ # X11
755
+ @type_check_only
756
+ class _WmAttributes(TypedDict):
757
+ alpha: float
758
+ topmost: bool
759
+ zoomed: bool
760
+ fullscreen: bool
761
+ type: str
762
+
763
+ class Wm:
764
+ @overload
765
+ def wm_aspect(self, minNumer: int, minDenom: int, maxNumer: int, maxDenom: int) -> None: ...
766
+ @overload
767
+ def wm_aspect(
768
+ self, minNumer: None = None, minDenom: None = None, maxNumer: None = None, maxDenom: None = None
769
+ ) -> tuple[int, int, int, int] | None: ...
770
+
771
+ aspect = wm_aspect
772
+
773
+ # wm_attributes: Get all attributes
774
+ if sys.version_info >= (3, 13):
775
+ @overload
776
+ def wm_attributes(self, *, return_python_dict: Literal[False] = False) -> tuple[Any, ...]: ...
777
+ @overload
778
+ def wm_attributes(self, *, return_python_dict: Literal[True]) -> _WmAttributes: ...
779
+ else:
780
+ @overload
781
+ def wm_attributes(self) -> tuple[Any, ...]: ...
782
+
783
+ # wm_attributes: Get one attribute (old variant using string that starts with "-")
784
+ @overload
785
+ def wm_attributes(self, option: Literal["-alpha"], /) -> float: ...
786
+ @overload
787
+ def wm_attributes(self, option: Literal["-fullscreen"], /) -> bool: ...
788
+ @overload
789
+ def wm_attributes(self, option: Literal["-topmost"], /) -> bool: ...
790
+ if sys.platform == "darwin":
791
+ @overload
792
+ def wm_attributes(self, option: Literal["-modified"], /) -> bool: ...
793
+ @overload
794
+ def wm_attributes(self, option: Literal["-notify"], /) -> bool: ...
795
+ @overload
796
+ def wm_attributes(self, option: Literal["-titlepath"], /) -> str: ...
797
+ @overload
798
+ def wm_attributes(self, option: Literal["-transparent"], /) -> bool: ...
799
+ @overload
800
+ def wm_attributes(self, option: Literal["-type"], /) -> str: ...
801
+ elif sys.platform == "win32":
802
+ @overload
803
+ def wm_attributes(self, option: Literal["-transparentcolor"], /) -> str: ...
804
+ @overload
805
+ def wm_attributes(self, option: Literal["-disabled"], /) -> bool: ...
806
+ @overload
807
+ def wm_attributes(self, option: Literal["-toolwindow"], /) -> bool: ...
808
+ else:
809
+ # X11
810
+ @overload
811
+ def wm_attributes(self, option: Literal["-zoomed"], /) -> bool: ...
812
+ @overload
813
+ def wm_attributes(self, option: Literal["-type"], /) -> str: ...
814
+ if sys.version_info >= (3, 13):
815
+ # wm_attributes: Get one attribute (new variant without "-")
816
+ @overload
817
+ def wm_attributes(self, option: Literal["alpha"], /) -> float: ...
818
+ @overload
819
+ def wm_attributes(self, option: Literal["fullscreen"], /) -> bool: ...
820
+ @overload
821
+ def wm_attributes(self, option: Literal["topmost"], /) -> bool: ...
822
+ if sys.platform == "darwin":
823
+ @overload
824
+ def wm_attributes(self, option: Literal["modified"], /) -> bool: ...
825
+ @overload
826
+ def wm_attributes(self, option: Literal["notify"], /) -> bool: ...
827
+ @overload
828
+ def wm_attributes(self, option: Literal["titlepath"], /) -> str: ...
829
+ @overload
830
+ def wm_attributes(self, option: Literal["transparent"], /) -> bool: ...
831
+ @overload
832
+ def wm_attributes(self, option: Literal["type"], /) -> str: ...
833
+ elif sys.platform == "win32":
834
+ @overload
835
+ def wm_attributes(self, option: Literal["transparentcolor"], /) -> str: ...
836
+ @overload
837
+ def wm_attributes(self, option: Literal["disabled"], /) -> bool: ...
838
+ @overload
839
+ def wm_attributes(self, option: Literal["toolwindow"], /) -> bool: ...
840
+ else:
841
+ # X11
842
+ @overload
843
+ def wm_attributes(self, option: Literal["zoomed"], /) -> bool: ...
844
+ @overload
845
+ def wm_attributes(self, option: Literal["type"], /) -> str: ...
846
+
847
+ # wm_attributes: Set an attribute (old variant using string that starts with "-")
848
+ @overload
849
+ def wm_attributes(self, option: str, /): ...
850
+ @overload
851
+ def wm_attributes(self, option: Literal["-alpha"], value: float, /) -> Literal[""]: ...
852
+ @overload
853
+ def wm_attributes(self, option: Literal["-fullscreen"], value: bool, /) -> Literal[""]: ...
854
+ @overload
855
+ def wm_attributes(self, option: Literal["-topmost"], value: bool, /) -> Literal[""]: ...
856
+ if sys.platform == "darwin":
857
+ @overload
858
+ def wm_attributes(self, option: Literal["-modified"], value: bool, /) -> Literal[""]: ...
859
+ @overload
860
+ def wm_attributes(self, option: Literal["-notify"], value: bool, /) -> Literal[""]: ...
861
+ @overload
862
+ def wm_attributes(self, option: Literal["-titlepath"], value: str, /) -> Literal[""]: ...
863
+ @overload
864
+ def wm_attributes(self, option: Literal["-transparent"], value: bool, /) -> Literal[""]: ...
865
+ elif sys.platform == "win32":
866
+ @overload
867
+ def wm_attributes(self, option: Literal["-transparentcolor"], value: str, /) -> Literal[""]: ...
868
+ @overload
869
+ def wm_attributes(self, option: Literal["-disabled"], value: bool, /) -> Literal[""]: ...
870
+ @overload
871
+ def wm_attributes(self, option: Literal["-toolwindow"], value: bool, /) -> Literal[""]: ...
872
+ else:
873
+ # X11
874
+ @overload
875
+ def wm_attributes(self, option: Literal["-zoomed"], value: bool, /) -> Literal[""]: ...
876
+ @overload
877
+ def wm_attributes(self, option: Literal["-type"], value: str, /) -> Literal[""]: ...
878
+
879
+ # wm_attributes: Set multiple attributes (old variant using strings that start with "-")
880
+ @overload
881
+ def wm_attributes(self, option: str, value, /, *__other_option_value_pairs: Any) -> Literal[""]: ...
882
+
883
+ # wm_attributes: Set an attribute (new variant with kwarg instead of string)
884
+ if sys.version_info >= (3, 13):
885
+ if sys.platform == "darwin":
886
+ @overload
887
+ def wm_attributes(
888
+ self,
889
+ *,
890
+ alpha: float = ...,
891
+ fullscreen: bool = ...,
892
+ modified: bool = ...,
893
+ notify: bool = ...,
894
+ titlepath: str = ...,
895
+ topmost: bool = ...,
896
+ transparent: bool = ...,
897
+ ) -> None: ...
898
+ elif sys.platform == "win32":
899
+ @overload
900
+ def wm_attributes(
901
+ self,
902
+ *,
903
+ alpha: float = ...,
904
+ transparentcolor: str = ...,
905
+ disabled: bool = ...,
906
+ fullscreen: bool = ...,
907
+ toolwindow: bool = ...,
908
+ topmost: bool = ...,
909
+ ) -> None: ...
910
+ else:
911
+ # X11
912
+ @overload
913
+ def wm_attributes(
914
+ self, *, alpha: float = ..., topmost: bool = ..., zoomed: bool = ..., fullscreen: bool = ..., type: str = ...
915
+ ) -> None: ...
916
+
917
+ attributes = wm_attributes
918
+ def wm_client(self, name: str | None = None) -> str: ...
919
+ client = wm_client
920
+
921
+ @overload
922
+ def wm_colormapwindows(self) -> list[Misc]: ...
923
+ @overload
924
+ def wm_colormapwindows(self, wlist: list[Misc] | tuple[Misc, ...], /) -> None: ...
925
+ @overload
926
+ def wm_colormapwindows(self, first_wlist_item: Misc, /, *other_wlist_items: Misc) -> None: ...
927
+
928
+ colormapwindows = wm_colormapwindows
929
+ def wm_command(self, value: str | None = None) -> str: ...
930
+ command = wm_command
931
+ # Some of these always return empty string, but return type is set to None to prevent accidentally using it
932
+ def wm_deiconify(self) -> None: ...
933
+ deiconify = wm_deiconify
934
+ def wm_focusmodel(self, model: Literal["active", "passive"] | None = None) -> Literal["active", "passive", ""]: ...
935
+ focusmodel = wm_focusmodel
936
+ def wm_forget(self, window: Wm) -> None: ...
937
+ forget = wm_forget
938
+ def wm_frame(self) -> str: ...
939
+ frame = wm_frame
940
+
941
+ @overload
942
+ def wm_geometry(self, newGeometry: None = None) -> str: ...
943
+ @overload
944
+ def wm_geometry(self, newGeometry: str) -> None: ...
945
+
946
+ geometry = wm_geometry
947
+ def wm_grid(self, baseWidth=None, baseHeight=None, widthInc=None, heightInc=None): ...
948
+ grid = wm_grid
949
+ def wm_group(self, pathName=None): ...
950
+ group = wm_group
951
+ def wm_iconbitmap(self, bitmap=None, default=None): ...
952
+ iconbitmap = wm_iconbitmap
953
+ def wm_iconify(self) -> None: ...
954
+ iconify = wm_iconify
955
+ def wm_iconmask(self, bitmap=None): ...
956
+ iconmask = wm_iconmask
957
+ def wm_iconname(self, newName=None) -> str: ...
958
+ iconname = wm_iconname
959
+ def wm_iconphoto(self, default: bool, image1: _PhotoImageLike | str, /, *args: _PhotoImageLike | str) -> None: ...
960
+ iconphoto = wm_iconphoto
961
+ def wm_iconposition(self, x: int | None = None, y: int | None = None) -> tuple[int, int] | None: ...
962
+ iconposition = wm_iconposition
963
+ def wm_iconwindow(self, pathName=None): ...
964
+ iconwindow = wm_iconwindow
965
+ def wm_manage(self, widget) -> None: ...
966
+ manage = wm_manage
967
+
968
+ @overload
969
+ def wm_maxsize(self, width: None = None, height: None = None) -> tuple[int, int]: ...
970
+ @overload
971
+ def wm_maxsize(self, width: int, height: int) -> None: ...
972
+
973
+ maxsize = wm_maxsize
974
+
975
+ @overload
976
+ def wm_minsize(self, width: None = None, height: None = None) -> tuple[int, int]: ...
977
+ @overload
978
+ def wm_minsize(self, width: int, height: int) -> None: ...
979
+
980
+ minsize = wm_minsize
981
+
982
+ @overload
983
+ def wm_overrideredirect(self, boolean: None = None) -> bool | None: ... # returns True or None
984
+ @overload
985
+ def wm_overrideredirect(self, boolean: bool) -> None: ...
986
+
987
+ overrideredirect = wm_overrideredirect
988
+ def wm_positionfrom(self, who: Literal["program", "user"] | None = None) -> Literal["", "program", "user"]: ...
989
+ positionfrom = wm_positionfrom
990
+
991
+ @overload
992
+ def wm_protocol(self, name: str, func: Callable[[], object] | str) -> None: ...
993
+ @overload
994
+ def wm_protocol(self, name: str, func: None = None) -> str: ...
995
+ @overload
996
+ def wm_protocol(self, name: None = None, func: None = None) -> tuple[str, ...]: ...
997
+
998
+ protocol = wm_protocol
999
+
1000
+ @overload
1001
+ def wm_resizable(self, width: None = None, height: None = None) -> tuple[bool, bool]: ...
1002
+ @overload
1003
+ def wm_resizable(self, width: bool, height: bool) -> None: ...
1004
+
1005
+ resizable = wm_resizable
1006
+ def wm_sizefrom(self, who: Literal["program", "user"] | None = None) -> Literal["", "program", "user"]: ...
1007
+ sizefrom = wm_sizefrom
1008
+
1009
+ @overload
1010
+ def wm_state(self, newstate: None = None) -> str: ...
1011
+ @overload
1012
+ def wm_state(self, newstate: str) -> None: ...
1013
+
1014
+ state = wm_state
1015
+
1016
+ @overload
1017
+ def wm_title(self, string: None = None) -> str: ...
1018
+ @overload
1019
+ def wm_title(self, string: str) -> None: ...
1020
+
1021
+ title = wm_title
1022
+
1023
+ @overload
1024
+ def wm_transient(self, master: None = None) -> _tkinter.Tcl_Obj: ...
1025
+ @overload
1026
+ def wm_transient(self, master: Wm | _tkinter.Tcl_Obj) -> None: ...
1027
+
1028
+ transient = wm_transient
1029
+ def wm_withdraw(self) -> None: ...
1030
+ withdraw = wm_withdraw
1031
+
1032
+ class Tk(Misc, Wm):
1033
+ master: None
1034
+ def __init__(
1035
+ # Make sure to keep in sync with other functions that use the same
1036
+ # args.
1037
+ # use `git grep screenName` to find them
1038
+ self,
1039
+ screenName: str | None = None,
1040
+ baseName: str | None = None,
1041
+ className: str = "Tk",
1042
+ useTk: bool = True,
1043
+ sync: bool = False,
1044
+ use: str | None = None,
1045
+ ) -> None: ...
1046
+
1047
+ # Keep this in sync with ttktheme.ThemedTk. See issue #13858
1048
+ @overload
1049
+ def configure(
1050
+ self,
1051
+ cnf: dict[str, Any] | None = None,
1052
+ *,
1053
+ background: str = ...,
1054
+ bd: float | str = ...,
1055
+ bg: str = ...,
1056
+ border: float | str = ...,
1057
+ borderwidth: float | str = ...,
1058
+ cursor: _Cursor = ...,
1059
+ height: float | str = ...,
1060
+ highlightbackground: str = ...,
1061
+ highlightcolor: str = ...,
1062
+ highlightthickness: float | str = ...,
1063
+ menu: Menu = ...,
1064
+ padx: float | str = ...,
1065
+ pady: float | str = ...,
1066
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
1067
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
1068
+ width: float | str = ...,
1069
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
1070
+ @overload
1071
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
1072
+
1073
+ config = configure
1074
+ def destroy(self) -> None: ...
1075
+ def readprofile(self, baseName: str, className: str) -> None: ...
1076
+ report_callback_exception: Callable[[type[BaseException], BaseException, TracebackType | None], object]
1077
+ # Tk has __getattr__ so that tk_instance.foo falls back to tk_instance.tk.foo
1078
+ # Please keep in sync with _tkinter.TkappType.
1079
+ # Some methods are intentionally missing because they are inherited from Misc instead.
1080
+ def adderrorinfo(self, msg: str, /) -> None: ...
1081
+ def call(self, command: Any, /, *args: Any) -> Any: ...
1082
+ # TODO: Figure out what arguments the following `func` callbacks should accept
1083
+ def createcommand(self, name: str, func: Callable[..., object], /) -> None: ...
1084
+ if sys.platform != "win32":
1085
+ def createfilehandler(self, file: FileDescriptorLike, mask: int, func: Callable[..., object], /) -> None: ...
1086
+ def deletefilehandler(self, file: FileDescriptorLike, /) -> None: ...
1087
+
1088
+ def createtimerhandler(self, milliseconds: int, func: Callable[..., object], /): ...
1089
+ def dooneevent(self, flags: int = 0, /) -> int: ...
1090
+ def eval(self, script: str, /) -> str: ...
1091
+ def evalfile(self, fileName: str, /) -> str: ...
1092
+ def exprboolean(self, s: str, /) -> Literal[0, 1]: ...
1093
+ def exprdouble(self, s: str, /) -> float: ...
1094
+ def exprlong(self, s: str, /) -> int: ...
1095
+ def exprstring(self, s: str, /) -> str: ...
1096
+ def globalgetvar(self, *args, **kwargs): ...
1097
+ def globalsetvar(self, *args, **kwargs): ...
1098
+ def globalunsetvar(self, *args, **kwargs): ...
1099
+ def interpaddr(self) -> int: ...
1100
+ def loadtk(self) -> None: ...
1101
+ def record(self, script: str, /) -> str: ...
1102
+ if sys.version_info < (3, 11):
1103
+ @deprecated("Deprecated since Python 3.9; removed in Python 3.11. Use `splitlist()` instead.")
1104
+ def split(self, arg, /): ...
1105
+
1106
+ def splitlist(self, arg, /) -> tuple[Incomplete, ...]: ...
1107
+ def unsetvar(self, *args, **kwargs): ...
1108
+
1109
+ if sys.version_info >= (3, 14):
1110
+ @overload
1111
+ def wantobjects(self) -> Literal[0, 1]: ...
1112
+ else:
1113
+ @overload
1114
+ def wantobjects(self) -> bool: ...
1115
+
1116
+ @overload
1117
+ def wantobjects(self, wantobjects: Literal[0, 1] | bool, /) -> None: ...
1118
+
1119
+ def willdispatch(self) -> None: ...
1120
+
1121
+ def Tcl(screenName: str | None = None, baseName: str | None = None, className: str = "Tk", useTk: bool = False) -> Tk: ...
1122
+
1123
+ _InMiscTotal = TypedDict("_InMiscTotal", {"in": Misc})
1124
+ _InMiscNonTotal = TypedDict("_InMiscNonTotal", {"in": Misc}, total=False)
1125
+
1126
+ @type_check_only
1127
+ class _PackInfo(_InMiscTotal):
1128
+ # 'before' and 'after' never appear in _PackInfo
1129
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"]
1130
+ expand: bool
1131
+ fill: Literal["none", "x", "y", "both"]
1132
+ side: Literal["left", "right", "top", "bottom"]
1133
+ # Paddings come out as int or tuple of int, even though any screen units
1134
+ # can be specified in pack().
1135
+ ipadx: int
1136
+ ipady: int
1137
+ padx: int | tuple[int, int]
1138
+ pady: int | tuple[int, int]
1139
+
1140
+ class Pack:
1141
+ # _PackInfo is not the valid type for cnf because pad stuff accepts any
1142
+ # screen units instead of int only. I didn't bother to create another
1143
+ # TypedDict for cnf because it appears to be a legacy thing that was
1144
+ # replaced by **kwargs.
1145
+ def pack_configure(
1146
+ self,
1147
+ cnf: Mapping[str, Any] | None = {},
1148
+ *,
1149
+ after: Misc = ...,
1150
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
1151
+ before: Misc = ...,
1152
+ expand: bool | Literal[0, 1] = 0,
1153
+ fill: Literal["none", "x", "y", "both"] = ...,
1154
+ side: Literal["left", "right", "top", "bottom"] = ...,
1155
+ ipadx: float | str = ...,
1156
+ ipady: float | str = ...,
1157
+ padx: float | str | tuple[float | str, float | str] = ...,
1158
+ pady: float | str | tuple[float | str, float | str] = ...,
1159
+ in_: Misc = ...,
1160
+ **kw: Any, # allow keyword argument named 'in', see #4836
1161
+ ) -> None: ...
1162
+ def pack_forget(self) -> None: ...
1163
+ def pack_info(self) -> _PackInfo: ... # errors if widget hasn't been packed
1164
+ pack = pack_configure
1165
+ forget = pack_forget
1166
+ propagate = Misc.pack_propagate
1167
+
1168
+ @type_check_only
1169
+ class _PlaceInfo(_InMiscNonTotal): # empty dict if widget hasn't been placed
1170
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"]
1171
+ bordermode: Literal["inside", "outside", "ignore"]
1172
+ width: str # can be int()ed (even after e.g. widget.place(height='2.3c') or similar)
1173
+ height: str # can be int()ed
1174
+ x: str # can be int()ed
1175
+ y: str # can be int()ed
1176
+ relheight: str # can be float()ed if not empty string
1177
+ relwidth: str # can be float()ed if not empty string
1178
+ relx: str # can be float()ed if not empty string
1179
+ rely: str # can be float()ed if not empty string
1180
+
1181
+ class Place:
1182
+ def place_configure(
1183
+ self,
1184
+ cnf: Mapping[str, Any] | None = {},
1185
+ *,
1186
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
1187
+ bordermode: Literal["inside", "outside", "ignore"] = ...,
1188
+ width: float | str = ...,
1189
+ height: float | str = ...,
1190
+ x: float | str = ...,
1191
+ y: float | str = ...,
1192
+ # str allowed for compatibility with place_info()
1193
+ relheight: str | float = ...,
1194
+ relwidth: str | float = ...,
1195
+ relx: str | float = ...,
1196
+ rely: str | float = ...,
1197
+ in_: Misc = ...,
1198
+ **kw: Any, # allow keyword argument named 'in', see #4836
1199
+ ) -> None: ...
1200
+ def place_forget(self) -> None: ...
1201
+ def place_info(self) -> _PlaceInfo: ...
1202
+ place = place_configure
1203
+ info = place_info
1204
+
1205
+ @type_check_only
1206
+ class _GridInfo(_InMiscNonTotal): # empty dict if widget hasn't been gridded
1207
+ column: int
1208
+ columnspan: int
1209
+ row: int
1210
+ rowspan: int
1211
+ ipadx: int
1212
+ ipady: int
1213
+ padx: int | tuple[int, int]
1214
+ pady: int | tuple[int, int]
1215
+ sticky: str # consists of letters 'n', 's', 'w', 'e', no repeats, may be empty
1216
+
1217
+ class Grid:
1218
+ def grid_configure(
1219
+ self,
1220
+ cnf: Mapping[str, Any] | None = {},
1221
+ *,
1222
+ column: int = ...,
1223
+ columnspan: int = ...,
1224
+ row: int = ...,
1225
+ rowspan: int = ...,
1226
+ ipadx: float | str = ...,
1227
+ ipady: float | str = ...,
1228
+ padx: float | str | tuple[float | str, float | str] = ...,
1229
+ pady: float | str | tuple[float | str, float | str] = ...,
1230
+ sticky: (
1231
+ str | list[str] | tuple[str, ...]
1232
+ ) = ..., # consists of letters 'n', 's', 'w', 'e', may contain repeats, may be empty
1233
+ in_: Misc = ...,
1234
+ **kw: Any, # allow keyword argument named 'in', see #4836
1235
+ ) -> None: ...
1236
+ def grid_forget(self) -> None: ...
1237
+ def grid_remove(self) -> None: ...
1238
+ def grid_info(self) -> _GridInfo: ...
1239
+ grid = grid_configure
1240
+ location = Misc.grid_location
1241
+ size = Misc.grid_size
1242
+
1243
+ class BaseWidget(Misc):
1244
+ master: Misc
1245
+ widgetName: str
1246
+ def __init__(self, master, widgetName: str, cnf={}, kw={}, extra=()) -> None: ...
1247
+ def destroy(self) -> None: ...
1248
+
1249
+ # This class represents any widget except Toplevel or Tk.
1250
+ class Widget(BaseWidget, Pack, Place, Grid):
1251
+ # Allow bind callbacks to take e.g. Event[Label] instead of Event[Misc].
1252
+ # Tk and Toplevel get notified for their child widgets' events, but other
1253
+ # widgets don't.
1254
+ @overload
1255
+ def bind(
1256
+ self: _W,
1257
+ sequence: str | None = None,
1258
+ func: Callable[[Event[_W]], object] | None = None,
1259
+ add: Literal["", "+"] | bool | None = None,
1260
+ ) -> str: ...
1261
+ @overload
1262
+ def bind(self, sequence: str | None, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
1263
+ @overload
1264
+ def bind(self, *, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
1265
+
1266
+ class Toplevel(BaseWidget, Wm):
1267
+ # Toplevel and Tk have the same options because they correspond to the same
1268
+ # Tcl/Tk toplevel widget. For some reason, config and configure must be
1269
+ # copy/pasted here instead of aliasing as 'config = Tk.config'.
1270
+ def __init__(
1271
+ self,
1272
+ master: Misc | None = None,
1273
+ cnf: dict[str, Any] | None = {},
1274
+ *,
1275
+ background: str = ...,
1276
+ bd: float | str = 0,
1277
+ bg: str = ...,
1278
+ border: float | str = 0,
1279
+ borderwidth: float | str = 0,
1280
+ class_: str = "Toplevel",
1281
+ colormap: Literal["new", ""] | Misc = "",
1282
+ container: bool = False,
1283
+ cursor: _Cursor = "",
1284
+ height: float | str = 0,
1285
+ highlightbackground: str = ...,
1286
+ highlightcolor: str = ...,
1287
+ highlightthickness: float | str = 0,
1288
+ menu: Menu = ...,
1289
+ name: str = ...,
1290
+ padx: float | str = 0,
1291
+ pady: float | str = 0,
1292
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
1293
+ screen: str = "", # can't be changed after creating widget
1294
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = 0,
1295
+ use: int = ...,
1296
+ visual: str | tuple[str, int] = "",
1297
+ width: float | str = 0,
1298
+ ) -> None: ...
1299
+
1300
+ @overload
1301
+ def configure(
1302
+ self,
1303
+ cnf: dict[str, Any] | None = None,
1304
+ *,
1305
+ background: str = ...,
1306
+ bd: float | str = ...,
1307
+ bg: str = ...,
1308
+ border: float | str = ...,
1309
+ borderwidth: float | str = ...,
1310
+ cursor: _Cursor = ...,
1311
+ height: float | str = ...,
1312
+ highlightbackground: str = ...,
1313
+ highlightcolor: str = ...,
1314
+ highlightthickness: float | str = ...,
1315
+ menu: Menu = ...,
1316
+ padx: float | str = ...,
1317
+ pady: float | str = ...,
1318
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
1319
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
1320
+ width: float | str = ...,
1321
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
1322
+ @overload
1323
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
1324
+
1325
+ config = configure
1326
+
1327
+ class Button(Widget):
1328
+ def __init__(
1329
+ self,
1330
+ master: Misc | None = None,
1331
+ cnf: dict[str, Any] | None = {},
1332
+ *,
1333
+ activebackground: str = ...,
1334
+ activeforeground: str = ...,
1335
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = "center",
1336
+ background: str = ...,
1337
+ bd: float | str = ..., # same as borderwidth
1338
+ bg: str = ..., # same as background
1339
+ bitmap: str = "",
1340
+ border: float | str = ..., # same as borderwidth
1341
+ borderwidth: float | str = ...,
1342
+ command: str | Callable[[], Any] = "",
1343
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = "none",
1344
+ cursor: _Cursor = "",
1345
+ default: Literal["normal", "active", "disabled"] = "disabled",
1346
+ disabledforeground: str = ...,
1347
+ fg: str = ..., # same as foreground
1348
+ font: _FontDescription = "TkDefaultFont",
1349
+ foreground: str = ...,
1350
+ # width and height must be int for buttons containing just text, but
1351
+ # buttons with an image accept any screen units.
1352
+ height: float | str = 0,
1353
+ highlightbackground: str = ...,
1354
+ highlightcolor: str = ...,
1355
+ highlightthickness: float | str = 1,
1356
+ image: _Image | str = "",
1357
+ justify: Literal["left", "center", "right"] = "center",
1358
+ name: str = ...,
1359
+ overrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove", ""] = "",
1360
+ padx: float | str = ...,
1361
+ pady: float | str = ...,
1362
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
1363
+ repeatdelay: int = ...,
1364
+ repeatinterval: int = ...,
1365
+ state: Literal["normal", "active", "disabled"] = "normal",
1366
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
1367
+ text: float | str = "",
1368
+ # We allow the textvariable to be any Variable, not necessarily
1369
+ # StringVar. This is useful for e.g. a button that displays the value
1370
+ # of an IntVar.
1371
+ textvariable: Variable = ...,
1372
+ underline: int = -1,
1373
+ width: float | str = 0,
1374
+ wraplength: float | str = 0,
1375
+ ) -> None: ...
1376
+
1377
+ @overload
1378
+ def configure(
1379
+ self,
1380
+ cnf: dict[str, Any] | None = None,
1381
+ *,
1382
+ activebackground: str = ...,
1383
+ activeforeground: str = ...,
1384
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
1385
+ background: str = ...,
1386
+ bd: float | str = ...,
1387
+ bg: str = ...,
1388
+ bitmap: str = ...,
1389
+ border: float | str = ...,
1390
+ borderwidth: float | str = ...,
1391
+ command: str | Callable[[], Any] = ...,
1392
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
1393
+ cursor: _Cursor = ...,
1394
+ default: Literal["normal", "active", "disabled"] = ...,
1395
+ disabledforeground: str = ...,
1396
+ fg: str = ...,
1397
+ font: _FontDescription = ...,
1398
+ foreground: str = ...,
1399
+ height: float | str = ...,
1400
+ highlightbackground: str = ...,
1401
+ highlightcolor: str = ...,
1402
+ highlightthickness: float | str = ...,
1403
+ image: _Image | str = ...,
1404
+ justify: Literal["left", "center", "right"] = ...,
1405
+ overrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove", ""] = ...,
1406
+ padx: float | str = ...,
1407
+ pady: float | str = ...,
1408
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
1409
+ repeatdelay: int = ...,
1410
+ repeatinterval: int = ...,
1411
+ state: Literal["normal", "active", "disabled"] = ...,
1412
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
1413
+ text: float | str = ...,
1414
+ textvariable: Variable = ...,
1415
+ underline: int = ...,
1416
+ width: float | str = ...,
1417
+ wraplength: float | str = ...,
1418
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
1419
+ @overload
1420
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
1421
+
1422
+ config = configure
1423
+ def flash(self) -> None: ...
1424
+ def invoke(self) -> Any: ...
1425
+
1426
+ class Canvas(Widget, XView, YView):
1427
+ def __init__(
1428
+ self,
1429
+ master: Misc | None = None,
1430
+ cnf: dict[str, Any] | None = {},
1431
+ *,
1432
+ background: str = ...,
1433
+ bd: float | str = 0,
1434
+ bg: str = ...,
1435
+ border: float | str = 0,
1436
+ borderwidth: float | str = 0,
1437
+ closeenough: float = 1.0,
1438
+ confine: bool = True,
1439
+ cursor: _Cursor = "",
1440
+ height: float | str = ..., # see COORDINATES in canvas manual page
1441
+ highlightbackground: str = ...,
1442
+ highlightcolor: str = ...,
1443
+ highlightthickness: float | str = ...,
1444
+ insertbackground: str = ...,
1445
+ insertborderwidth: float | str = 0,
1446
+ insertofftime: int = 300,
1447
+ insertontime: int = 600,
1448
+ insertwidth: float | str = 2,
1449
+ name: str = ...,
1450
+ offset=..., # undocumented
1451
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
1452
+ # Setting scrollregion to None doesn't reset it back to empty,
1453
+ # but setting it to () does.
1454
+ scrollregion: tuple[float | str, float | str, float | str, float | str] | tuple[()] = (),
1455
+ selectbackground: str = ...,
1456
+ selectborderwidth: float | str = 1,
1457
+ selectforeground: str = ...,
1458
+ # man page says that state can be 'hidden', but it can't
1459
+ state: Literal["normal", "disabled"] = "normal",
1460
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
1461
+ width: float | str = ...,
1462
+ xscrollcommand: str | Callable[[float, float], object] = "",
1463
+ xscrollincrement: float | str = 0,
1464
+ yscrollcommand: str | Callable[[float, float], object] = "",
1465
+ yscrollincrement: float | str = 0,
1466
+ ) -> None: ...
1467
+
1468
+ @overload
1469
+ def configure(
1470
+ self,
1471
+ cnf: dict[str, Any] | None = None,
1472
+ *,
1473
+ background: str = ...,
1474
+ bd: float | str = ...,
1475
+ bg: str = ...,
1476
+ border: float | str = ...,
1477
+ borderwidth: float | str = ...,
1478
+ closeenough: float = ...,
1479
+ confine: bool = ...,
1480
+ cursor: _Cursor = ...,
1481
+ height: float | str = ...,
1482
+ highlightbackground: str = ...,
1483
+ highlightcolor: str = ...,
1484
+ highlightthickness: float | str = ...,
1485
+ insertbackground: str = ...,
1486
+ insertborderwidth: float | str = ...,
1487
+ insertofftime: int = ...,
1488
+ insertontime: int = ...,
1489
+ insertwidth: float | str = ...,
1490
+ offset=..., # undocumented
1491
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
1492
+ scrollregion: tuple[float | str, float | str, float | str, float | str] | tuple[()] = ...,
1493
+ selectbackground: str = ...,
1494
+ selectborderwidth: float | str = ...,
1495
+ selectforeground: str = ...,
1496
+ state: Literal["normal", "disabled"] = ...,
1497
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
1498
+ width: float | str = ...,
1499
+ xscrollcommand: str | Callable[[float, float], object] = ...,
1500
+ xscrollincrement: float | str = ...,
1501
+ yscrollcommand: str | Callable[[float, float], object] = ...,
1502
+ yscrollincrement: float | str = ...,
1503
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
1504
+ @overload
1505
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
1506
+
1507
+ config = configure
1508
+ def addtag(self, *args): ... # internal method
1509
+ def addtag_above(self, newtag: str, tagOrId: str | int) -> None: ...
1510
+ def addtag_all(self, newtag: str) -> None: ...
1511
+ def addtag_below(self, newtag: str, tagOrId: str | int) -> None: ...
1512
+ def addtag_closest(
1513
+ self, newtag: str, x: float | str, y: float | str, halo: float | str | None = None, start: str | int | None = None
1514
+ ) -> None: ...
1515
+ def addtag_enclosed(self, newtag: str, x1: float | str, y1: float | str, x2: float | str, y2: float | str) -> None: ...
1516
+ def addtag_overlapping(self, newtag: str, x1: float | str, y1: float | str, x2: float | str, y2: float | str) -> None: ...
1517
+ def addtag_withtag(self, newtag: str, tagOrId: str | int) -> None: ...
1518
+ def find(self, *args): ... # internal method
1519
+ def find_above(self, tagOrId: str | int) -> tuple[int, ...]: ...
1520
+ def find_all(self) -> tuple[int, ...]: ...
1521
+ def find_below(self, tagOrId: str | int) -> tuple[int, ...]: ...
1522
+ def find_closest(
1523
+ self, x: float | str, y: float | str, halo: float | str | None = None, start: str | int | None = None
1524
+ ) -> tuple[int, ...]: ...
1525
+ def find_enclosed(self, x1: float | str, y1: float | str, x2: float | str, y2: float | str) -> tuple[int, ...]: ...
1526
+ def find_overlapping(self, x1: float | str, y1: float | str, x2: float | str, y2: float) -> tuple[int, ...]: ...
1527
+ def find_withtag(self, tagOrId: str | int) -> tuple[int, ...]: ...
1528
+ # Incompatible with Misc.bbox(), tkinter violates LSP
1529
+ def bbox(self, *args: str | int) -> tuple[int, int, int, int]: ... # type: ignore[override]
1530
+
1531
+ @overload
1532
+ def tag_bind(
1533
+ self,
1534
+ tagOrId: str | int,
1535
+ sequence: str | None = None,
1536
+ func: Callable[[Event[Canvas]], object] | None = None,
1537
+ add: Literal["", "+"] | bool | None = None,
1538
+ ) -> str: ...
1539
+ @overload
1540
+ def tag_bind(
1541
+ self, tagOrId: str | int, sequence: str | None, func: str, add: Literal["", "+"] | bool | None = None
1542
+ ) -> None: ...
1543
+ @overload
1544
+ def tag_bind(self, tagOrId: str | int, *, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
1545
+
1546
+ def tag_unbind(self, tagOrId: str | int, sequence: str, funcid: str | None = None) -> None: ...
1547
+ def canvasx(self, screenx: float | str, gridspacing: float | str | None = None) -> float: ...
1548
+ def canvasy(self, screeny: float | str, gridspacing: float | str | None = None) -> float: ...
1549
+
1550
+ @overload
1551
+ def coords(self, tagOrId: str | int, /) -> list[float]: ...
1552
+ @overload
1553
+ def coords(self, tagOrId: str | int, args: list[int] | list[float] | tuple[float, ...], /) -> None: ...
1554
+ @overload
1555
+ def coords(self, tagOrId: str | int, x1: float, y1: float, /, *args: float) -> None: ...
1556
+
1557
+ # create_foo() methods accept coords as a list or tuple, or as separate arguments.
1558
+ # Lists and tuples can be flat as in [1, 2, 3, 4], or nested as in [(1, 2), (3, 4)].
1559
+ # Keyword arguments should be the same in all overloads of each method.
1560
+ def create_arc(self, *args, **kw) -> int: ...
1561
+ def create_bitmap(self, *args, **kw) -> int: ...
1562
+ def create_image(self, *args, **kw) -> int: ...
1563
+
1564
+ @overload
1565
+ def create_line(
1566
+ self,
1567
+ x0: float,
1568
+ y0: float,
1569
+ x1: float,
1570
+ y1: float,
1571
+ /,
1572
+ *,
1573
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1574
+ activefill: str = ...,
1575
+ activestipple: str = ...,
1576
+ activewidth: float | str = ...,
1577
+ arrow: Literal["first", "last", "both"] = ...,
1578
+ arrowshape: tuple[float, float, float] = ...,
1579
+ capstyle: Literal["round", "projecting", "butt"] = ...,
1580
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1581
+ dashoffset: float | str = ...,
1582
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1583
+ disabledfill: str = ...,
1584
+ disabledstipple: str = ...,
1585
+ disabledwidth: float | str = ...,
1586
+ fill: str = ...,
1587
+ joinstyle: Literal["round", "bevel", "miter"] = ...,
1588
+ offset: float | str = ...,
1589
+ smooth: bool = ...,
1590
+ splinesteps: float = ...,
1591
+ state: Literal["normal", "hidden", "disabled"] = ...,
1592
+ stipple: str = ...,
1593
+ tags: str | list[str] | tuple[str, ...] = ...,
1594
+ width: float | str = ...,
1595
+ ) -> int: ...
1596
+ @overload
1597
+ def create_line(
1598
+ self,
1599
+ xy_pair_0: tuple[float, float],
1600
+ xy_pair_1: tuple[float, float],
1601
+ /,
1602
+ *,
1603
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1604
+ activefill: str = ...,
1605
+ activestipple: str = ...,
1606
+ activewidth: float | str = ...,
1607
+ arrow: Literal["first", "last", "both"] = ...,
1608
+ arrowshape: tuple[float, float, float] = ...,
1609
+ capstyle: Literal["round", "projecting", "butt"] = ...,
1610
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1611
+ dashoffset: float | str = ...,
1612
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1613
+ disabledfill: str = ...,
1614
+ disabledstipple: str = ...,
1615
+ disabledwidth: float | str = ...,
1616
+ fill: str = ...,
1617
+ joinstyle: Literal["round", "bevel", "miter"] = ...,
1618
+ offset: float | str = ...,
1619
+ smooth: bool = ...,
1620
+ splinesteps: float = ...,
1621
+ state: Literal["normal", "hidden", "disabled"] = ...,
1622
+ stipple: str = ...,
1623
+ tags: str | list[str] | tuple[str, ...] = ...,
1624
+ width: float | str = ...,
1625
+ ) -> int: ...
1626
+ @overload
1627
+ def create_line(
1628
+ self,
1629
+ coords: (
1630
+ tuple[float, float, float, float]
1631
+ | tuple[tuple[float, float], tuple[float, float]]
1632
+ | list[int]
1633
+ | list[float]
1634
+ | list[tuple[int, int]]
1635
+ | list[tuple[float, float]]
1636
+ ),
1637
+ /,
1638
+ *,
1639
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1640
+ activefill: str = ...,
1641
+ activestipple: str = ...,
1642
+ activewidth: float | str = ...,
1643
+ arrow: Literal["first", "last", "both"] = ...,
1644
+ arrowshape: tuple[float, float, float] = ...,
1645
+ capstyle: Literal["round", "projecting", "butt"] = ...,
1646
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1647
+ dashoffset: float | str = ...,
1648
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1649
+ disabledfill: str = ...,
1650
+ disabledstipple: str = ...,
1651
+ disabledwidth: float | str = ...,
1652
+ fill: str = ...,
1653
+ joinstyle: Literal["round", "bevel", "miter"] = ...,
1654
+ offset: float | str = ...,
1655
+ smooth: bool = ...,
1656
+ splinesteps: float = ...,
1657
+ state: Literal["normal", "hidden", "disabled"] = ...,
1658
+ stipple: str = ...,
1659
+ tags: str | list[str] | tuple[str, ...] = ...,
1660
+ width: float | str = ...,
1661
+ ) -> int: ...
1662
+
1663
+ @overload
1664
+ def create_oval(
1665
+ self,
1666
+ x0: float,
1667
+ y0: float,
1668
+ x1: float,
1669
+ y1: float,
1670
+ /,
1671
+ *,
1672
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1673
+ activefill: str = ...,
1674
+ activeoutline: str = ...,
1675
+ activeoutlinestipple: str = ...,
1676
+ activestipple: str = ...,
1677
+ activewidth: float | str = ...,
1678
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1679
+ dashoffset: float | str = ...,
1680
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1681
+ disabledfill: str = ...,
1682
+ disabledoutline: str = ...,
1683
+ disabledoutlinestipple: str = ...,
1684
+ disabledstipple: str = ...,
1685
+ disabledwidth: float | str = ...,
1686
+ fill: str = ...,
1687
+ offset: float | str = ...,
1688
+ outline: str = ...,
1689
+ outlineoffset: float | str = ...,
1690
+ outlinestipple: str = ...,
1691
+ state: Literal["normal", "hidden", "disabled"] = ...,
1692
+ stipple: str = ...,
1693
+ tags: str | list[str] | tuple[str, ...] = ...,
1694
+ width: float | str = ...,
1695
+ ) -> int: ...
1696
+ @overload
1697
+ def create_oval(
1698
+ self,
1699
+ xy_pair_0: tuple[float, float],
1700
+ xy_pair_1: tuple[float, float],
1701
+ /,
1702
+ *,
1703
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1704
+ activefill: str = ...,
1705
+ activeoutline: str = ...,
1706
+ activeoutlinestipple: str = ...,
1707
+ activestipple: str = ...,
1708
+ activewidth: float | str = ...,
1709
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1710
+ dashoffset: float | str = ...,
1711
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1712
+ disabledfill: str = ...,
1713
+ disabledoutline: str = ...,
1714
+ disabledoutlinestipple: str = ...,
1715
+ disabledstipple: str = ...,
1716
+ disabledwidth: float | str = ...,
1717
+ fill: str = ...,
1718
+ offset: float | str = ...,
1719
+ outline: str = ...,
1720
+ outlineoffset: float | str = ...,
1721
+ outlinestipple: str = ...,
1722
+ state: Literal["normal", "hidden", "disabled"] = ...,
1723
+ stipple: str = ...,
1724
+ tags: str | list[str] | tuple[str, ...] = ...,
1725
+ width: float | str = ...,
1726
+ ) -> int: ...
1727
+ @overload
1728
+ def create_oval(
1729
+ self,
1730
+ coords: (
1731
+ tuple[float, float, float, float]
1732
+ | tuple[tuple[float, float], tuple[float, float]]
1733
+ | list[int]
1734
+ | list[float]
1735
+ | list[tuple[int, int]]
1736
+ | list[tuple[float, float]]
1737
+ ),
1738
+ /,
1739
+ *,
1740
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1741
+ activefill: str = ...,
1742
+ activeoutline: str = ...,
1743
+ activeoutlinestipple: str = ...,
1744
+ activestipple: str = ...,
1745
+ activewidth: float | str = ...,
1746
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1747
+ dashoffset: float | str = ...,
1748
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1749
+ disabledfill: str = ...,
1750
+ disabledoutline: str = ...,
1751
+ disabledoutlinestipple: str = ...,
1752
+ disabledstipple: str = ...,
1753
+ disabledwidth: float | str = ...,
1754
+ fill: str = ...,
1755
+ offset: float | str = ...,
1756
+ outline: str = ...,
1757
+ outlineoffset: float | str = ...,
1758
+ outlinestipple: str = ...,
1759
+ state: Literal["normal", "hidden", "disabled"] = ...,
1760
+ stipple: str = ...,
1761
+ tags: str | list[str] | tuple[str, ...] = ...,
1762
+ width: float | str = ...,
1763
+ ) -> int: ...
1764
+
1765
+ @overload
1766
+ def create_polygon(
1767
+ self,
1768
+ x0: float,
1769
+ y0: float,
1770
+ x1: float,
1771
+ y1: float,
1772
+ /,
1773
+ *xy_pairs: float,
1774
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1775
+ activefill: str = ...,
1776
+ activeoutline: str = ...,
1777
+ activeoutlinestipple: str = ...,
1778
+ activestipple: str = ...,
1779
+ activewidth: float | str = ...,
1780
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1781
+ dashoffset: float | str = ...,
1782
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1783
+ disabledfill: str = ...,
1784
+ disabledoutline: str = ...,
1785
+ disabledoutlinestipple: str = ...,
1786
+ disabledstipple: str = ...,
1787
+ disabledwidth: float | str = ...,
1788
+ fill: str = ...,
1789
+ joinstyle: Literal["round", "bevel", "miter"] = ...,
1790
+ offset: float | str = ...,
1791
+ outline: str = ...,
1792
+ outlineoffset: float | str = ...,
1793
+ outlinestipple: str = ...,
1794
+ smooth: bool = ...,
1795
+ splinesteps: float = ...,
1796
+ state: Literal["normal", "hidden", "disabled"] = ...,
1797
+ stipple: str = ...,
1798
+ tags: str | list[str] | tuple[str, ...] = ...,
1799
+ width: float | str = ...,
1800
+ ) -> int: ...
1801
+ @overload
1802
+ def create_polygon(
1803
+ self,
1804
+ xy_pair_0: tuple[float, float],
1805
+ xy_pair_1: tuple[float, float],
1806
+ /,
1807
+ *xy_pairs: tuple[float, float],
1808
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1809
+ activefill: str = ...,
1810
+ activeoutline: str = ...,
1811
+ activeoutlinestipple: str = ...,
1812
+ activestipple: str = ...,
1813
+ activewidth: float | str = ...,
1814
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1815
+ dashoffset: float | str = ...,
1816
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1817
+ disabledfill: str = ...,
1818
+ disabledoutline: str = ...,
1819
+ disabledoutlinestipple: str = ...,
1820
+ disabledstipple: str = ...,
1821
+ disabledwidth: float | str = ...,
1822
+ fill: str = ...,
1823
+ joinstyle: Literal["round", "bevel", "miter"] = ...,
1824
+ offset: float | str = ...,
1825
+ outline: str = ...,
1826
+ outlineoffset: float | str = ...,
1827
+ outlinestipple: str = ...,
1828
+ smooth: bool = ...,
1829
+ splinesteps: float = ...,
1830
+ state: Literal["normal", "hidden", "disabled"] = ...,
1831
+ stipple: str = ...,
1832
+ tags: str | list[str] | tuple[str, ...] = ...,
1833
+ width: float | str = ...,
1834
+ ) -> int: ...
1835
+ @overload
1836
+ def create_polygon(
1837
+ self,
1838
+ coords: (
1839
+ tuple[float, ...]
1840
+ | tuple[tuple[float, float], ...]
1841
+ | list[int]
1842
+ | list[float]
1843
+ | list[tuple[int, int]]
1844
+ | list[tuple[float, float]]
1845
+ ),
1846
+ /,
1847
+ *,
1848
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1849
+ activefill: str = ...,
1850
+ activeoutline: str = ...,
1851
+ activeoutlinestipple: str = ...,
1852
+ activestipple: str = ...,
1853
+ activewidth: float | str = ...,
1854
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1855
+ dashoffset: float | str = ...,
1856
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1857
+ disabledfill: str = ...,
1858
+ disabledoutline: str = ...,
1859
+ disabledoutlinestipple: str = ...,
1860
+ disabledstipple: str = ...,
1861
+ disabledwidth: float | str = ...,
1862
+ fill: str = ...,
1863
+ joinstyle: Literal["round", "bevel", "miter"] = ...,
1864
+ offset: float | str = ...,
1865
+ outline: str = ...,
1866
+ outlineoffset: float | str = ...,
1867
+ outlinestipple: str = ...,
1868
+ smooth: bool = ...,
1869
+ splinesteps: float = ...,
1870
+ state: Literal["normal", "hidden", "disabled"] = ...,
1871
+ stipple: str = ...,
1872
+ tags: str | list[str] | tuple[str, ...] = ...,
1873
+ width: float | str = ...,
1874
+ ) -> int: ...
1875
+
1876
+ @overload
1877
+ def create_rectangle(
1878
+ self,
1879
+ x0: float,
1880
+ y0: float,
1881
+ x1: float,
1882
+ y1: float,
1883
+ /,
1884
+ *,
1885
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1886
+ activefill: str = ...,
1887
+ activeoutline: str = ...,
1888
+ activeoutlinestipple: str = ...,
1889
+ activestipple: str = ...,
1890
+ activewidth: float | str = ...,
1891
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1892
+ dashoffset: float | str = ...,
1893
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1894
+ disabledfill: str = ...,
1895
+ disabledoutline: str = ...,
1896
+ disabledoutlinestipple: str = ...,
1897
+ disabledstipple: str = ...,
1898
+ disabledwidth: float | str = ...,
1899
+ fill: str = ...,
1900
+ offset: float | str = ...,
1901
+ outline: str = ...,
1902
+ outlineoffset: float | str = ...,
1903
+ outlinestipple: str = ...,
1904
+ state: Literal["normal", "hidden", "disabled"] = ...,
1905
+ stipple: str = ...,
1906
+ tags: str | list[str] | tuple[str, ...] = ...,
1907
+ width: float | str = ...,
1908
+ ) -> int: ...
1909
+ @overload
1910
+ def create_rectangle(
1911
+ self,
1912
+ xy_pair_0: tuple[float, float],
1913
+ xy_pair_1: tuple[float, float],
1914
+ /,
1915
+ *,
1916
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1917
+ activefill: str = ...,
1918
+ activeoutline: str = ...,
1919
+ activeoutlinestipple: str = ...,
1920
+ activestipple: str = ...,
1921
+ activewidth: float | str = ...,
1922
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1923
+ dashoffset: float | str = ...,
1924
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1925
+ disabledfill: str = ...,
1926
+ disabledoutline: str = ...,
1927
+ disabledoutlinestipple: str = ...,
1928
+ disabledstipple: str = ...,
1929
+ disabledwidth: float | str = ...,
1930
+ fill: str = ...,
1931
+ offset: float | str = ...,
1932
+ outline: str = ...,
1933
+ outlineoffset: float | str = ...,
1934
+ outlinestipple: str = ...,
1935
+ state: Literal["normal", "hidden", "disabled"] = ...,
1936
+ stipple: str = ...,
1937
+ tags: str | list[str] | tuple[str, ...] = ...,
1938
+ width: float | str = ...,
1939
+ ) -> int: ...
1940
+ @overload
1941
+ def create_rectangle(
1942
+ self,
1943
+ coords: (
1944
+ tuple[float, float, float, float]
1945
+ | tuple[tuple[float, float], tuple[float, float]]
1946
+ | list[int]
1947
+ | list[float]
1948
+ | list[tuple[int, int]]
1949
+ | list[tuple[float, float]]
1950
+ ),
1951
+ /,
1952
+ *,
1953
+ activedash: str | int | list[int] | tuple[int, ...] = ...,
1954
+ activefill: str = ...,
1955
+ activeoutline: str = ...,
1956
+ activeoutlinestipple: str = ...,
1957
+ activestipple: str = ...,
1958
+ activewidth: float | str = ...,
1959
+ dash: str | int | list[int] | tuple[int, ...] = ...,
1960
+ dashoffset: float | str = ...,
1961
+ disableddash: str | int | list[int] | tuple[int, ...] = ...,
1962
+ disabledfill: str = ...,
1963
+ disabledoutline: str = ...,
1964
+ disabledoutlinestipple: str = ...,
1965
+ disabledstipple: str = ...,
1966
+ disabledwidth: float | str = ...,
1967
+ fill: str = ...,
1968
+ offset: float | str = ...,
1969
+ outline: str = ...,
1970
+ outlineoffset: float | str = ...,
1971
+ outlinestipple: str = ...,
1972
+ state: Literal["normal", "hidden", "disabled"] = ...,
1973
+ stipple: str = ...,
1974
+ tags: str | list[str] | tuple[str, ...] = ...,
1975
+ width: float | str = ...,
1976
+ ) -> int: ...
1977
+
1978
+ @overload
1979
+ def create_text(
1980
+ self,
1981
+ x: float,
1982
+ y: float,
1983
+ /,
1984
+ *,
1985
+ activefill: str = ...,
1986
+ activestipple: str = ...,
1987
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
1988
+ angle: float | str = ...,
1989
+ disabledfill: str = ...,
1990
+ disabledstipple: str = ...,
1991
+ fill: str = ...,
1992
+ font: _FontDescription = ...,
1993
+ justify: Literal["left", "center", "right"] = ...,
1994
+ offset: float | str = ...,
1995
+ state: Literal["normal", "hidden", "disabled"] = ...,
1996
+ stipple: str = ...,
1997
+ tags: str | list[str] | tuple[str, ...] = ...,
1998
+ text: float | str = ...,
1999
+ width: float | str = ...,
2000
+ ) -> int: ...
2001
+ @overload
2002
+ def create_text(
2003
+ self,
2004
+ coords: tuple[float, float] | list[int] | list[float],
2005
+ /,
2006
+ *,
2007
+ activefill: str = ...,
2008
+ activestipple: str = ...,
2009
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
2010
+ angle: float | str = ...,
2011
+ disabledfill: str = ...,
2012
+ disabledstipple: str = ...,
2013
+ fill: str = ...,
2014
+ font: _FontDescription = ...,
2015
+ justify: Literal["left", "center", "right"] = ...,
2016
+ offset: float | str = ...,
2017
+ state: Literal["normal", "hidden", "disabled"] = ...,
2018
+ stipple: str = ...,
2019
+ tags: str | list[str] | tuple[str, ...] = ...,
2020
+ text: float | str = ...,
2021
+ width: float | str = ...,
2022
+ ) -> int: ...
2023
+
2024
+ @overload
2025
+ def create_window(
2026
+ self,
2027
+ x: float,
2028
+ y: float,
2029
+ /,
2030
+ *,
2031
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
2032
+ height: float | str = ...,
2033
+ state: Literal["normal", "hidden", "disabled"] = ...,
2034
+ tags: str | list[str] | tuple[str, ...] = ...,
2035
+ width: float | str = ...,
2036
+ window: Widget = ...,
2037
+ ) -> int: ...
2038
+ @overload
2039
+ def create_window(
2040
+ self,
2041
+ coords: tuple[float, float] | list[int] | list[float],
2042
+ /,
2043
+ *,
2044
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
2045
+ height: float | str = ...,
2046
+ state: Literal["normal", "hidden", "disabled"] = ...,
2047
+ tags: str | list[str] | tuple[str, ...] = ...,
2048
+ width: float | str = ...,
2049
+ window: Widget = ...,
2050
+ ) -> int: ...
2051
+
2052
+ def dchars(self, *args) -> None: ...
2053
+ def delete(self, *tagsOrCanvasIds: str | int) -> None: ...
2054
+
2055
+ @overload
2056
+ def dtag(self, tag: str, tag_to_delete: str | None = ..., /) -> None: ...
2057
+ @overload
2058
+ def dtag(self, id: int, tag_to_delete: str, /) -> None: ...
2059
+
2060
+ def focus(self, *args): ...
2061
+ def gettags(self, tagOrId: str | int, /) -> tuple[str, ...]: ...
2062
+ def icursor(self, *args) -> None: ...
2063
+ def index(self, *args): ...
2064
+ def insert(self, *args) -> None: ...
2065
+ def itemcget(self, tagOrId, option): ...
2066
+ # itemconfigure kwargs depend on item type, which is not known when type checking
2067
+ def itemconfigure(
2068
+ self, tagOrId: str | int, cnf: dict[str, Any] | None = None, **kw: Any
2069
+ ) -> dict[str, tuple[str, str, str, str, str]] | None: ...
2070
+ itemconfig = itemconfigure
2071
+ def move(self, *args) -> None: ...
2072
+ def moveto(self, tagOrId: str | int, x: Literal[""] | float = "", y: Literal[""] | float = "") -> None: ...
2073
+ def postscript(self, cnf={}, **kw): ...
2074
+ # tkinter does:
2075
+ # lower = tag_lower
2076
+ # lift = tkraise = tag_raise
2077
+ #
2078
+ # But mypy doesn't like aliasing here (maybe because Misc defines the same names)
2079
+ def tag_lower(self, first: str | int, second: str | int | None = ..., /) -> None: ...
2080
+ def lower(self, first: str | int, second: str | int | None = ..., /) -> None: ... # type: ignore[override]
2081
+ def tag_raise(self, first: str | int, second: str | int | None = ..., /) -> None: ...
2082
+ def tkraise(self, first: str | int, second: str | int | None = ..., /) -> None: ... # type: ignore[override]
2083
+ def lift(self, first: str | int, second: str | int | None = ..., /) -> None: ... # type: ignore[override]
2084
+ def scale(self, tagOrId: str | int, xOrigin: float | str, yOrigin: float | str, xScale: float, yScale: float, /) -> None: ...
2085
+ def scan_mark(self, x, y) -> None: ...
2086
+ def scan_dragto(self, x, y, gain: int = 10) -> None: ...
2087
+ def select_adjust(self, tagOrId, index) -> None: ...
2088
+ def select_clear(self) -> None: ...
2089
+ def select_from(self, tagOrId, index) -> None: ...
2090
+ def select_item(self): ...
2091
+ def select_to(self, tagOrId, index) -> None: ...
2092
+ def type(self, tagOrId: str | int) -> int | None: ...
2093
+
2094
+ class Checkbutton(Widget):
2095
+ def __init__(
2096
+ self,
2097
+ master: Misc | None = None,
2098
+ cnf: dict[str, Any] | None = {},
2099
+ *,
2100
+ activebackground: str = ...,
2101
+ activeforeground: str = ...,
2102
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = "center",
2103
+ background: str = ...,
2104
+ bd: float | str = ...,
2105
+ bg: str = ...,
2106
+ bitmap: str = "",
2107
+ border: float | str = ...,
2108
+ borderwidth: float | str = ...,
2109
+ command: str | Callable[[], Any] = "",
2110
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = "none",
2111
+ cursor: _Cursor = "",
2112
+ disabledforeground: str = ...,
2113
+ fg: str = ...,
2114
+ font: _FontDescription = "TkDefaultFont",
2115
+ foreground: str = ...,
2116
+ height: float | str = 0,
2117
+ highlightbackground: str = ...,
2118
+ highlightcolor: str = ...,
2119
+ highlightthickness: float | str = 1,
2120
+ image: _Image | str = "",
2121
+ indicatoron: bool = True,
2122
+ justify: Literal["left", "center", "right"] = "center",
2123
+ name: str = ...,
2124
+ offrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2125
+ # The checkbutton puts a value to its variable when it's checked or
2126
+ # unchecked. We don't restrict the type of that value here, so
2127
+ # Any-typing is fine.
2128
+ #
2129
+ # I think Checkbutton shouldn't be generic, because then specifying
2130
+ # "any checkbutton regardless of what variable it uses" would be
2131
+ # difficult, and we might run into issues just like how list[float]
2132
+ # and list[int] are incompatible. Also, we would need a way to
2133
+ # specify "Checkbutton not associated with any variable", which is
2134
+ # done by setting variable to empty string (the default).
2135
+ offvalue: Any = 0,
2136
+ onvalue: Any = 1,
2137
+ overrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove", ""] = "",
2138
+ padx: float | str = 1,
2139
+ pady: float | str = 1,
2140
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
2141
+ selectcolor: str = ...,
2142
+ selectimage: _Image | str = "",
2143
+ state: Literal["normal", "active", "disabled"] = "normal",
2144
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
2145
+ text: float | str = "",
2146
+ textvariable: Variable = ...,
2147
+ tristateimage: _Image | str = "",
2148
+ tristatevalue: Any = "",
2149
+ underline: int = -1,
2150
+ variable: Variable | Literal[""] = ...,
2151
+ width: float | str = 0,
2152
+ wraplength: float | str = 0,
2153
+ ) -> None: ...
2154
+
2155
+ @overload
2156
+ def configure(
2157
+ self,
2158
+ cnf: dict[str, Any] | None = None,
2159
+ *,
2160
+ activebackground: str = ...,
2161
+ activeforeground: str = ...,
2162
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
2163
+ background: str = ...,
2164
+ bd: float | str = ...,
2165
+ bg: str = ...,
2166
+ bitmap: str = ...,
2167
+ border: float | str = ...,
2168
+ borderwidth: float | str = ...,
2169
+ command: str | Callable[[], Any] = ...,
2170
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2171
+ cursor: _Cursor = ...,
2172
+ disabledforeground: str = ...,
2173
+ fg: str = ...,
2174
+ font: _FontDescription = ...,
2175
+ foreground: str = ...,
2176
+ height: float | str = ...,
2177
+ highlightbackground: str = ...,
2178
+ highlightcolor: str = ...,
2179
+ highlightthickness: float | str = ...,
2180
+ image: _Image | str = ...,
2181
+ indicatoron: bool = ...,
2182
+ justify: Literal["left", "center", "right"] = ...,
2183
+ offrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2184
+ offvalue: Any = ...,
2185
+ onvalue: Any = ...,
2186
+ overrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove", ""] = ...,
2187
+ padx: float | str = ...,
2188
+ pady: float | str = ...,
2189
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2190
+ selectcolor: str = ...,
2191
+ selectimage: _Image | str = ...,
2192
+ state: Literal["normal", "active", "disabled"] = ...,
2193
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
2194
+ text: float | str = ...,
2195
+ textvariable: Variable = ...,
2196
+ tristateimage: _Image | str = ...,
2197
+ tristatevalue: Any = ...,
2198
+ underline: int = ...,
2199
+ variable: Variable | Literal[""] = ...,
2200
+ width: float | str = ...,
2201
+ wraplength: float | str = ...,
2202
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
2203
+ @overload
2204
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
2205
+
2206
+ config = configure
2207
+ def deselect(self) -> None: ...
2208
+ def flash(self) -> None: ...
2209
+ def invoke(self) -> Any: ...
2210
+ def select(self) -> None: ...
2211
+ def toggle(self) -> None: ...
2212
+
2213
+ class Entry(Widget, XView):
2214
+ def __init__(
2215
+ self,
2216
+ master: Misc | None = None,
2217
+ cnf: dict[str, Any] | None = {},
2218
+ *,
2219
+ background: str = ...,
2220
+ bd: float | str = ...,
2221
+ bg: str = ...,
2222
+ border: float | str = ...,
2223
+ borderwidth: float | str = ...,
2224
+ cursor: _Cursor = "xterm",
2225
+ disabledbackground: str = ...,
2226
+ disabledforeground: str = ...,
2227
+ exportselection: bool = True,
2228
+ fg: str = ...,
2229
+ font: _FontDescription = "TkTextFont",
2230
+ foreground: str = ...,
2231
+ highlightbackground: str = ...,
2232
+ highlightcolor: str = ...,
2233
+ highlightthickness: float | str = ...,
2234
+ insertbackground: str = ...,
2235
+ insertborderwidth: float | str = 0,
2236
+ insertofftime: int = 300,
2237
+ insertontime: int = 600,
2238
+ insertwidth: float | str = ...,
2239
+ invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], object] = "",
2240
+ invcmd: str | list[str] | tuple[str, ...] | Callable[[], object] = "", # same as invalidcommand
2241
+ justify: Literal["left", "center", "right"] = "left",
2242
+ name: str = ...,
2243
+ readonlybackground: str = ...,
2244
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "sunken",
2245
+ selectbackground: str = ...,
2246
+ selectborderwidth: float | str = ...,
2247
+ selectforeground: str = ...,
2248
+ show: str = "",
2249
+ state: Literal["normal", "disabled", "readonly"] = "normal",
2250
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
2251
+ textvariable: Variable = ...,
2252
+ validate: Literal["none", "focus", "focusin", "focusout", "key", "all"] = "none",
2253
+ validatecommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = "",
2254
+ vcmd: str | list[str] | tuple[str, ...] | Callable[[], bool] = "", # same as validatecommand
2255
+ width: int = 20,
2256
+ xscrollcommand: str | Callable[[float, float], object] = "",
2257
+ ) -> None: ...
2258
+
2259
+ @overload
2260
+ def configure(
2261
+ self,
2262
+ cnf: dict[str, Any] | None = None,
2263
+ *,
2264
+ background: str = ...,
2265
+ bd: float | str = ...,
2266
+ bg: str = ...,
2267
+ border: float | str = ...,
2268
+ borderwidth: float | str = ...,
2269
+ cursor: _Cursor = ...,
2270
+ disabledbackground: str = ...,
2271
+ disabledforeground: str = ...,
2272
+ exportselection: bool = ...,
2273
+ fg: str = ...,
2274
+ font: _FontDescription = ...,
2275
+ foreground: str = ...,
2276
+ highlightbackground: str = ...,
2277
+ highlightcolor: str = ...,
2278
+ highlightthickness: float | str = ...,
2279
+ insertbackground: str = ...,
2280
+ insertborderwidth: float | str = ...,
2281
+ insertofftime: int = ...,
2282
+ insertontime: int = ...,
2283
+ insertwidth: float | str = ...,
2284
+ invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], object] = ...,
2285
+ invcmd: str | list[str] | tuple[str, ...] | Callable[[], object] = ...,
2286
+ justify: Literal["left", "center", "right"] = ...,
2287
+ readonlybackground: str = ...,
2288
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2289
+ selectbackground: str = ...,
2290
+ selectborderwidth: float | str = ...,
2291
+ selectforeground: str = ...,
2292
+ show: str = ...,
2293
+ state: Literal["normal", "disabled", "readonly"] = ...,
2294
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
2295
+ textvariable: Variable = ...,
2296
+ validate: Literal["none", "focus", "focusin", "focusout", "key", "all"] = ...,
2297
+ validatecommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
2298
+ vcmd: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
2299
+ width: int = ...,
2300
+ xscrollcommand: str | Callable[[float, float], object] = ...,
2301
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
2302
+ @overload
2303
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
2304
+
2305
+ config = configure
2306
+ def delete(self, first: str | int, last: str | int | None = None) -> None: ...
2307
+ def get(self) -> str: ...
2308
+ def icursor(self, index: str | int) -> None: ...
2309
+ def index(self, index: str | int) -> int: ...
2310
+ def insert(self, index: str | int, string: str) -> None: ...
2311
+ def scan_mark(self, x) -> None: ...
2312
+ def scan_dragto(self, x) -> None: ...
2313
+ def selection_adjust(self, index: str | int) -> None: ...
2314
+ def selection_clear(self) -> None: ... # type: ignore[override]
2315
+ def selection_from(self, index: str | int) -> None: ...
2316
+ def selection_present(self) -> bool: ...
2317
+ def selection_range(self, start: str | int, end: str | int) -> None: ...
2318
+ def selection_to(self, index: str | int) -> None: ...
2319
+ select_adjust = selection_adjust
2320
+ select_clear = selection_clear
2321
+ select_from = selection_from
2322
+ select_present = selection_present
2323
+ select_range = selection_range
2324
+ select_to = selection_to
2325
+
2326
+ class Frame(Widget):
2327
+ def __init__(
2328
+ self,
2329
+ master: Misc | None = None,
2330
+ cnf: dict[str, Any] | None = {},
2331
+ *,
2332
+ background: str = ...,
2333
+ bd: float | str = 0,
2334
+ bg: str = ...,
2335
+ border: float | str = 0,
2336
+ borderwidth: float | str = 0,
2337
+ class_: str = "Frame", # can't be changed with configure()
2338
+ colormap: Literal["new", ""] | Misc = "", # can't be changed with configure()
2339
+ container: bool = False, # can't be changed with configure()
2340
+ cursor: _Cursor = "",
2341
+ height: float | str = 0,
2342
+ highlightbackground: str = ...,
2343
+ highlightcolor: str = ...,
2344
+ highlightthickness: float | str = 0,
2345
+ name: str = ...,
2346
+ padx: float | str = 0,
2347
+ pady: float | str = 0,
2348
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
2349
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = 0,
2350
+ visual: str | tuple[str, int] = "", # can't be changed with configure()
2351
+ width: float | str = 0,
2352
+ ) -> None: ...
2353
+
2354
+ @overload
2355
+ def configure(
2356
+ self,
2357
+ cnf: dict[str, Any] | None = None,
2358
+ *,
2359
+ background: str = ...,
2360
+ bd: float | str = ...,
2361
+ bg: str = ...,
2362
+ border: float | str = ...,
2363
+ borderwidth: float | str = ...,
2364
+ cursor: _Cursor = ...,
2365
+ height: float | str = ...,
2366
+ highlightbackground: str = ...,
2367
+ highlightcolor: str = ...,
2368
+ highlightthickness: float | str = ...,
2369
+ padx: float | str = ...,
2370
+ pady: float | str = ...,
2371
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2372
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
2373
+ width: float | str = ...,
2374
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
2375
+ @overload
2376
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
2377
+
2378
+ config = configure
2379
+
2380
+ class Label(Widget):
2381
+ def __init__(
2382
+ self,
2383
+ master: Misc | None = None,
2384
+ cnf: dict[str, Any] | None = {},
2385
+ *,
2386
+ activebackground: str = ...,
2387
+ activeforeground: str = ...,
2388
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = "center",
2389
+ background: str = ...,
2390
+ bd: float | str = ...,
2391
+ bg: str = ...,
2392
+ bitmap: str = "",
2393
+ border: float | str = ...,
2394
+ borderwidth: float | str = ...,
2395
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = "none",
2396
+ cursor: _Cursor = "",
2397
+ disabledforeground: str = ...,
2398
+ fg: str = ...,
2399
+ font: _FontDescription = "TkDefaultFont",
2400
+ foreground: str = ...,
2401
+ height: float | str = 0,
2402
+ highlightbackground: str = ...,
2403
+ highlightcolor: str = ...,
2404
+ highlightthickness: float | str = 0,
2405
+ image: _Image | str = "",
2406
+ justify: Literal["left", "center", "right"] = "center",
2407
+ name: str = ...,
2408
+ padx: float | str = 1,
2409
+ pady: float | str = 1,
2410
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
2411
+ state: Literal["normal", "active", "disabled"] = "normal",
2412
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = 0,
2413
+ text: float | str = "",
2414
+ textvariable: Variable = ...,
2415
+ underline: int = -1,
2416
+ width: float | str = 0,
2417
+ wraplength: float | str = 0,
2418
+ ) -> None: ...
2419
+
2420
+ @overload
2421
+ def configure(
2422
+ self,
2423
+ cnf: dict[str, Any] | None = None,
2424
+ *,
2425
+ activebackground: str = ...,
2426
+ activeforeground: str = ...,
2427
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
2428
+ background: str = ...,
2429
+ bd: float | str = ...,
2430
+ bg: str = ...,
2431
+ bitmap: str = ...,
2432
+ border: float | str = ...,
2433
+ borderwidth: float | str = ...,
2434
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2435
+ cursor: _Cursor = ...,
2436
+ disabledforeground: str = ...,
2437
+ fg: str = ...,
2438
+ font: _FontDescription = ...,
2439
+ foreground: str = ...,
2440
+ height: float | str = ...,
2441
+ highlightbackground: str = ...,
2442
+ highlightcolor: str = ...,
2443
+ highlightthickness: float | str = ...,
2444
+ image: _Image | str = ...,
2445
+ justify: Literal["left", "center", "right"] = ...,
2446
+ padx: float | str = ...,
2447
+ pady: float | str = ...,
2448
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2449
+ state: Literal["normal", "active", "disabled"] = ...,
2450
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
2451
+ text: float | str = ...,
2452
+ textvariable: Variable = ...,
2453
+ underline: int = ...,
2454
+ width: float | str = ...,
2455
+ wraplength: float | str = ...,
2456
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
2457
+ @overload
2458
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
2459
+
2460
+ config = configure
2461
+
2462
+ class Listbox(Widget, XView, YView):
2463
+ def __init__(
2464
+ self,
2465
+ master: Misc | None = None,
2466
+ cnf: dict[str, Any] | None = {},
2467
+ *,
2468
+ activestyle: Literal["dotbox", "none", "underline"] = ...,
2469
+ background: str = ...,
2470
+ bd: float | str = 1,
2471
+ bg: str = ...,
2472
+ border: float | str = 1,
2473
+ borderwidth: float | str = 1,
2474
+ cursor: _Cursor = "",
2475
+ disabledforeground: str = ...,
2476
+ exportselection: bool | Literal[0, 1] = 1,
2477
+ fg: str = ...,
2478
+ font: _FontDescription = ...,
2479
+ foreground: str = ...,
2480
+ height: int = 10,
2481
+ highlightbackground: str = ...,
2482
+ highlightcolor: str = ...,
2483
+ highlightthickness: float | str = ...,
2484
+ justify: Literal["left", "center", "right"] = "left",
2485
+ # There's no tkinter.ListVar, but seems like bare tkinter.Variable
2486
+ # actually works for this:
2487
+ #
2488
+ # >>> import tkinter
2489
+ # >>> lb = tkinter.Listbox()
2490
+ # >>> var = lb['listvariable'] = tkinter.Variable()
2491
+ # >>> var.set(['foo', 'bar', 'baz'])
2492
+ # >>> lb.get(0, 'end')
2493
+ # ('foo', 'bar', 'baz')
2494
+ listvariable: Variable = ...,
2495
+ name: str = ...,
2496
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2497
+ selectbackground: str = ...,
2498
+ selectborderwidth: float | str = 0,
2499
+ selectforeground: str = ...,
2500
+ # from listbox man page: "The value of the [selectmode] option may be
2501
+ # arbitrary, but the default bindings expect it to be either single,
2502
+ # browse, multiple, or extended"
2503
+ #
2504
+ # I have never seen anyone setting this to something else than what
2505
+ # "the default bindings expect", but let's support it anyway.
2506
+ selectmode: str | Literal["single", "browse", "multiple", "extended"] = "browse", # noqa: Y051
2507
+ setgrid: bool = False,
2508
+ state: Literal["normal", "disabled"] = "normal",
2509
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
2510
+ width: int = 20,
2511
+ xscrollcommand: str | Callable[[float, float], object] = "",
2512
+ yscrollcommand: str | Callable[[float, float], object] = "",
2513
+ ) -> None: ...
2514
+
2515
+ @overload
2516
+ def configure(
2517
+ self,
2518
+ cnf: dict[str, Any] | None = None,
2519
+ *,
2520
+ activestyle: Literal["dotbox", "none", "underline"] = ...,
2521
+ background: str = ...,
2522
+ bd: float | str = ...,
2523
+ bg: str = ...,
2524
+ border: float | str = ...,
2525
+ borderwidth: float | str = ...,
2526
+ cursor: _Cursor = ...,
2527
+ disabledforeground: str = ...,
2528
+ exportselection: bool = ...,
2529
+ fg: str = ...,
2530
+ font: _FontDescription = ...,
2531
+ foreground: str = ...,
2532
+ height: int = ...,
2533
+ highlightbackground: str = ...,
2534
+ highlightcolor: str = ...,
2535
+ highlightthickness: float | str = ...,
2536
+ justify: Literal["left", "center", "right"] = ...,
2537
+ listvariable: Variable = ...,
2538
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2539
+ selectbackground: str = ...,
2540
+ selectborderwidth: float | str = ...,
2541
+ selectforeground: str = ...,
2542
+ selectmode: str | Literal["single", "browse", "multiple", "extended"] = ..., # noqa: Y051
2543
+ setgrid: bool = ...,
2544
+ state: Literal["normal", "disabled"] = ...,
2545
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
2546
+ width: int = ...,
2547
+ xscrollcommand: str | Callable[[float, float], object] = ...,
2548
+ yscrollcommand: str | Callable[[float, float], object] = ...,
2549
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
2550
+ @overload
2551
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
2552
+
2553
+ config = configure
2554
+ def activate(self, index: str | int) -> None: ...
2555
+ def bbox(self, index: str | int) -> tuple[int, int, int, int] | None: ... # type: ignore[override]
2556
+ def curselection(self): ...
2557
+ def delete(self, first: str | int, last: str | int | None = None) -> None: ...
2558
+ def get(self, first: str | int, last: str | int | None = None): ...
2559
+ def index(self, index: str | int) -> int: ...
2560
+ def insert(self, index: str | int, *elements: str | float) -> None: ...
2561
+ def nearest(self, y): ...
2562
+ def scan_mark(self, x, y) -> None: ...
2563
+ def scan_dragto(self, x, y) -> None: ...
2564
+ def see(self, index: str | int) -> None: ...
2565
+ def selection_anchor(self, index: str | int) -> None: ...
2566
+ select_anchor = selection_anchor
2567
+ def selection_clear(self, first: str | int, last: str | int | None = None) -> None: ... # type: ignore[override]
2568
+ select_clear = selection_clear
2569
+ def selection_includes(self, index: str | int): ...
2570
+ select_includes = selection_includes
2571
+ def selection_set(self, first: str | int, last: str | int | None = None) -> None: ...
2572
+ select_set = selection_set
2573
+ def size(self) -> int: ... # type: ignore[override]
2574
+ def itemcget(self, index: str | int, option): ...
2575
+ def itemconfigure(self, index: str | int, cnf=None, **kw): ...
2576
+ itemconfig = itemconfigure
2577
+
2578
+ class Menu(Widget):
2579
+ def __init__(
2580
+ self,
2581
+ master: Misc | None = None,
2582
+ cnf: dict[str, Any] | None = {},
2583
+ *,
2584
+ activebackground: str = ...,
2585
+ activeborderwidth: float | str = ...,
2586
+ activeforeground: str = ...,
2587
+ background: str = ...,
2588
+ bd: float | str = ...,
2589
+ bg: str = ...,
2590
+ border: float | str = ...,
2591
+ borderwidth: float | str = ...,
2592
+ cursor: _Cursor = "arrow",
2593
+ disabledforeground: str = ...,
2594
+ fg: str = ...,
2595
+ font: _FontDescription = ...,
2596
+ foreground: str = ...,
2597
+ name: str = ...,
2598
+ postcommand: Callable[[], object] | str = "",
2599
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2600
+ selectcolor: str = ...,
2601
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = 0,
2602
+ tearoff: bool | Literal[0, 1] = 1,
2603
+ # I guess tearoffcommand arguments are supposed to be widget objects,
2604
+ # but they are widget name strings. Use nametowidget() to handle the
2605
+ # arguments of tearoffcommand.
2606
+ tearoffcommand: Callable[[str, str], object] | str = "",
2607
+ title: str = "",
2608
+ type: Literal["menubar", "tearoff", "normal"] = "normal",
2609
+ ) -> None: ...
2610
+
2611
+ @overload
2612
+ def configure(
2613
+ self,
2614
+ cnf: dict[str, Any] | None = None,
2615
+ *,
2616
+ activebackground: str = ...,
2617
+ activeborderwidth: float | str = ...,
2618
+ activeforeground: str = ...,
2619
+ background: str = ...,
2620
+ bd: float | str = ...,
2621
+ bg: str = ...,
2622
+ border: float | str = ...,
2623
+ borderwidth: float | str = ...,
2624
+ cursor: _Cursor = ...,
2625
+ disabledforeground: str = ...,
2626
+ fg: str = ...,
2627
+ font: _FontDescription = ...,
2628
+ foreground: str = ...,
2629
+ postcommand: Callable[[], object] | str = ...,
2630
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2631
+ selectcolor: str = ...,
2632
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
2633
+ tearoff: bool = ...,
2634
+ tearoffcommand: Callable[[str, str], object] | str = ...,
2635
+ title: str = ...,
2636
+ type: Literal["menubar", "tearoff", "normal"] = ...,
2637
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
2638
+ @overload
2639
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
2640
+
2641
+ config = configure
2642
+ def tk_popup(self, x: int, y: int, entry: str | int = "") -> None: ...
2643
+ def activate(self, index: str | int) -> None: ...
2644
+ def add(self, itemType, cnf={}, **kw): ... # docstring says "Internal function."
2645
+ def insert(self, index, itemType, cnf={}, **kw): ... # docstring says "Internal function."
2646
+ def add_cascade(
2647
+ self,
2648
+ cnf: dict[str, Any] | None = {},
2649
+ *,
2650
+ accelerator: str = ...,
2651
+ activebackground: str = ...,
2652
+ activeforeground: str = ...,
2653
+ background: str = ...,
2654
+ bitmap: str = ...,
2655
+ columnbreak: int = ...,
2656
+ command: Callable[[], object] | str = ...,
2657
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2658
+ font: _FontDescription = ...,
2659
+ foreground: str = ...,
2660
+ hidemargin: bool = ...,
2661
+ image: _Image | str = ...,
2662
+ label: str = ...,
2663
+ menu: Menu = ...,
2664
+ state: Literal["normal", "active", "disabled"] = ...,
2665
+ underline: int = ...,
2666
+ ) -> None: ...
2667
+ def add_checkbutton(
2668
+ self,
2669
+ cnf: dict[str, Any] | None = {},
2670
+ *,
2671
+ accelerator: str = ...,
2672
+ activebackground: str = ...,
2673
+ activeforeground: str = ...,
2674
+ background: str = ...,
2675
+ bitmap: str = ...,
2676
+ columnbreak: int = ...,
2677
+ command: Callable[[], object] | str = ...,
2678
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2679
+ font: _FontDescription = ...,
2680
+ foreground: str = ...,
2681
+ hidemargin: bool = ...,
2682
+ image: _Image | str = ...,
2683
+ indicatoron: bool = ...,
2684
+ label: str = ...,
2685
+ offvalue: Any = ...,
2686
+ onvalue: Any = ...,
2687
+ selectcolor: str = ...,
2688
+ selectimage: _Image | str = ...,
2689
+ state: Literal["normal", "active", "disabled"] = ...,
2690
+ underline: int = ...,
2691
+ variable: Variable = ...,
2692
+ ) -> None: ...
2693
+ def add_command(
2694
+ self,
2695
+ cnf: dict[str, Any] | None = {},
2696
+ *,
2697
+ accelerator: str = ...,
2698
+ activebackground: str = ...,
2699
+ activeforeground: str = ...,
2700
+ background: str = ...,
2701
+ bitmap: str = ...,
2702
+ columnbreak: int = ...,
2703
+ command: Callable[[], object] | str = ...,
2704
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2705
+ font: _FontDescription = ...,
2706
+ foreground: str = ...,
2707
+ hidemargin: bool = ...,
2708
+ image: _Image | str = ...,
2709
+ label: str = ...,
2710
+ state: Literal["normal", "active", "disabled"] = ...,
2711
+ underline: int = ...,
2712
+ ) -> None: ...
2713
+ def add_radiobutton(
2714
+ self,
2715
+ cnf: dict[str, Any] | None = {},
2716
+ *,
2717
+ accelerator: str = ...,
2718
+ activebackground: str = ...,
2719
+ activeforeground: str = ...,
2720
+ background: str = ...,
2721
+ bitmap: str = ...,
2722
+ columnbreak: int = ...,
2723
+ command: Callable[[], object] | str = ...,
2724
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2725
+ font: _FontDescription = ...,
2726
+ foreground: str = ...,
2727
+ hidemargin: bool = ...,
2728
+ image: _Image | str = ...,
2729
+ indicatoron: bool = ...,
2730
+ label: str = ...,
2731
+ selectcolor: str = ...,
2732
+ selectimage: _Image | str = ...,
2733
+ state: Literal["normal", "active", "disabled"] = ...,
2734
+ underline: int = ...,
2735
+ value: Any = ...,
2736
+ variable: Variable = ...,
2737
+ ) -> None: ...
2738
+ def add_separator(self, cnf: dict[str, Any] | None = {}, *, background: str = ...) -> None: ...
2739
+ def insert_cascade(
2740
+ self,
2741
+ index: str | int,
2742
+ cnf: dict[str, Any] | None = {},
2743
+ *,
2744
+ accelerator: str = ...,
2745
+ activebackground: str = ...,
2746
+ activeforeground: str = ...,
2747
+ background: str = ...,
2748
+ bitmap: str = ...,
2749
+ columnbreak: int = ...,
2750
+ command: Callable[[], object] | str = ...,
2751
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2752
+ font: _FontDescription = ...,
2753
+ foreground: str = ...,
2754
+ hidemargin: bool = ...,
2755
+ image: _Image | str = ...,
2756
+ label: str = ...,
2757
+ menu: Menu = ...,
2758
+ state: Literal["normal", "active", "disabled"] = ...,
2759
+ underline: int = ...,
2760
+ ) -> None: ...
2761
+ def insert_checkbutton(
2762
+ self,
2763
+ index: str | int,
2764
+ cnf: dict[str, Any] | None = {},
2765
+ *,
2766
+ accelerator: str = ...,
2767
+ activebackground: str = ...,
2768
+ activeforeground: str = ...,
2769
+ background: str = ...,
2770
+ bitmap: str = ...,
2771
+ columnbreak: int = ...,
2772
+ command: Callable[[], object] | str = ...,
2773
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2774
+ font: _FontDescription = ...,
2775
+ foreground: str = ...,
2776
+ hidemargin: bool = ...,
2777
+ image: _Image | str = ...,
2778
+ indicatoron: bool = ...,
2779
+ label: str = ...,
2780
+ offvalue: Any = ...,
2781
+ onvalue: Any = ...,
2782
+ selectcolor: str = ...,
2783
+ selectimage: _Image | str = ...,
2784
+ state: Literal["normal", "active", "disabled"] = ...,
2785
+ underline: int = ...,
2786
+ variable: Variable = ...,
2787
+ ) -> None: ...
2788
+ def insert_command(
2789
+ self,
2790
+ index: str | int,
2791
+ cnf: dict[str, Any] | None = {},
2792
+ *,
2793
+ accelerator: str = ...,
2794
+ activebackground: str = ...,
2795
+ activeforeground: str = ...,
2796
+ background: str = ...,
2797
+ bitmap: str = ...,
2798
+ columnbreak: int = ...,
2799
+ command: Callable[[], object] | str = ...,
2800
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2801
+ font: _FontDescription = ...,
2802
+ foreground: str = ...,
2803
+ hidemargin: bool = ...,
2804
+ image: _Image | str = ...,
2805
+ label: str = ...,
2806
+ state: Literal["normal", "active", "disabled"] = ...,
2807
+ underline: int = ...,
2808
+ ) -> None: ...
2809
+ def insert_radiobutton(
2810
+ self,
2811
+ index: str | int,
2812
+ cnf: dict[str, Any] | None = {},
2813
+ *,
2814
+ accelerator: str = ...,
2815
+ activebackground: str = ...,
2816
+ activeforeground: str = ...,
2817
+ background: str = ...,
2818
+ bitmap: str = ...,
2819
+ columnbreak: int = ...,
2820
+ command: Callable[[], object] | str = ...,
2821
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2822
+ font: _FontDescription = ...,
2823
+ foreground: str = ...,
2824
+ hidemargin: bool = ...,
2825
+ image: _Image | str = ...,
2826
+ indicatoron: bool = ...,
2827
+ label: str = ...,
2828
+ selectcolor: str = ...,
2829
+ selectimage: _Image | str = ...,
2830
+ state: Literal["normal", "active", "disabled"] = ...,
2831
+ underline: int = ...,
2832
+ value: Any = ...,
2833
+ variable: Variable = ...,
2834
+ ) -> None: ...
2835
+ def insert_separator(self, index: str | int, cnf: dict[str, Any] | None = {}, *, background: str = ...) -> None: ...
2836
+ def delete(self, index1: str | int, index2: str | int | None = None) -> None: ...
2837
+ def entrycget(self, index: str | int, option: str) -> Any: ...
2838
+ def entryconfigure(
2839
+ self, index: str | int, cnf: dict[str, Any] | None = None, **kw: Any
2840
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
2841
+ entryconfig = entryconfigure
2842
+ def index(self, index: str | int) -> int | None: ...
2843
+ def invoke(self, index: str | int) -> Any: ...
2844
+ def post(self, x: int, y: int) -> None: ...
2845
+ def type(self, index: str | int) -> Literal["cascade", "checkbutton", "command", "radiobutton", "separator"]: ...
2846
+ def unpost(self) -> None: ...
2847
+ def xposition(self, index: str | int) -> int: ...
2848
+ def yposition(self, index: str | int) -> int: ...
2849
+
2850
+ class Menubutton(Widget):
2851
+ def __init__(
2852
+ self,
2853
+ master: Misc | None = None,
2854
+ cnf: dict[str, Any] | None = {},
2855
+ *,
2856
+ activebackground: str = ...,
2857
+ activeforeground: str = ...,
2858
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
2859
+ background: str = ...,
2860
+ bd: float | str = ...,
2861
+ bg: str = ...,
2862
+ bitmap: str = "",
2863
+ border: float | str = ...,
2864
+ borderwidth: float | str = ...,
2865
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = "none",
2866
+ cursor: _Cursor = "",
2867
+ direction: Literal["above", "below", "left", "right", "flush"] = "below",
2868
+ disabledforeground: str = ...,
2869
+ fg: str = ...,
2870
+ font: _FontDescription = "TkDefaultFont",
2871
+ foreground: str = ...,
2872
+ height: float | str = 0,
2873
+ highlightbackground: str = ...,
2874
+ highlightcolor: str = ...,
2875
+ highlightthickness: float | str = 0,
2876
+ image: _Image | str = "",
2877
+ indicatoron: bool = ...,
2878
+ justify: Literal["left", "center", "right"] = ...,
2879
+ menu: Menu = ...,
2880
+ name: str = ...,
2881
+ padx: float | str = ...,
2882
+ pady: float | str = ...,
2883
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
2884
+ state: Literal["normal", "active", "disabled"] = "normal",
2885
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = 0,
2886
+ text: float | str = "",
2887
+ textvariable: Variable = ...,
2888
+ underline: int = -1,
2889
+ width: float | str = 0,
2890
+ wraplength: float | str = 0,
2891
+ ) -> None: ...
2892
+
2893
+ @overload
2894
+ def configure(
2895
+ self,
2896
+ cnf: dict[str, Any] | None = None,
2897
+ *,
2898
+ activebackground: str = ...,
2899
+ activeforeground: str = ...,
2900
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
2901
+ background: str = ...,
2902
+ bd: float | str = ...,
2903
+ bg: str = ...,
2904
+ bitmap: str = ...,
2905
+ border: float | str = ...,
2906
+ borderwidth: float | str = ...,
2907
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
2908
+ cursor: _Cursor = ...,
2909
+ direction: Literal["above", "below", "left", "right", "flush"] = ...,
2910
+ disabledforeground: str = ...,
2911
+ fg: str = ...,
2912
+ font: _FontDescription = ...,
2913
+ foreground: str = ...,
2914
+ height: float | str = ...,
2915
+ highlightbackground: str = ...,
2916
+ highlightcolor: str = ...,
2917
+ highlightthickness: float | str = ...,
2918
+ image: _Image | str = ...,
2919
+ indicatoron: bool = ...,
2920
+ justify: Literal["left", "center", "right"] = ...,
2921
+ menu: Menu = ...,
2922
+ padx: float | str = ...,
2923
+ pady: float | str = ...,
2924
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2925
+ state: Literal["normal", "active", "disabled"] = ...,
2926
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
2927
+ text: float | str = ...,
2928
+ textvariable: Variable = ...,
2929
+ underline: int = ...,
2930
+ width: float | str = ...,
2931
+ wraplength: float | str = ...,
2932
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
2933
+ @overload
2934
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
2935
+
2936
+ config = configure
2937
+
2938
+ class Message(Widget):
2939
+ def __init__(
2940
+ self,
2941
+ master: Misc | None = None,
2942
+ cnf: dict[str, Any] | None = {},
2943
+ *,
2944
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = "center",
2945
+ aspect: int = 150,
2946
+ background: str = ...,
2947
+ bd: float | str = 1,
2948
+ bg: str = ...,
2949
+ border: float | str = 1,
2950
+ borderwidth: float | str = 1,
2951
+ cursor: _Cursor = "",
2952
+ fg: str = ...,
2953
+ font: _FontDescription = "TkDefaultFont",
2954
+ foreground: str = ...,
2955
+ highlightbackground: str = ...,
2956
+ highlightcolor: str = ...,
2957
+ highlightthickness: float | str = 0,
2958
+ justify: Literal["left", "center", "right"] = "left",
2959
+ name: str = ...,
2960
+ padx: float | str = ...,
2961
+ pady: float | str = ...,
2962
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
2963
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = 0,
2964
+ text: float | str = "",
2965
+ textvariable: Variable = ...,
2966
+ # there's width but no height
2967
+ width: float | str = 0,
2968
+ ) -> None: ...
2969
+
2970
+ @overload
2971
+ def configure(
2972
+ self,
2973
+ cnf: dict[str, Any] | None = None,
2974
+ *,
2975
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
2976
+ aspect: int = ...,
2977
+ background: str = ...,
2978
+ bd: float | str = ...,
2979
+ bg: str = ...,
2980
+ border: float | str = ...,
2981
+ borderwidth: float | str = ...,
2982
+ cursor: _Cursor = ...,
2983
+ fg: str = ...,
2984
+ font: _FontDescription = ...,
2985
+ foreground: str = ...,
2986
+ highlightbackground: str = ...,
2987
+ highlightcolor: str = ...,
2988
+ highlightthickness: float | str = ...,
2989
+ justify: Literal["left", "center", "right"] = ...,
2990
+ padx: float | str = ...,
2991
+ pady: float | str = ...,
2992
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
2993
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
2994
+ text: float | str = ...,
2995
+ textvariable: Variable = ...,
2996
+ width: float | str = ...,
2997
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
2998
+ @overload
2999
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
3000
+
3001
+ config = configure
3002
+
3003
+ class Radiobutton(Widget):
3004
+ def __init__(
3005
+ self,
3006
+ master: Misc | None = None,
3007
+ cnf: dict[str, Any] | None = {},
3008
+ *,
3009
+ activebackground: str = ...,
3010
+ activeforeground: str = ...,
3011
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = "center",
3012
+ background: str = ...,
3013
+ bd: float | str = ...,
3014
+ bg: str = ...,
3015
+ bitmap: str = "",
3016
+ border: float | str = ...,
3017
+ borderwidth: float | str = ...,
3018
+ command: str | Callable[[], Any] = "",
3019
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = "none",
3020
+ cursor: _Cursor = "",
3021
+ disabledforeground: str = ...,
3022
+ fg: str = ...,
3023
+ font: _FontDescription = "TkDefaultFont",
3024
+ foreground: str = ...,
3025
+ height: float | str = 0,
3026
+ highlightbackground: str = ...,
3027
+ highlightcolor: str = ...,
3028
+ highlightthickness: float | str = 1,
3029
+ image: _Image | str = "",
3030
+ indicatoron: bool = True,
3031
+ justify: Literal["left", "center", "right"] = "center",
3032
+ name: str = ...,
3033
+ offrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3034
+ overrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove", ""] = "",
3035
+ padx: float | str = 1,
3036
+ pady: float | str = 1,
3037
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
3038
+ selectcolor: str = ...,
3039
+ selectimage: _Image | str = "",
3040
+ state: Literal["normal", "active", "disabled"] = "normal",
3041
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
3042
+ text: float | str = "",
3043
+ textvariable: Variable = ...,
3044
+ tristateimage: _Image | str = "",
3045
+ tristatevalue: Any = "",
3046
+ underline: int = -1,
3047
+ value: Any = "",
3048
+ variable: Variable | Literal[""] = ...,
3049
+ width: float | str = 0,
3050
+ wraplength: float | str = 0,
3051
+ ) -> None: ...
3052
+
3053
+ @overload
3054
+ def configure(
3055
+ self,
3056
+ cnf: dict[str, Any] | None = None,
3057
+ *,
3058
+ activebackground: str = ...,
3059
+ activeforeground: str = ...,
3060
+ anchor: Literal["nw", "n", "ne", "w", "center", "e", "sw", "s", "se"] = ...,
3061
+ background: str = ...,
3062
+ bd: float | str = ...,
3063
+ bg: str = ...,
3064
+ bitmap: str = ...,
3065
+ border: float | str = ...,
3066
+ borderwidth: float | str = ...,
3067
+ command: str | Callable[[], Any] = ...,
3068
+ compound: Literal["top", "left", "center", "right", "bottom", "none"] = ...,
3069
+ cursor: _Cursor = ...,
3070
+ disabledforeground: str = ...,
3071
+ fg: str = ...,
3072
+ font: _FontDescription = ...,
3073
+ foreground: str = ...,
3074
+ height: float | str = ...,
3075
+ highlightbackground: str = ...,
3076
+ highlightcolor: str = ...,
3077
+ highlightthickness: float | str = ...,
3078
+ image: _Image | str = ...,
3079
+ indicatoron: bool = ...,
3080
+ justify: Literal["left", "center", "right"] = ...,
3081
+ offrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3082
+ overrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove", ""] = ...,
3083
+ padx: float | str = ...,
3084
+ pady: float | str = ...,
3085
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3086
+ selectcolor: str = ...,
3087
+ selectimage: _Image | str = ...,
3088
+ state: Literal["normal", "active", "disabled"] = ...,
3089
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
3090
+ text: float | str = ...,
3091
+ textvariable: Variable = ...,
3092
+ tristateimage: _Image | str = ...,
3093
+ tristatevalue: Any = ...,
3094
+ underline: int = ...,
3095
+ value: Any = ...,
3096
+ variable: Variable | Literal[""] = ...,
3097
+ width: float | str = ...,
3098
+ wraplength: float | str = ...,
3099
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
3100
+ @overload
3101
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
3102
+
3103
+ config = configure
3104
+ def deselect(self) -> None: ...
3105
+ def flash(self) -> None: ...
3106
+ def invoke(self) -> Any: ...
3107
+ def select(self) -> None: ...
3108
+
3109
+ class Scale(Widget):
3110
+ def __init__(
3111
+ self,
3112
+ master: Misc | None = None,
3113
+ cnf: dict[str, Any] | None = {},
3114
+ *,
3115
+ activebackground: str = ...,
3116
+ background: str = ...,
3117
+ bd: float | str = 1,
3118
+ bg: str = ...,
3119
+ bigincrement: float = 0.0,
3120
+ border: float | str = 1,
3121
+ borderwidth: float | str = 1,
3122
+ # don't know why the callback gets string instead of float
3123
+ command: str | Callable[[str], object] = "",
3124
+ cursor: _Cursor = "",
3125
+ digits: int = 0,
3126
+ fg: str = ...,
3127
+ font: _FontDescription = "TkDefaultFont",
3128
+ foreground: str = ...,
3129
+ from_: float = 0.0,
3130
+ highlightbackground: str = ...,
3131
+ highlightcolor: str = ...,
3132
+ highlightthickness: float | str = ...,
3133
+ label: str = "",
3134
+ length: float | str = 100,
3135
+ name: str = ...,
3136
+ orient: Literal["horizontal", "vertical"] = "vertical",
3137
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
3138
+ repeatdelay: int = 300,
3139
+ repeatinterval: int = 100,
3140
+ resolution: float = 1.0,
3141
+ showvalue: bool = True,
3142
+ sliderlength: float | str = 30,
3143
+ sliderrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "raised",
3144
+ state: Literal["normal", "active", "disabled"] = "normal",
3145
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
3146
+ tickinterval: float = 0.0,
3147
+ to: float = 100.0,
3148
+ troughcolor: str = ...,
3149
+ variable: IntVar | DoubleVar = ...,
3150
+ width: float | str = 15,
3151
+ ) -> None: ...
3152
+
3153
+ @overload
3154
+ def configure(
3155
+ self,
3156
+ cnf: dict[str, Any] | None = None,
3157
+ *,
3158
+ activebackground: str = ...,
3159
+ background: str = ...,
3160
+ bd: float | str = ...,
3161
+ bg: str = ...,
3162
+ bigincrement: float = ...,
3163
+ border: float | str = ...,
3164
+ borderwidth: float | str = ...,
3165
+ command: str | Callable[[str], object] = ...,
3166
+ cursor: _Cursor = ...,
3167
+ digits: int = ...,
3168
+ fg: str = ...,
3169
+ font: _FontDescription = ...,
3170
+ foreground: str = ...,
3171
+ from_: float = ...,
3172
+ highlightbackground: str = ...,
3173
+ highlightcolor: str = ...,
3174
+ highlightthickness: float | str = ...,
3175
+ label: str = ...,
3176
+ length: float | str = ...,
3177
+ orient: Literal["horizontal", "vertical"] = ...,
3178
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3179
+ repeatdelay: int = ...,
3180
+ repeatinterval: int = ...,
3181
+ resolution: float = ...,
3182
+ showvalue: bool = ...,
3183
+ sliderlength: float | str = ...,
3184
+ sliderrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3185
+ state: Literal["normal", "active", "disabled"] = ...,
3186
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
3187
+ tickinterval: float = ...,
3188
+ to: float = ...,
3189
+ troughcolor: str = ...,
3190
+ variable: IntVar | DoubleVar = ...,
3191
+ width: float | str = ...,
3192
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
3193
+ @overload
3194
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
3195
+
3196
+ config = configure
3197
+ def get(self) -> float: ...
3198
+ def set(self, value) -> None: ...
3199
+ def coords(self, value: float | None = None) -> tuple[int, int]: ...
3200
+ def identify(self, x, y) -> Literal["", "slider", "trough1", "trough2"]: ...
3201
+
3202
+ class Scrollbar(Widget):
3203
+ def __init__(
3204
+ self,
3205
+ master: Misc | None = None,
3206
+ cnf: dict[str, Any] | None = {},
3207
+ *,
3208
+ activebackground: str = ...,
3209
+ activerelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "raised",
3210
+ background: str = ...,
3211
+ bd: float | str = ...,
3212
+ bg: str = ...,
3213
+ border: float | str = ...,
3214
+ borderwidth: float | str = ...,
3215
+ # There are many ways how the command may get called. Search for
3216
+ # 'SCROLLING COMMANDS' in scrollbar man page. There doesn't seem to
3217
+ # be any way to specify an overloaded callback function, so we say
3218
+ # that it can take any args while it can't in reality.
3219
+ command: Callable[..., tuple[float, float] | None] | str = "",
3220
+ cursor: _Cursor = "",
3221
+ elementborderwidth: float | str = -1,
3222
+ highlightbackground: str = ...,
3223
+ highlightcolor: str = ...,
3224
+ highlightthickness: float | str = 0,
3225
+ jump: bool = False,
3226
+ name: str = ...,
3227
+ orient: Literal["horizontal", "vertical"] = "vertical",
3228
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3229
+ repeatdelay: int = 300,
3230
+ repeatinterval: int = 100,
3231
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
3232
+ troughcolor: str = ...,
3233
+ width: float | str = ...,
3234
+ ) -> None: ...
3235
+
3236
+ @overload
3237
+ def configure(
3238
+ self,
3239
+ cnf: dict[str, Any] | None = None,
3240
+ *,
3241
+ activebackground: str = ...,
3242
+ activerelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3243
+ background: str = ...,
3244
+ bd: float | str = ...,
3245
+ bg: str = ...,
3246
+ border: float | str = ...,
3247
+ borderwidth: float | str = ...,
3248
+ command: Callable[..., tuple[float, float] | None] | str = ...,
3249
+ cursor: _Cursor = ...,
3250
+ elementborderwidth: float | str = ...,
3251
+ highlightbackground: str = ...,
3252
+ highlightcolor: str = ...,
3253
+ highlightthickness: float | str = ...,
3254
+ jump: bool = ...,
3255
+ orient: Literal["horizontal", "vertical"] = ...,
3256
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3257
+ repeatdelay: int = ...,
3258
+ repeatinterval: int = ...,
3259
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
3260
+ troughcolor: str = ...,
3261
+ width: float | str = ...,
3262
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
3263
+ @overload
3264
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
3265
+
3266
+ config = configure
3267
+ def activate(self, index=None): ...
3268
+ def delta(self, deltax: int, deltay: int) -> float: ...
3269
+ def fraction(self, x: int, y: int) -> float: ...
3270
+ def identify(self, x: int, y: int) -> Literal["arrow1", "arrow2", "slider", "trough1", "trough2", ""]: ...
3271
+ def get(self) -> tuple[float, float, float, float] | tuple[float, float]: ...
3272
+ def set(self, first: float | str, last: float | str) -> None: ...
3273
+
3274
+ _WhatToCount: TypeAlias = Literal[
3275
+ "chars", "displaychars", "displayindices", "displaylines", "indices", "lines", "xpixels", "ypixels"
3276
+ ]
3277
+
3278
+ class Text(Widget, XView, YView):
3279
+ def __init__(
3280
+ self,
3281
+ master: Misc | None = None,
3282
+ cnf: dict[str, Any] | None = {},
3283
+ *,
3284
+ autoseparators: bool = True,
3285
+ background: str = ...,
3286
+ bd: float | str = ...,
3287
+ bg: str = ...,
3288
+ blockcursor: bool = False,
3289
+ border: float | str = ...,
3290
+ borderwidth: float | str = ...,
3291
+ cursor: _Cursor = "xterm",
3292
+ endline: int | Literal[""] = "",
3293
+ exportselection: bool = True,
3294
+ fg: str = ...,
3295
+ font: _FontDescription = "TkFixedFont",
3296
+ foreground: str = ...,
3297
+ # width is always int, but height is allowed to be screen units.
3298
+ # This doesn't make any sense to me, and this isn't documented.
3299
+ # The docs seem to say that both should be integers.
3300
+ height: float | str = 24,
3301
+ highlightbackground: str = ...,
3302
+ highlightcolor: str = ...,
3303
+ highlightthickness: float | str = ...,
3304
+ inactiveselectbackground: str = ...,
3305
+ insertbackground: str = ...,
3306
+ insertborderwidth: float | str = 0,
3307
+ insertofftime: int = 300,
3308
+ insertontime: int = 600,
3309
+ insertunfocussed: Literal["none", "hollow", "solid"] = "none",
3310
+ insertwidth: float | str = ...,
3311
+ maxundo: int = 0,
3312
+ name: str = ...,
3313
+ padx: float | str = 1,
3314
+ pady: float | str = 1,
3315
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3316
+ selectbackground: str = ...,
3317
+ selectborderwidth: float | str = ...,
3318
+ selectforeground: str = ...,
3319
+ setgrid: bool = False,
3320
+ spacing1: float | str = 0,
3321
+ spacing2: float | str = 0,
3322
+ spacing3: float | str = 0,
3323
+ startline: int | Literal[""] = "",
3324
+ state: Literal["normal", "disabled"] = "normal",
3325
+ # Literal inside Tuple doesn't actually work
3326
+ tabs: float | str | tuple[float | str, ...] = "",
3327
+ tabstyle: Literal["tabular", "wordprocessor"] = "tabular",
3328
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
3329
+ undo: bool = False,
3330
+ width: int = 80,
3331
+ wrap: Literal["none", "char", "word"] = "char",
3332
+ xscrollcommand: str | Callable[[float, float], object] = "",
3333
+ yscrollcommand: str | Callable[[float, float], object] = "",
3334
+ ) -> None: ...
3335
+
3336
+ @overload
3337
+ def configure(
3338
+ self,
3339
+ cnf: dict[str, Any] | None = None,
3340
+ *,
3341
+ autoseparators: bool = ...,
3342
+ background: str = ...,
3343
+ bd: float | str = ...,
3344
+ bg: str = ...,
3345
+ blockcursor: bool = ...,
3346
+ border: float | str = ...,
3347
+ borderwidth: float | str = ...,
3348
+ cursor: _Cursor = ...,
3349
+ endline: int | Literal[""] = ...,
3350
+ exportselection: bool = ...,
3351
+ fg: str = ...,
3352
+ font: _FontDescription = ...,
3353
+ foreground: str = ...,
3354
+ height: float | str = ...,
3355
+ highlightbackground: str = ...,
3356
+ highlightcolor: str = ...,
3357
+ highlightthickness: float | str = ...,
3358
+ inactiveselectbackground: str = ...,
3359
+ insertbackground: str = ...,
3360
+ insertborderwidth: float | str = ...,
3361
+ insertofftime: int = ...,
3362
+ insertontime: int = ...,
3363
+ insertunfocussed: Literal["none", "hollow", "solid"] = ...,
3364
+ insertwidth: float | str = ...,
3365
+ maxundo: int = ...,
3366
+ padx: float | str = ...,
3367
+ pady: float | str = ...,
3368
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3369
+ selectbackground: str = ...,
3370
+ selectborderwidth: float | str = ...,
3371
+ selectforeground: str = ...,
3372
+ setgrid: bool = ...,
3373
+ spacing1: float | str = ...,
3374
+ spacing2: float | str = ...,
3375
+ spacing3: float | str = ...,
3376
+ startline: int | Literal[""] = ...,
3377
+ state: Literal["normal", "disabled"] = ...,
3378
+ tabs: float | str | tuple[float | str, ...] = ...,
3379
+ tabstyle: Literal["tabular", "wordprocessor"] = ...,
3380
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
3381
+ undo: bool = ...,
3382
+ width: int = ...,
3383
+ wrap: Literal["none", "char", "word"] = ...,
3384
+ xscrollcommand: str | Callable[[float, float], object] = ...,
3385
+ yscrollcommand: str | Callable[[float, float], object] = ...,
3386
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
3387
+ @overload
3388
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
3389
+
3390
+ config = configure
3391
+ def bbox(self, index: str | float | _tkinter.Tcl_Obj | Widget) -> tuple[int, int, int, int] | None: ... # type: ignore[override]
3392
+ def compare(
3393
+ self,
3394
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3395
+ op: Literal["<", "<=", "==", ">=", ">", "!="],
3396
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3397
+ ) -> bool: ...
3398
+
3399
+ if sys.version_info >= (3, 13):
3400
+ @overload
3401
+ def count(
3402
+ self,
3403
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3404
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3405
+ *,
3406
+ return_ints: Literal[True],
3407
+ ) -> int: ...
3408
+ @overload
3409
+ def count(
3410
+ self,
3411
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3412
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3413
+ arg: _WhatToCount | Literal["update"],
3414
+ /,
3415
+ *,
3416
+ return_ints: Literal[True],
3417
+ ) -> int: ...
3418
+ @overload
3419
+ def count(
3420
+ self,
3421
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3422
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3423
+ arg1: Literal["update"],
3424
+ arg2: _WhatToCount,
3425
+ /,
3426
+ *,
3427
+ return_ints: Literal[True],
3428
+ ) -> int: ...
3429
+ @overload
3430
+ def count(
3431
+ self,
3432
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3433
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3434
+ arg1: _WhatToCount,
3435
+ arg2: Literal["update"],
3436
+ /,
3437
+ *,
3438
+ return_ints: Literal[True],
3439
+ ) -> int: ...
3440
+ @overload
3441
+ def count(
3442
+ self,
3443
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3444
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3445
+ arg1: _WhatToCount,
3446
+ arg2: _WhatToCount,
3447
+ /,
3448
+ *,
3449
+ return_ints: Literal[True],
3450
+ ) -> tuple[int, int]: ...
3451
+ @overload
3452
+ def count(
3453
+ self,
3454
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3455
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3456
+ arg1: _WhatToCount | Literal["update"],
3457
+ arg2: _WhatToCount | Literal["update"],
3458
+ arg3: _WhatToCount | Literal["update"],
3459
+ /,
3460
+ *args: _WhatToCount | Literal["update"],
3461
+ return_ints: Literal[True],
3462
+ ) -> tuple[int, ...]: ...
3463
+ @overload
3464
+ def count(
3465
+ self,
3466
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3467
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3468
+ *,
3469
+ return_ints: Literal[False] = False,
3470
+ ) -> tuple[int] | None: ...
3471
+ @overload
3472
+ def count(
3473
+ self,
3474
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3475
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3476
+ arg: _WhatToCount | Literal["update"],
3477
+ /,
3478
+ *,
3479
+ return_ints: Literal[False] = False,
3480
+ ) -> tuple[int] | None: ...
3481
+ @overload
3482
+ def count(
3483
+ self,
3484
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3485
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3486
+ arg1: Literal["update"],
3487
+ arg2: _WhatToCount,
3488
+ /,
3489
+ *,
3490
+ return_ints: Literal[False] = False,
3491
+ ) -> int | None: ...
3492
+ @overload
3493
+ def count(
3494
+ self,
3495
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3496
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3497
+ arg1: _WhatToCount,
3498
+ arg2: Literal["update"],
3499
+ /,
3500
+ *,
3501
+ return_ints: Literal[False] = False,
3502
+ ) -> int | None: ...
3503
+ @overload
3504
+ def count(
3505
+ self,
3506
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3507
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3508
+ arg1: _WhatToCount,
3509
+ arg2: _WhatToCount,
3510
+ /,
3511
+ *,
3512
+ return_ints: Literal[False] = False,
3513
+ ) -> tuple[int, int]: ...
3514
+ @overload
3515
+ def count(
3516
+ self,
3517
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3518
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3519
+ arg1: _WhatToCount | Literal["update"],
3520
+ arg2: _WhatToCount | Literal["update"],
3521
+ arg3: _WhatToCount | Literal["update"],
3522
+ /,
3523
+ *args: _WhatToCount | Literal["update"],
3524
+ return_ints: Literal[False] = False,
3525
+ ) -> tuple[int, ...]: ...
3526
+ else:
3527
+ @overload
3528
+ def count(
3529
+ self, index1: str | float | _tkinter.Tcl_Obj | Widget, index2: str | float | _tkinter.Tcl_Obj | Widget
3530
+ ) -> tuple[int] | None: ...
3531
+ @overload
3532
+ def count(
3533
+ self,
3534
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3535
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3536
+ arg: _WhatToCount | Literal["update"],
3537
+ /,
3538
+ ) -> tuple[int] | None: ...
3539
+ @overload
3540
+ def count(
3541
+ self,
3542
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3543
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3544
+ arg1: Literal["update"],
3545
+ arg2: _WhatToCount,
3546
+ /,
3547
+ ) -> int | None: ...
3548
+ @overload
3549
+ def count(
3550
+ self,
3551
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3552
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3553
+ arg1: _WhatToCount,
3554
+ arg2: Literal["update"],
3555
+ /,
3556
+ ) -> int | None: ...
3557
+ @overload
3558
+ def count(
3559
+ self,
3560
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3561
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3562
+ arg1: _WhatToCount,
3563
+ arg2: _WhatToCount,
3564
+ /,
3565
+ ) -> tuple[int, int]: ...
3566
+ @overload
3567
+ def count(
3568
+ self,
3569
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3570
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3571
+ arg1: _WhatToCount | Literal["update"],
3572
+ arg2: _WhatToCount | Literal["update"],
3573
+ arg3: _WhatToCount | Literal["update"],
3574
+ /,
3575
+ *args: _WhatToCount | Literal["update"],
3576
+ ) -> tuple[int, ...]: ...
3577
+
3578
+ @overload
3579
+ def debug(self, boolean: None = None) -> bool: ...
3580
+ @overload
3581
+ def debug(self, boolean: bool) -> None: ...
3582
+
3583
+ def delete(
3584
+ self, index1: str | float | _tkinter.Tcl_Obj | Widget, index2: str | float | _tkinter.Tcl_Obj | Widget | None = None
3585
+ ) -> None: ...
3586
+ def dlineinfo(self, index: str | float | _tkinter.Tcl_Obj | Widget) -> tuple[int, int, int, int, int] | None: ...
3587
+
3588
+ @overload
3589
+ def dump(
3590
+ self,
3591
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3592
+ index2: str | float | _tkinter.Tcl_Obj | Widget | None = None,
3593
+ command: None = None,
3594
+ *,
3595
+ all: bool = ...,
3596
+ image: bool = ...,
3597
+ mark: bool = ...,
3598
+ tag: bool = ...,
3599
+ text: bool = ...,
3600
+ window: bool = ...,
3601
+ ) -> list[tuple[str, str, str]]: ...
3602
+ @overload
3603
+ def dump(
3604
+ self,
3605
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3606
+ index2: str | float | _tkinter.Tcl_Obj | Widget | None,
3607
+ command: Callable[[str, str, str], object] | str,
3608
+ *,
3609
+ all: bool = ...,
3610
+ image: bool = ...,
3611
+ mark: bool = ...,
3612
+ tag: bool = ...,
3613
+ text: bool = ...,
3614
+ window: bool = ...,
3615
+ ) -> None: ...
3616
+ @overload
3617
+ def dump(
3618
+ self,
3619
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3620
+ index2: str | float | _tkinter.Tcl_Obj | Widget | None = None,
3621
+ *,
3622
+ command: Callable[[str, str, str], object] | str,
3623
+ all: bool = ...,
3624
+ image: bool = ...,
3625
+ mark: bool = ...,
3626
+ tag: bool = ...,
3627
+ text: bool = ...,
3628
+ window: bool = ...,
3629
+ ) -> None: ...
3630
+
3631
+ def edit(self, *args): ... # docstring says "Internal method"
3632
+
3633
+ @overload
3634
+ def edit_modified(self, arg: None = None) -> bool: ... # actually returns Literal[0, 1]
3635
+ @overload
3636
+ def edit_modified(self, arg: bool) -> None: ... # actually returns empty string
3637
+
3638
+ def edit_redo(self) -> None: ... # actually returns empty string
3639
+ def edit_reset(self) -> None: ... # actually returns empty string
3640
+ def edit_separator(self) -> None: ... # actually returns empty string
3641
+ def edit_undo(self) -> None: ... # actually returns empty string
3642
+ def get(
3643
+ self, index1: str | float | _tkinter.Tcl_Obj | Widget, index2: str | float | _tkinter.Tcl_Obj | Widget | None = None
3644
+ ) -> str: ...
3645
+
3646
+ @overload
3647
+ def image_cget(self, index: str | float | _tkinter.Tcl_Obj | Widget, option: Literal["image", "name"]) -> str: ...
3648
+ @overload
3649
+ def image_cget(self, index: str | float | _tkinter.Tcl_Obj | Widget, option: Literal["padx", "pady"]) -> int: ...
3650
+ @overload
3651
+ def image_cget(
3652
+ self, index: str | float | _tkinter.Tcl_Obj | Widget, option: Literal["align"]
3653
+ ) -> Literal["baseline", "bottom", "center", "top"]: ...
3654
+ @overload
3655
+ def image_cget(self, index: str | float | _tkinter.Tcl_Obj | Widget, option: str) -> Any: ...
3656
+
3657
+ @overload
3658
+ def image_configure(
3659
+ self, index: str | float | _tkinter.Tcl_Obj | Widget, cnf: str
3660
+ ) -> tuple[str, str, str, str, str | int]: ...
3661
+ @overload
3662
+ def image_configure(
3663
+ self,
3664
+ index: str | float | _tkinter.Tcl_Obj | Widget,
3665
+ cnf: dict[str, Any] | None = None,
3666
+ *,
3667
+ align: Literal["baseline", "bottom", "center", "top"] = ...,
3668
+ image: _Image | str = ...,
3669
+ name: str = ...,
3670
+ padx: float | str = ...,
3671
+ pady: float | str = ...,
3672
+ ) -> dict[str, tuple[str, str, str, str, str | int]] | None: ...
3673
+
3674
+ def image_create(
3675
+ self,
3676
+ index: str | float | _tkinter.Tcl_Obj | Widget,
3677
+ cnf: dict[str, Any] | None = {},
3678
+ *,
3679
+ align: Literal["baseline", "bottom", "center", "top"] = ...,
3680
+ image: _Image | str = ...,
3681
+ name: str = ...,
3682
+ padx: float | str = ...,
3683
+ pady: float | str = ...,
3684
+ ) -> str: ...
3685
+ def image_names(self) -> tuple[str, ...]: ...
3686
+ def index(self, index: str | float | _tkinter.Tcl_Obj | Widget) -> str: ...
3687
+ def insert(
3688
+ self, index: str | float | _tkinter.Tcl_Obj | Widget, chars: str, *args: str | list[str] | tuple[str, ...]
3689
+ ) -> None: ...
3690
+
3691
+ @overload
3692
+ def mark_gravity(self, markName: str, direction: None = None) -> Literal["left", "right"]: ...
3693
+ @overload
3694
+ def mark_gravity(self, markName: str, direction: Literal["left", "right"]) -> None: ... # actually returns empty string
3695
+
3696
+ def mark_names(self) -> tuple[str, ...]: ...
3697
+ def mark_set(self, markName: str, index: str | float | _tkinter.Tcl_Obj | Widget) -> None: ...
3698
+ def mark_unset(self, *markNames: str) -> None: ...
3699
+ def mark_next(self, index: str | float | _tkinter.Tcl_Obj | Widget) -> str | None: ...
3700
+ def mark_previous(self, index: str | float | _tkinter.Tcl_Obj | Widget) -> str | None: ...
3701
+ # **kw of peer_create is same as the kwargs of Text.__init__
3702
+ def peer_create(self, newPathName: str | Text, cnf: dict[str, Any] = {}, **kw) -> None: ...
3703
+ def peer_names(self) -> tuple[_tkinter.Tcl_Obj, ...]: ...
3704
+ def replace(
3705
+ self,
3706
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3707
+ index2: str | float | _tkinter.Tcl_Obj | Widget,
3708
+ chars: str,
3709
+ *args: str | list[str] | tuple[str, ...],
3710
+ ) -> None: ...
3711
+ def scan_mark(self, x: int, y: int) -> None: ...
3712
+ def scan_dragto(self, x: int, y: int) -> None: ...
3713
+ if sys.version_info >= (3, 15):
3714
+ def search(
3715
+ self,
3716
+ pattern: str,
3717
+ index: str | float | _tkinter.Tcl_Obj | Widget,
3718
+ stopindex: str | float | _tkinter.Tcl_Obj | Widget | None = None,
3719
+ forwards: bool | None = None,
3720
+ backwards: bool | None = None,
3721
+ exact: bool | None = None,
3722
+ regexp: bool | None = None,
3723
+ nocase: bool | None = None,
3724
+ count: Variable | None = None,
3725
+ elide: bool | None = None,
3726
+ *,
3727
+ nolinestop: bool | None = None,
3728
+ strictlimits: bool | None = None,
3729
+ ) -> str: ... # returns empty string for not found
3730
+ def search_all(
3731
+ self,
3732
+ pattern: str,
3733
+ index: str | float | _tkinter.Tcl_Obj | Widget,
3734
+ stopindex: str | float | _tkinter.Tcl_Obj | Widget | None = None,
3735
+ *,
3736
+ forwards: bool | None = None,
3737
+ backwards: bool | None = None,
3738
+ exact: bool | None = None,
3739
+ regexp: bool | None = None,
3740
+ nocase: bool | None = None,
3741
+ count: Variable | None = None,
3742
+ elide: bool | None = None,
3743
+ nolinestop: bool | None = None,
3744
+ overlap: bool | None = None,
3745
+ strictlimits: bool | None = None,
3746
+ ) -> tuple[_tkinter.Tcl_Obj, ...]: ...
3747
+ else:
3748
+ def search(
3749
+ self,
3750
+ pattern: str,
3751
+ index: str | float | _tkinter.Tcl_Obj | Widget,
3752
+ stopindex: str | float | _tkinter.Tcl_Obj | Widget | None = None,
3753
+ forwards: bool | None = None,
3754
+ backwards: bool | None = None,
3755
+ exact: bool | None = None,
3756
+ regexp: bool | None = None,
3757
+ nocase: bool | None = None,
3758
+ count: Variable | None = None,
3759
+ elide: bool | None = None,
3760
+ ) -> str: ... # returns empty string for not found
3761
+
3762
+ def see(self, index: str | float | _tkinter.Tcl_Obj | Widget) -> None: ...
3763
+ def tag_add(
3764
+ self, tagName: str, index1: str | float | _tkinter.Tcl_Obj | Widget, *args: str | float | _tkinter.Tcl_Obj | Widget
3765
+ ) -> None: ...
3766
+
3767
+ # tag_bind stuff is very similar to Canvas
3768
+ @overload
3769
+ def tag_bind(
3770
+ self,
3771
+ tagName: str,
3772
+ sequence: str | None,
3773
+ func: Callable[[Event[Text]], object] | None,
3774
+ add: Literal["", "+"] | bool | None = None,
3775
+ ) -> str: ...
3776
+ @overload
3777
+ def tag_bind(self, tagName: str, sequence: str | None, func: str, add: Literal["", "+"] | bool | None = None) -> None: ...
3778
+
3779
+ def tag_unbind(self, tagName: str, sequence: str, funcid: str | None = None) -> None: ...
3780
+ # allowing any string for cget instead of just Literals because there's no other way to look up tag options
3781
+ def tag_cget(self, tagName: str, option: str): ...
3782
+
3783
+ @overload
3784
+ def tag_configure(
3785
+ self,
3786
+ tagName: str,
3787
+ cnf: dict[str, Any] | None = None,
3788
+ *,
3789
+ background: str = ...,
3790
+ bgstipple: str = ...,
3791
+ borderwidth: float | str = ...,
3792
+ border: float | str = ..., # alias for borderwidth
3793
+ elide: bool = ...,
3794
+ fgstipple: str = ...,
3795
+ font: _FontDescription = ...,
3796
+ foreground: str = ...,
3797
+ justify: Literal["left", "right", "center"] = ...,
3798
+ lmargin1: float | str = ...,
3799
+ lmargin2: float | str = ...,
3800
+ lmargincolor: str = ...,
3801
+ offset: float | str = ...,
3802
+ overstrike: bool = ...,
3803
+ overstrikefg: str = ...,
3804
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
3805
+ rmargin: float | str = ...,
3806
+ rmargincolor: str = ...,
3807
+ selectbackground: str = ...,
3808
+ selectforeground: str = ...,
3809
+ spacing1: float | str = ...,
3810
+ spacing2: float | str = ...,
3811
+ spacing3: float | str = ...,
3812
+ tabs: Any = ..., # the exact type is kind of complicated, see manual page
3813
+ tabstyle: Literal["tabular", "wordprocessor"] = ...,
3814
+ underline: bool = ...,
3815
+ underlinefg: str = ...,
3816
+ wrap: Literal["none", "char", "word"] = ..., # be careful with "none" vs None
3817
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
3818
+ @overload
3819
+ def tag_configure(self, tagName: str, cnf: str) -> tuple[str, str, str, Any, Any]: ...
3820
+
3821
+ tag_config = tag_configure
3822
+ def tag_delete(self, first_tag_name: str, /, *tagNames: str) -> None: ... # error if no tag names given
3823
+ def tag_lower(self, tagName: str, belowThis: str | None = None) -> None: ...
3824
+ def tag_names(self, index: str | float | _tkinter.Tcl_Obj | Widget | None = None) -> tuple[str, ...]: ...
3825
+ def tag_nextrange(
3826
+ self,
3827
+ tagName: str,
3828
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3829
+ index2: str | float | _tkinter.Tcl_Obj | Widget | None = None,
3830
+ ) -> tuple[str, str] | tuple[()]: ...
3831
+ def tag_prevrange(
3832
+ self,
3833
+ tagName: str,
3834
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3835
+ index2: str | float | _tkinter.Tcl_Obj | Widget | None = None,
3836
+ ) -> tuple[str, str] | tuple[()]: ...
3837
+ def tag_raise(self, tagName: str, aboveThis: str | None = None) -> None: ...
3838
+ def tag_ranges(self, tagName: str) -> tuple[_tkinter.Tcl_Obj, ...]: ...
3839
+ # tag_remove and tag_delete are different
3840
+ def tag_remove(
3841
+ self,
3842
+ tagName: str,
3843
+ index1: str | float | _tkinter.Tcl_Obj | Widget,
3844
+ index2: str | float | _tkinter.Tcl_Obj | Widget | None = None,
3845
+ ) -> None: ...
3846
+
3847
+ @overload
3848
+ def window_cget(self, index: str | float | _tkinter.Tcl_Obj | Widget, option: Literal["padx", "pady"]) -> int: ...
3849
+ @overload
3850
+ def window_cget(
3851
+ self, index: str | float | _tkinter.Tcl_Obj | Widget, option: Literal["stretch"]
3852
+ ) -> bool: ... # actually returns Literal[0, 1]
3853
+ @overload
3854
+ def window_cget(
3855
+ self, index: str | float | _tkinter.Tcl_Obj | Widget, option: Literal["align"]
3856
+ ) -> Literal["baseline", "bottom", "center", "top"]: ...
3857
+ @overload # window is set to a widget, but read as the string name.
3858
+ def window_cget(self, index: str | float | _tkinter.Tcl_Obj | Widget, option: Literal["create", "window"]) -> str: ...
3859
+ @overload
3860
+ def window_cget(self, index: str | float | _tkinter.Tcl_Obj | Widget, option: str) -> Any: ...
3861
+
3862
+ @overload
3863
+ def window_configure(
3864
+ self, index: str | float | _tkinter.Tcl_Obj | Widget, cnf: str
3865
+ ) -> tuple[str, str, str, str, str | int]: ...
3866
+ @overload
3867
+ def window_configure(
3868
+ self,
3869
+ index: str | float | _tkinter.Tcl_Obj | Widget,
3870
+ cnf: dict[str, Any] | None = None,
3871
+ *,
3872
+ align: Literal["baseline", "bottom", "center", "top"] = ...,
3873
+ create: str = ...,
3874
+ padx: float | str = ...,
3875
+ pady: float | str = ...,
3876
+ stretch: bool | Literal[0, 1] = ...,
3877
+ window: Misc | str = ...,
3878
+ ) -> dict[str, tuple[str, str, str, str, str | int]] | None: ...
3879
+
3880
+ window_config = window_configure
3881
+ def window_create(
3882
+ self,
3883
+ index: str | float | _tkinter.Tcl_Obj | Widget,
3884
+ cnf: dict[str, Any] | None = {},
3885
+ *,
3886
+ align: Literal["baseline", "bottom", "center", "top"] = ...,
3887
+ create: str = ...,
3888
+ padx: float | str = ...,
3889
+ pady: float | str = ...,
3890
+ stretch: bool | Literal[0, 1] = ...,
3891
+ window: Misc | str = ...,
3892
+ ) -> None: ...
3893
+ def window_names(self) -> tuple[str, ...]: ...
3894
+ def yview_pickplace(self, *what): ... # deprecated
3895
+
3896
+ class _setit:
3897
+ def __init__(self, var, value, callback=None) -> None: ...
3898
+ def __call__(self, *args) -> None: ...
3899
+
3900
+ # manual page: tk_optionMenu
3901
+ class OptionMenu(Menubutton):
3902
+ menuname: Incomplete
3903
+ if sys.version_info >= (3, 14):
3904
+ def __init__(
3905
+ # differs from other widgets
3906
+ self,
3907
+ master: Misc | None,
3908
+ variable: StringVar,
3909
+ value: str,
3910
+ *values: str,
3911
+ command: Callable[[str], object] | None = ...,
3912
+ name: str | None = None,
3913
+ ) -> None: ...
3914
+ else:
3915
+ def __init__(
3916
+ # differs from other widgets
3917
+ self,
3918
+ master: Misc | None,
3919
+ variable: StringVar,
3920
+ value: str,
3921
+ *values: str,
3922
+ command: Callable[[str], object] | None = ...,
3923
+ ) -> None: ...
3924
+ # configure, config, cget are inherited from Menubutton
3925
+ # destroy and __getitem__ are overridden, signature does not change
3926
+
3927
+ # This matches tkinter's image classes (PhotoImage and BitmapImage)
3928
+ # and PIL's tkinter-compatible class (PIL.ImageTk.PhotoImage),
3929
+ # but not a plain PIL image that isn't tkinter compatible.
3930
+ # The reason is that PIL has width and height attributes, not methods.
3931
+ @type_check_only
3932
+ class _Image(Protocol):
3933
+ def width(self) -> int: ...
3934
+ def height(self) -> int: ...
3935
+
3936
+ @type_check_only
3937
+ class _BitmapImageLike(_Image): ...
3938
+
3939
+ @type_check_only
3940
+ class _PhotoImageLike(_Image): ...
3941
+
3942
+ class Image(_Image):
3943
+ name: Incomplete
3944
+ tk: _tkinter.TkappType
3945
+ if sys.version_info >= (3, 15):
3946
+ __iter__: ClassVar[None] # prevent using __getitem__ for iteration
3947
+
3948
+ def __init__(self, imgtype, name=None, cnf={}, master: Misc | _tkinter.TkappType | None = None, **kw) -> None: ...
3949
+ def __del__(self) -> None: ...
3950
+ def __setitem__(self, key, value) -> None: ...
3951
+ def __getitem__(self, key): ...
3952
+ configure: Incomplete
3953
+ config: Incomplete
3954
+ def type(self): ...
3955
+
3956
+ class PhotoImage(Image, _PhotoImageLike):
3957
+ # This should be kept in sync with PIL.ImageTK.PhotoImage.__init__()
3958
+ def __init__(
3959
+ self,
3960
+ name: str | None = None,
3961
+ cnf: dict[str, Any] = {},
3962
+ master: Misc | _tkinter.TkappType | None = None,
3963
+ *,
3964
+ data: str | bytes = ..., # not same as data argument of put()
3965
+ format: str = ...,
3966
+ file: StrOrBytesPath = ...,
3967
+ gamma: float = ...,
3968
+ height: int = ...,
3969
+ palette: int | str = ...,
3970
+ width: int = ...,
3971
+ ) -> None: ...
3972
+ def configure(
3973
+ self,
3974
+ *,
3975
+ data: str | bytes = ...,
3976
+ format: str = ...,
3977
+ file: StrOrBytesPath = ...,
3978
+ gamma: float = ...,
3979
+ height: int = ...,
3980
+ palette: int | str = ...,
3981
+ width: int = ...,
3982
+ ) -> None: ...
3983
+ config = configure
3984
+ def blank(self) -> None: ...
3985
+ def cget(self, option: str) -> str: ...
3986
+ def __getitem__(self, key: str) -> str: ... # always string: image['height'] can be '0'
3987
+ if sys.version_info >= (3, 13):
3988
+ def copy(
3989
+ self,
3990
+ *,
3991
+ from_coords: Iterable[int] | None = None,
3992
+ zoom: int | tuple[int, int] | list[int] | None = None,
3993
+ subsample: int | tuple[int, int] | list[int] | None = None,
3994
+ ) -> PhotoImage: ...
3995
+ def subsample(self, x: int, y: int | Literal[""] = "", *, from_coords: Iterable[int] | None = None) -> PhotoImage: ...
3996
+ def zoom(self, x: int, y: int | Literal[""] = "", *, from_coords: Iterable[int] | None = None) -> PhotoImage: ...
3997
+ def copy_replace(
3998
+ self,
3999
+ sourceImage: PhotoImage | str,
4000
+ *,
4001
+ from_coords: Iterable[int] | None = None,
4002
+ to: Iterable[int] | None = None,
4003
+ shrink: bool = False,
4004
+ zoom: int | tuple[int, int] | list[int] | None = None,
4005
+ subsample: int | tuple[int, int] | list[int] | None = None,
4006
+ # `None` defaults to overlay.
4007
+ compositingrule: Literal["overlay", "set"] | None = None,
4008
+ ) -> None: ...
4009
+ else:
4010
+ def copy(self) -> PhotoImage: ...
4011
+ def zoom(self, x: int, y: int | Literal[""] = "") -> PhotoImage: ...
4012
+ def subsample(self, x: int, y: int | Literal[""] = "") -> PhotoImage: ...
4013
+
4014
+ def get(self, x: int, y: int) -> tuple[int, int, int]: ...
4015
+ def put(
4016
+ self,
4017
+ data: (
4018
+ str
4019
+ | bytes
4020
+ | list[str]
4021
+ | list[list[str]]
4022
+ | list[tuple[str, ...]]
4023
+ | tuple[str, ...]
4024
+ | tuple[list[str], ...]
4025
+ | tuple[tuple[str, ...], ...]
4026
+ ),
4027
+ to: tuple[int, int] | tuple[int, int, int, int] | None = None,
4028
+ ) -> None: ...
4029
+ if sys.version_info >= (3, 13):
4030
+ def read(
4031
+ self,
4032
+ filename: StrOrBytesPath,
4033
+ format: str | None = None,
4034
+ *,
4035
+ from_coords: Iterable[int] | None = None,
4036
+ to: Iterable[int] | None = None,
4037
+ shrink: bool = False,
4038
+ ) -> None: ...
4039
+ def write(
4040
+ self,
4041
+ filename: StrOrBytesPath,
4042
+ format: str | None = None,
4043
+ from_coords: Iterable[int] | None = None,
4044
+ *,
4045
+ background: str | None = None,
4046
+ grayscale: bool = False,
4047
+ ) -> None: ...
4048
+
4049
+ @overload
4050
+ def data(
4051
+ self, format: str, *, from_coords: Iterable[int] | None = None, background: str | None = None, grayscale: bool = False
4052
+ ) -> bytes: ...
4053
+ @overload
4054
+ def data(
4055
+ self,
4056
+ format: None = None,
4057
+ *,
4058
+ from_coords: Iterable[int] | None = None,
4059
+ background: str | None = None,
4060
+ grayscale: bool = False,
4061
+ ) -> tuple[str, ...]: ...
4062
+
4063
+ else:
4064
+ def write(
4065
+ self, filename: StrOrBytesPath, format: str | None = None, from_coords: tuple[int, int] | None = None
4066
+ ) -> None: ...
4067
+
4068
+ def transparency_get(self, x: int, y: int) -> bool: ...
4069
+ def transparency_set(self, x: int, y: int, boolean: bool) -> None: ...
4070
+
4071
+ class BitmapImage(Image, _BitmapImageLike):
4072
+ # This should be kept in sync with PIL.ImageTK.BitmapImage.__init__()
4073
+ def __init__(
4074
+ self,
4075
+ name=None,
4076
+ cnf: dict[str, Any] = {},
4077
+ master: Misc | _tkinter.TkappType | None = None,
4078
+ *,
4079
+ background: str = ...,
4080
+ data: str | bytes = ...,
4081
+ file: StrOrBytesPath = ...,
4082
+ foreground: str = ...,
4083
+ maskdata: str = ...,
4084
+ maskfile: StrOrBytesPath = ...,
4085
+ ) -> None: ...
4086
+
4087
+ def image_names() -> tuple[str, ...]: ...
4088
+ def image_types() -> tuple[str, ...]: ...
4089
+
4090
+ class Spinbox(Widget, XView):
4091
+ def __init__(
4092
+ self,
4093
+ master: Misc | None = None,
4094
+ cnf: dict[str, Any] | None = {},
4095
+ *,
4096
+ activebackground: str = ...,
4097
+ background: str = ...,
4098
+ bd: float | str = ...,
4099
+ bg: str = ...,
4100
+ border: float | str = ...,
4101
+ borderwidth: float | str = ...,
4102
+ buttonbackground: str = ...,
4103
+ buttoncursor: _Cursor = "",
4104
+ buttondownrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
4105
+ buttonuprelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
4106
+ # percent substitutions don't seem to be supported, it's similar to Entry's validation stuff
4107
+ command: Callable[[], object] | str | list[str] | tuple[str, ...] = "",
4108
+ cursor: _Cursor = "xterm",
4109
+ disabledbackground: str = ...,
4110
+ disabledforeground: str = ...,
4111
+ exportselection: bool = True,
4112
+ fg: str = ...,
4113
+ font: _FontDescription = "TkTextFont",
4114
+ foreground: str = ...,
4115
+ format: str = "",
4116
+ from_: float = 0.0,
4117
+ highlightbackground: str = ...,
4118
+ highlightcolor: str = ...,
4119
+ highlightthickness: float | str = ...,
4120
+ increment: float = 1.0,
4121
+ insertbackground: str = ...,
4122
+ insertborderwidth: float | str = 0,
4123
+ insertofftime: int = 300,
4124
+ insertontime: int = 600,
4125
+ insertwidth: float | str = ...,
4126
+ invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], object] = "",
4127
+ invcmd: str | list[str] | tuple[str, ...] | Callable[[], object] = "",
4128
+ justify: Literal["left", "center", "right"] = "left",
4129
+ name: str = ...,
4130
+ readonlybackground: str = ...,
4131
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "sunken",
4132
+ repeatdelay: int = 400,
4133
+ repeatinterval: int = 100,
4134
+ selectbackground: str = ...,
4135
+ selectborderwidth: float | str = ...,
4136
+ selectforeground: str = ...,
4137
+ state: Literal["normal", "disabled", "readonly"] = "normal",
4138
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = "",
4139
+ textvariable: Variable = ...,
4140
+ to: float = 0.0,
4141
+ validate: Literal["none", "focus", "focusin", "focusout", "key", "all"] = "none",
4142
+ validatecommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = "",
4143
+ vcmd: str | list[str] | tuple[str, ...] | Callable[[], bool] = "",
4144
+ values: list[str] | tuple[str, ...] = ...,
4145
+ width: int = 20,
4146
+ wrap: bool = False,
4147
+ xscrollcommand: str | Callable[[float, float], object] = "",
4148
+ ) -> None: ...
4149
+
4150
+ @overload
4151
+ def configure(
4152
+ self,
4153
+ cnf: dict[str, Any] | None = None,
4154
+ *,
4155
+ activebackground: str = ...,
4156
+ background: str = ...,
4157
+ bd: float | str = ...,
4158
+ bg: str = ...,
4159
+ border: float | str = ...,
4160
+ borderwidth: float | str = ...,
4161
+ buttonbackground: str = ...,
4162
+ buttoncursor: _Cursor = ...,
4163
+ buttondownrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
4164
+ buttonuprelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
4165
+ command: Callable[[], object] | str | list[str] | tuple[str, ...] = ...,
4166
+ cursor: _Cursor = ...,
4167
+ disabledbackground: str = ...,
4168
+ disabledforeground: str = ...,
4169
+ exportselection: bool = ...,
4170
+ fg: str = ...,
4171
+ font: _FontDescription = ...,
4172
+ foreground: str = ...,
4173
+ format: str = ...,
4174
+ from_: float = ...,
4175
+ highlightbackground: str = ...,
4176
+ highlightcolor: str = ...,
4177
+ highlightthickness: float | str = ...,
4178
+ increment: float = ...,
4179
+ insertbackground: str = ...,
4180
+ insertborderwidth: float | str = ...,
4181
+ insertofftime: int = ...,
4182
+ insertontime: int = ...,
4183
+ insertwidth: float | str = ...,
4184
+ invalidcommand: str | list[str] | tuple[str, ...] | Callable[[], object] = ...,
4185
+ invcmd: str | list[str] | tuple[str, ...] | Callable[[], object] = ...,
4186
+ justify: Literal["left", "center", "right"] = ...,
4187
+ readonlybackground: str = ...,
4188
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
4189
+ repeatdelay: int = ...,
4190
+ repeatinterval: int = ...,
4191
+ selectbackground: str = ...,
4192
+ selectborderwidth: float | str = ...,
4193
+ selectforeground: str = ...,
4194
+ state: Literal["normal", "disabled", "readonly"] = ...,
4195
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
4196
+ textvariable: Variable = ...,
4197
+ to: float = ...,
4198
+ validate: Literal["none", "focus", "focusin", "focusout", "key", "all"] = ...,
4199
+ validatecommand: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
4200
+ vcmd: str | list[str] | tuple[str, ...] | Callable[[], bool] = ...,
4201
+ values: list[str] | tuple[str, ...] = ...,
4202
+ width: int = ...,
4203
+ wrap: bool = ...,
4204
+ xscrollcommand: str | Callable[[float, float], object] = ...,
4205
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
4206
+ @overload
4207
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
4208
+
4209
+ config = configure
4210
+ def bbox(self, index) -> tuple[int, int, int, int] | None: ... # type: ignore[override]
4211
+ def delete(self, first, last=None) -> Literal[""]: ...
4212
+ def get(self) -> str: ...
4213
+ def icursor(self, index): ...
4214
+ def identify(self, x: int, y: int) -> Literal["", "buttondown", "buttonup", "entry"]: ...
4215
+ def index(self, index: str | int) -> int: ...
4216
+ def insert(self, index: str | int, s: str) -> Literal[""]: ...
4217
+ # spinbox.invoke("asdf") gives error mentioning .invoke("none"), but it's not documented
4218
+ def invoke(self, element: Literal["none", "buttonup", "buttondown"]) -> Literal[""]: ...
4219
+ def scan(self, *args): ...
4220
+ def scan_mark(self, x): ...
4221
+ def scan_dragto(self, x): ...
4222
+ def selection(self, *args) -> tuple[int, ...]: ...
4223
+ def selection_adjust(self, index): ...
4224
+ def selection_clear(self): ... # type: ignore[override]
4225
+ def selection_element(self, element=None): ...
4226
+ def selection_from(self, index: int) -> None: ...
4227
+ def selection_present(self) -> None: ...
4228
+ def selection_range(self, start: int, end: int) -> None: ...
4229
+ def selection_to(self, index: int) -> None: ...
4230
+
4231
+ class LabelFrame(Widget):
4232
+ def __init__(
4233
+ self,
4234
+ master: Misc | None = None,
4235
+ cnf: dict[str, Any] | None = {},
4236
+ *,
4237
+ background: str = ...,
4238
+ bd: float | str = 2,
4239
+ bg: str = ...,
4240
+ border: float | str = 2,
4241
+ borderwidth: float | str = 2,
4242
+ class_: str = "Labelframe", # can't be changed with configure()
4243
+ colormap: Literal["new", ""] | Misc = "", # can't be changed with configure()
4244
+ container: bool = False, # undocumented, can't be changed with configure()
4245
+ cursor: _Cursor = "",
4246
+ fg: str = ...,
4247
+ font: _FontDescription = "TkDefaultFont",
4248
+ foreground: str = ...,
4249
+ height: float | str = 0,
4250
+ highlightbackground: str = ...,
4251
+ highlightcolor: str = ...,
4252
+ highlightthickness: float | str = 0,
4253
+ # 'ne' and 'en' are valid labelanchors, but only 'ne' is a valid _Anchor.
4254
+ labelanchor: Literal["nw", "n", "ne", "en", "e", "es", "se", "s", "sw", "ws", "w", "wn"] = "nw",
4255
+ labelwidget: Misc = ...,
4256
+ name: str = ...,
4257
+ padx: float | str = 0,
4258
+ pady: float | str = 0,
4259
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "groove",
4260
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = 0,
4261
+ text: float | str = "",
4262
+ visual: str | tuple[str, int] = "", # can't be changed with configure()
4263
+ width: float | str = 0,
4264
+ ) -> None: ...
4265
+
4266
+ @overload
4267
+ def configure(
4268
+ self,
4269
+ cnf: dict[str, Any] | None = None,
4270
+ *,
4271
+ background: str = ...,
4272
+ bd: float | str = ...,
4273
+ bg: str = ...,
4274
+ border: float | str = ...,
4275
+ borderwidth: float | str = ...,
4276
+ cursor: _Cursor = ...,
4277
+ fg: str = ...,
4278
+ font: _FontDescription = ...,
4279
+ foreground: str = ...,
4280
+ height: float | str = ...,
4281
+ highlightbackground: str = ...,
4282
+ highlightcolor: str = ...,
4283
+ highlightthickness: float | str = ...,
4284
+ labelanchor: Literal["nw", "n", "ne", "en", "e", "es", "se", "s", "sw", "ws", "w", "wn"] = ...,
4285
+ labelwidget: Misc = ...,
4286
+ padx: float | str = ...,
4287
+ pady: float | str = ...,
4288
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
4289
+ takefocus: bool | Literal[0, 1, ""] | Callable[[str], bool | None] = ...,
4290
+ text: float | str = ...,
4291
+ width: float | str = ...,
4292
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
4293
+ @overload
4294
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
4295
+
4296
+ config = configure
4297
+
4298
+ class PanedWindow(Widget):
4299
+ def __init__(
4300
+ self,
4301
+ master: Misc | None = None,
4302
+ cnf: dict[str, Any] | None = {},
4303
+ *,
4304
+ background: str = ...,
4305
+ bd: float | str = 1,
4306
+ bg: str = ...,
4307
+ border: float | str = 1,
4308
+ borderwidth: float | str = 1,
4309
+ cursor: _Cursor = "",
4310
+ handlepad: float | str = 8,
4311
+ handlesize: float | str = 8,
4312
+ height: float | str = "",
4313
+ name: str = ...,
4314
+ opaqueresize: bool = True,
4315
+ orient: Literal["horizontal", "vertical"] = "horizontal",
4316
+ proxybackground: str = "",
4317
+ proxyborderwidth: float | str = 2,
4318
+ proxyrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
4319
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
4320
+ sashcursor: _Cursor = "",
4321
+ sashpad: float | str = 0,
4322
+ sashrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = "flat",
4323
+ sashwidth: float | str = 3,
4324
+ showhandle: bool = False,
4325
+ width: float | str = "",
4326
+ ) -> None: ...
4327
+
4328
+ @overload
4329
+ def configure(
4330
+ self,
4331
+ cnf: dict[str, Any] | None = None,
4332
+ *,
4333
+ background: str = ...,
4334
+ bd: float | str = ...,
4335
+ bg: str = ...,
4336
+ border: float | str = ...,
4337
+ borderwidth: float | str = ...,
4338
+ cursor: _Cursor = ...,
4339
+ handlepad: float | str = ...,
4340
+ handlesize: float | str = ...,
4341
+ height: float | str = ...,
4342
+ opaqueresize: bool = ...,
4343
+ orient: Literal["horizontal", "vertical"] = ...,
4344
+ proxybackground: str = ...,
4345
+ proxyborderwidth: float | str = ...,
4346
+ proxyrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
4347
+ relief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
4348
+ sashcursor: _Cursor = ...,
4349
+ sashpad: float | str = ...,
4350
+ sashrelief: Literal["raised", "sunken", "flat", "ridge", "solid", "groove"] = ...,
4351
+ sashwidth: float | str = ...,
4352
+ showhandle: bool = ...,
4353
+ width: float | str = ...,
4354
+ ) -> dict[str, tuple[str, str, str, Any, Any]] | None: ...
4355
+ @overload
4356
+ def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
4357
+
4358
+ config = configure
4359
+ def add(self, child: Widget, **kw) -> None: ...
4360
+ def remove(self, child) -> None: ...
4361
+ forget = remove # type: ignore[assignment]
4362
+ def identify(self, x: int, y: int): ...
4363
+ def proxy(self, *args) -> tuple[Incomplete, ...]: ...
4364
+ def proxy_coord(self) -> tuple[Incomplete, ...]: ...
4365
+ def proxy_forget(self) -> tuple[Incomplete, ...]: ...
4366
+ def proxy_place(self, x, y) -> tuple[Incomplete, ...]: ...
4367
+ def sash(self, *args) -> tuple[Incomplete, ...]: ...
4368
+ def sash_coord(self, index) -> tuple[Incomplete, ...]: ...
4369
+ def sash_mark(self, index) -> tuple[Incomplete, ...]: ...
4370
+ def sash_place(self, index, x, y) -> tuple[Incomplete, ...]: ...
4371
+ def panecget(self, child, option): ...
4372
+ def paneconfigure(self, tagOrId, cnf=None, **kw): ...
4373
+ paneconfig = paneconfigure
4374
+ def panes(self): ...
4375
+
4376
+ def _test() -> None: ...