layermap 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (773) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +11 -0
  3. package/README.md +107 -0
  4. package/analyzers/analyzers.json +18 -0
  5. package/analyzers/go/darwin-arm64/go-map +0 -0
  6. package/analyzers/go/darwin-x64/go-map +0 -0
  7. package/analyzers/go/linux-arm64/go-map +0 -0
  8. package/analyzers/go/linux-x64/go-map +0 -0
  9. package/analyzers/project-map-go-worker.mjs +14710 -0
  10. package/analyzers/project-map-java/LICENSE-lombok +104 -0
  11. package/analyzers/project-map-java/java-map.jar +0 -0
  12. package/analyzers/project-map-java/lombok.jar +0 -0
  13. package/analyzers/project-map-java-worker.mjs +14729 -0
  14. package/analyzers/project-map-python/LICENSE-pyright.txt +22 -0
  15. package/analyzers/project-map-python/typeshed/LICENSE +237 -0
  16. package/analyzers/project-map-python/typeshed/commit.txt +1 -0
  17. package/analyzers/project-map-python/typeshed/stdlib/VERSIONS +349 -0
  18. package/analyzers/project-map-python/typeshed/stdlib/__future__.pyi +36 -0
  19. package/analyzers/project-map-python/typeshed/stdlib/__main__.pyi +1 -0
  20. package/analyzers/project-map-python/typeshed/stdlib/_ast.pyi +141 -0
  21. package/analyzers/project-map-python/typeshed/stdlib/_asyncio.pyi +114 -0
  22. package/analyzers/project-map-python/typeshed/stdlib/_bisect.pyi +103 -0
  23. package/analyzers/project-map-python/typeshed/stdlib/_blake2.pyi +119 -0
  24. package/analyzers/project-map-python/typeshed/stdlib/_bz2.pyi +24 -0
  25. package/analyzers/project-map-python/typeshed/stdlib/_codecs.pyi +122 -0
  26. package/analyzers/project-map-python/typeshed/stdlib/_collections_abc.pyi +105 -0
  27. package/analyzers/project-map-python/typeshed/stdlib/_compat_pickle.pyi +10 -0
  28. package/analyzers/project-map-python/typeshed/stdlib/_compression.pyi +39 -0
  29. package/analyzers/project-map-python/typeshed/stdlib/_contextvars.pyi +69 -0
  30. package/analyzers/project-map-python/typeshed/stdlib/_csv.pyi +116 -0
  31. package/analyzers/project-map-python/typeshed/stdlib/_ctypes.pyi +375 -0
  32. package/analyzers/project-map-python/typeshed/stdlib/_curses.pyi +583 -0
  33. package/analyzers/project-map-python/typeshed/stdlib/_curses_panel.pyi +27 -0
  34. package/analyzers/project-map-python/typeshed/stdlib/_dbm.pyi +46 -0
  35. package/analyzers/project-map-python/typeshed/stdlib/_decimal.pyi +73 -0
  36. package/analyzers/project-map-python/typeshed/stdlib/_frozen_importlib.pyi +115 -0
  37. package/analyzers/project-map-python/typeshed/stdlib/_frozen_importlib_external.pyi +180 -0
  38. package/analyzers/project-map-python/typeshed/stdlib/_gdbm.pyi +50 -0
  39. package/analyzers/project-map-python/typeshed/stdlib/_hashlib.pyi +127 -0
  40. package/analyzers/project-map-python/typeshed/stdlib/_heapq.pyi +18 -0
  41. package/analyzers/project-map-python/typeshed/stdlib/_imp.pyi +30 -0
  42. package/analyzers/project-map-python/typeshed/stdlib/_interpchannels.pyi +86 -0
  43. package/analyzers/project-map-python/typeshed/stdlib/_interpqueues.pyi +31 -0
  44. package/analyzers/project-map-python/typeshed/stdlib/_interpreters.pyi +62 -0
  45. package/analyzers/project-map-python/typeshed/stdlib/_io.pyi +330 -0
  46. package/analyzers/project-map-python/typeshed/stdlib/_json.pyi +59 -0
  47. package/analyzers/project-map-python/typeshed/stdlib/_locale.pyi +121 -0
  48. package/analyzers/project-map-python/typeshed/stdlib/_lsprof.pyi +34 -0
  49. package/analyzers/project-map-python/typeshed/stdlib/_lzma.pyi +71 -0
  50. package/analyzers/project-map-python/typeshed/stdlib/_markupbase.pyi +10 -0
  51. package/analyzers/project-map-python/typeshed/stdlib/_msi.pyi +97 -0
  52. package/analyzers/project-map-python/typeshed/stdlib/_multibytecodec.pyi +49 -0
  53. package/analyzers/project-map-python/typeshed/stdlib/_operator.pyi +157 -0
  54. package/analyzers/project-map-python/typeshed/stdlib/_osx_support.pyi +34 -0
  55. package/analyzers/project-map-python/typeshed/stdlib/_pickle.pyi +114 -0
  56. package/analyzers/project-map-python/typeshed/stdlib/_posixsubprocess.pyi +59 -0
  57. package/analyzers/project-map-python/typeshed/stdlib/_py_abc.pyi +14 -0
  58. package/analyzers/project-map-python/typeshed/stdlib/_pydecimal.pyi +50 -0
  59. package/analyzers/project-map-python/typeshed/stdlib/_queue.pyi +18 -0
  60. package/analyzers/project-map-python/typeshed/stdlib/_random.pyi +14 -0
  61. package/analyzers/project-map-python/typeshed/stdlib/_remote_debugging.pyi +183 -0
  62. package/analyzers/project-map-python/typeshed/stdlib/_sitebuiltins.pyi +17 -0
  63. package/analyzers/project-map-python/typeshed/stdlib/_socket.pyi +966 -0
  64. package/analyzers/project-map-python/typeshed/stdlib/_sqlite3.pyi +311 -0
  65. package/analyzers/project-map-python/typeshed/stdlib/_ssl.pyi +303 -0
  66. package/analyzers/project-map-python/typeshed/stdlib/_stat.pyi +119 -0
  67. package/analyzers/project-map-python/typeshed/stdlib/_struct.pyi +24 -0
  68. package/analyzers/project-map-python/typeshed/stdlib/_thread.pyi +123 -0
  69. package/analyzers/project-map-python/typeshed/stdlib/_threading_local.pyi +24 -0
  70. package/analyzers/project-map-python/typeshed/stdlib/_tkinter.pyi +156 -0
  71. package/analyzers/project-map-python/typeshed/stdlib/_tracemalloc.pyi +13 -0
  72. package/analyzers/project-map-python/typeshed/stdlib/_typeshed/__init__.pyi +393 -0
  73. package/analyzers/project-map-python/typeshed/stdlib/_typeshed/_type_checker_internals.pyi +99 -0
  74. package/analyzers/project-map-python/typeshed/stdlib/_typeshed/dbapi.pyi +36 -0
  75. package/analyzers/project-map-python/typeshed/stdlib/_typeshed/importlib.pyi +18 -0
  76. package/analyzers/project-map-python/typeshed/stdlib/_typeshed/wsgi.pyi +43 -0
  77. package/analyzers/project-map-python/typeshed/stdlib/_typeshed/xml.pyi +9 -0
  78. package/analyzers/project-map-python/typeshed/stdlib/_warnings.pyi +54 -0
  79. package/analyzers/project-map-python/typeshed/stdlib/_weakref.pyi +15 -0
  80. package/analyzers/project-map-python/typeshed/stdlib/_weakrefset.pyi +49 -0
  81. package/analyzers/project-map-python/typeshed/stdlib/_winapi.pyi +314 -0
  82. package/analyzers/project-map-python/typeshed/stdlib/_zstd.pyi +102 -0
  83. package/analyzers/project-map-python/typeshed/stdlib/abc.pyi +50 -0
  84. package/analyzers/project-map-python/typeshed/stdlib/aifc.pyi +79 -0
  85. package/analyzers/project-map-python/typeshed/stdlib/annotationlib.pyi +156 -0
  86. package/analyzers/project-map-python/typeshed/stdlib/antigravity.pyi +3 -0
  87. package/analyzers/project-map-python/typeshed/stdlib/argparse.pyi +864 -0
  88. package/analyzers/project-map-python/typeshed/stdlib/array.pyi +113 -0
  89. package/analyzers/project-map-python/typeshed/stdlib/ast.pyi +2199 -0
  90. package/analyzers/project-map-python/typeshed/stdlib/asynchat.pyi +21 -0
  91. package/analyzers/project-map-python/typeshed/stdlib/asyncio/__init__.pyi +1022 -0
  92. package/analyzers/project-map-python/typeshed/stdlib/asyncio/base_events.pyi +498 -0
  93. package/analyzers/project-map-python/typeshed/stdlib/asyncio/base_futures.pyi +17 -0
  94. package/analyzers/project-map-python/typeshed/stdlib/asyncio/base_subprocess.pyi +62 -0
  95. package/analyzers/project-map-python/typeshed/stdlib/asyncio/base_tasks.pyi +17 -0
  96. package/analyzers/project-map-python/typeshed/stdlib/asyncio/constants.pyi +20 -0
  97. package/analyzers/project-map-python/typeshed/stdlib/asyncio/coroutines.pyi +45 -0
  98. package/analyzers/project-map-python/typeshed/stdlib/asyncio/events.pyi +671 -0
  99. package/analyzers/project-map-python/typeshed/stdlib/asyncio/exceptions.pyi +44 -0
  100. package/analyzers/project-map-python/typeshed/stdlib/asyncio/format_helpers.pyi +31 -0
  101. package/analyzers/project-map-python/typeshed/stdlib/asyncio/futures.pyi +19 -0
  102. package/analyzers/project-map-python/typeshed/stdlib/asyncio/graph.pyi +29 -0
  103. package/analyzers/project-map-python/typeshed/stdlib/asyncio/locks.pyi +83 -0
  104. package/analyzers/project-map-python/typeshed/stdlib/asyncio/log.pyi +3 -0
  105. package/analyzers/project-map-python/typeshed/stdlib/asyncio/mixins.pyi +9 -0
  106. package/analyzers/project-map-python/typeshed/stdlib/asyncio/proactor_events.pyi +53 -0
  107. package/analyzers/project-map-python/typeshed/stdlib/asyncio/protocols.pyi +41 -0
  108. package/analyzers/project-map-python/typeshed/stdlib/asyncio/queues.pyi +45 -0
  109. package/analyzers/project-map-python/typeshed/stdlib/asyncio/runners.pyi +41 -0
  110. package/analyzers/project-map-python/typeshed/stdlib/asyncio/selector_events.pyi +10 -0
  111. package/analyzers/project-map-python/typeshed/stdlib/asyncio/sslproto.pyi +164 -0
  112. package/analyzers/project-map-python/typeshed/stdlib/asyncio/staggered.pyi +10 -0
  113. package/analyzers/project-map-python/typeshed/stdlib/asyncio/streams.pyi +124 -0
  114. package/analyzers/project-map-python/typeshed/stdlib/asyncio/subprocess.pyi +166 -0
  115. package/analyzers/project-map-python/typeshed/stdlib/asyncio/taskgroups.pyi +41 -0
  116. package/analyzers/project-map-python/typeshed/stdlib/asyncio/tasks.pyi +315 -0
  117. package/analyzers/project-map-python/typeshed/stdlib/asyncio/threads.pyi +9 -0
  118. package/analyzers/project-map-python/typeshed/stdlib/asyncio/timeouts.pyi +20 -0
  119. package/analyzers/project-map-python/typeshed/stdlib/asyncio/tools.pyi +51 -0
  120. package/analyzers/project-map-python/typeshed/stdlib/asyncio/transports.pyi +57 -0
  121. package/analyzers/project-map-python/typeshed/stdlib/asyncio/trsock.pyi +137 -0
  122. package/analyzers/project-map-python/typeshed/stdlib/asyncio/unix_events.pyi +277 -0
  123. package/analyzers/project-map-python/typeshed/stdlib/asyncio/windows_events.pyi +121 -0
  124. package/analyzers/project-map-python/typeshed/stdlib/asyncio/windows_utils.pyi +49 -0
  125. package/analyzers/project-map-python/typeshed/stdlib/asyncore.pyi +91 -0
  126. package/analyzers/project-map-python/typeshed/stdlib/atexit.pyi +11 -0
  127. package/analyzers/project-map-python/typeshed/stdlib/audioop.pyi +44 -0
  128. package/analyzers/project-map-python/typeshed/stdlib/base64.pyi +124 -0
  129. package/analyzers/project-map-python/typeshed/stdlib/bdb.pyi +139 -0
  130. package/analyzers/project-map-python/typeshed/stdlib/binascii.pyi +102 -0
  131. package/analyzers/project-map-python/typeshed/stdlib/binhex.pyi +44 -0
  132. package/analyzers/project-map-python/typeshed/stdlib/bisect.pyi +4 -0
  133. package/analyzers/project-map-python/typeshed/stdlib/builtins.pyi +2679 -0
  134. package/analyzers/project-map-python/typeshed/stdlib/bz2.pyi +121 -0
  135. package/analyzers/project-map-python/typeshed/stdlib/cProfile.pyi +33 -0
  136. package/analyzers/project-map-python/typeshed/stdlib/calendar.pyi +249 -0
  137. package/analyzers/project-map-python/typeshed/stdlib/cgi.pyi +120 -0
  138. package/analyzers/project-map-python/typeshed/stdlib/cgitb.pyi +32 -0
  139. package/analyzers/project-map-python/typeshed/stdlib/chunk.pyi +20 -0
  140. package/analyzers/project-map-python/typeshed/stdlib/cmath.pyi +36 -0
  141. package/analyzers/project-map-python/typeshed/stdlib/cmd.pyi +46 -0
  142. package/analyzers/project-map-python/typeshed/stdlib/code.pyi +55 -0
  143. package/analyzers/project-map-python/typeshed/stdlib/codecs.pyi +357 -0
  144. package/analyzers/project-map-python/typeshed/stdlib/codeop.pyi +21 -0
  145. package/analyzers/project-map-python/typeshed/stdlib/collections/__init__.pyi +564 -0
  146. package/analyzers/project-map-python/typeshed/stdlib/collections/abc.pyi +2 -0
  147. package/analyzers/project-map-python/typeshed/stdlib/colorsys.pyi +15 -0
  148. package/analyzers/project-map-python/typeshed/stdlib/compileall.pyi +51 -0
  149. package/analyzers/project-map-python/typeshed/stdlib/compression/__init__.pyi +0 -0
  150. package/analyzers/project-map-python/typeshed/stdlib/compression/_common/__init__.pyi +0 -0
  151. package/analyzers/project-map-python/typeshed/stdlib/compression/_common/_streams.pyi +37 -0
  152. package/analyzers/project-map-python/typeshed/stdlib/compression/bz2.pyi +1 -0
  153. package/analyzers/project-map-python/typeshed/stdlib/compression/gzip.pyi +1 -0
  154. package/analyzers/project-map-python/typeshed/stdlib/compression/lzma.pyi +1 -0
  155. package/analyzers/project-map-python/typeshed/stdlib/compression/zlib.pyi +1 -0
  156. package/analyzers/project-map-python/typeshed/stdlib/compression/zstd/__init__.pyi +94 -0
  157. package/analyzers/project-map-python/typeshed/stdlib/compression/zstd/_zstdfile.pyi +117 -0
  158. package/analyzers/project-map-python/typeshed/stdlib/concurrent/__init__.pyi +0 -0
  159. package/analyzers/project-map-python/typeshed/stdlib/concurrent/futures/__init__.pyi +71 -0
  160. package/analyzers/project-map-python/typeshed/stdlib/concurrent/futures/_base.pyi +119 -0
  161. package/analyzers/project-map-python/typeshed/stdlib/concurrent/futures/interpreter.pyi +82 -0
  162. package/analyzers/project-map-python/typeshed/stdlib/concurrent/futures/process.pyi +242 -0
  163. package/analyzers/project-map-python/typeshed/stdlib/concurrent/futures/thread.pyi +143 -0
  164. package/analyzers/project-map-python/typeshed/stdlib/concurrent/interpreters/__init__.pyi +68 -0
  165. package/analyzers/project-map-python/typeshed/stdlib/concurrent/interpreters/_crossinterp.pyi +30 -0
  166. package/analyzers/project-map-python/typeshed/stdlib/concurrent/interpreters/_queues.pyi +74 -0
  167. package/analyzers/project-map-python/typeshed/stdlib/configparser.pyi +507 -0
  168. package/analyzers/project-map-python/typeshed/stdlib/contextlib.pyi +224 -0
  169. package/analyzers/project-map-python/typeshed/stdlib/contextvars.pyi +3 -0
  170. package/analyzers/project-map-python/typeshed/stdlib/copy.pyi +28 -0
  171. package/analyzers/project-map-python/typeshed/stdlib/copyreg.pyi +20 -0
  172. package/analyzers/project-map-python/typeshed/stdlib/crypt.pyi +26 -0
  173. package/analyzers/project-map-python/typeshed/stdlib/csv.pyi +153 -0
  174. package/analyzers/project-map-python/typeshed/stdlib/ctypes/__init__.pyi +394 -0
  175. package/analyzers/project-map-python/typeshed/stdlib/ctypes/_endian.pyi +16 -0
  176. package/analyzers/project-map-python/typeshed/stdlib/ctypes/macholib/__init__.pyi +3 -0
  177. package/analyzers/project-map-python/typeshed/stdlib/ctypes/macholib/dyld.pyi +8 -0
  178. package/analyzers/project-map-python/typeshed/stdlib/ctypes/macholib/dylib.pyi +14 -0
  179. package/analyzers/project-map-python/typeshed/stdlib/ctypes/macholib/framework.pyi +14 -0
  180. package/analyzers/project-map-python/typeshed/stdlib/ctypes/util.pyi +11 -0
  181. package/analyzers/project-map-python/typeshed/stdlib/ctypes/wintypes.pyi +321 -0
  182. package/analyzers/project-map-python/typeshed/stdlib/curses/__init__.pyi +38 -0
  183. package/analyzers/project-map-python/typeshed/stdlib/curses/ascii.pyi +62 -0
  184. package/analyzers/project-map-python/typeshed/stdlib/curses/has_key.pyi +1 -0
  185. package/analyzers/project-map-python/typeshed/stdlib/curses/panel.pyi +1 -0
  186. package/analyzers/project-map-python/typeshed/stdlib/curses/textpad.pyi +11 -0
  187. package/analyzers/project-map-python/typeshed/stdlib/dataclasses.pyi +397 -0
  188. package/analyzers/project-map-python/typeshed/stdlib/datetime.pyi +381 -0
  189. package/analyzers/project-map-python/typeshed/stdlib/dbm/__init__.pyi +105 -0
  190. package/analyzers/project-map-python/typeshed/stdlib/dbm/dumb.pyi +41 -0
  191. package/analyzers/project-map-python/typeshed/stdlib/dbm/gnu.pyi +1 -0
  192. package/analyzers/project-map-python/typeshed/stdlib/dbm/ndbm.pyi +1 -0
  193. package/analyzers/project-map-python/typeshed/stdlib/dbm/sqlite3.pyi +34 -0
  194. package/analyzers/project-map-python/typeshed/stdlib/decimal.pyi +278 -0
  195. package/analyzers/project-map-python/typeshed/stdlib/difflib.pyi +157 -0
  196. package/analyzers/project-map-python/typeshed/stdlib/dis.pyi +302 -0
  197. package/analyzers/project-map-python/typeshed/stdlib/distutils/__init__.pyi +5 -0
  198. package/analyzers/project-map-python/typeshed/stdlib/distutils/_msvccompiler.pyi +13 -0
  199. package/analyzers/project-map-python/typeshed/stdlib/distutils/archive_util.pyi +36 -0
  200. package/analyzers/project-map-python/typeshed/stdlib/distutils/bcppcompiler.pyi +3 -0
  201. package/analyzers/project-map-python/typeshed/stdlib/distutils/ccompiler.pyi +182 -0
  202. package/analyzers/project-map-python/typeshed/stdlib/distutils/cmd.pyi +238 -0
  203. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/__init__.pyi +41 -0
  204. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/bdist.pyi +27 -0
  205. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/bdist_dumb.pyi +22 -0
  206. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/bdist_msi.pyi +45 -0
  207. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/bdist_packager.pyi +0 -0
  208. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/bdist_rpm.pyi +53 -0
  209. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/build.pyi +34 -0
  210. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/build_clib.pyi +29 -0
  211. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/build_ext.pyi +52 -0
  212. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/build_py.pyi +45 -0
  213. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/build_scripts.pyi +25 -0
  214. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/check.pyi +39 -0
  215. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/clean.pyi +18 -0
  216. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/config.pyi +84 -0
  217. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/install.pyi +67 -0
  218. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/install_data.pyi +20 -0
  219. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/install_egg_info.pyi +19 -0
  220. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/install_headers.pyi +17 -0
  221. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/install_lib.pyi +26 -0
  222. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/install_scripts.pyi +19 -0
  223. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/register.pyi +20 -0
  224. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/sdist.pyi +45 -0
  225. package/analyzers/project-map-python/typeshed/stdlib/distutils/command/upload.pyi +18 -0
  226. package/analyzers/project-map-python/typeshed/stdlib/distutils/config.pyi +17 -0
  227. package/analyzers/project-map-python/typeshed/stdlib/distutils/core.pyi +58 -0
  228. package/analyzers/project-map-python/typeshed/stdlib/distutils/cygwinccompiler.pyi +20 -0
  229. package/analyzers/project-map-python/typeshed/stdlib/distutils/debug.pyi +3 -0
  230. package/analyzers/project-map-python/typeshed/stdlib/distutils/dep_util.pyi +14 -0
  231. package/analyzers/project-map-python/typeshed/stdlib/distutils/dir_util.pyi +23 -0
  232. package/analyzers/project-map-python/typeshed/stdlib/distutils/dist.pyi +318 -0
  233. package/analyzers/project-map-python/typeshed/stdlib/distutils/errors.pyi +19 -0
  234. package/analyzers/project-map-python/typeshed/stdlib/distutils/extension.pyi +36 -0
  235. package/analyzers/project-map-python/typeshed/stdlib/distutils/fancy_getopt.pyi +45 -0
  236. package/analyzers/project-map-python/typeshed/stdlib/distutils/file_util.pyi +40 -0
  237. package/analyzers/project-map-python/typeshed/stdlib/distutils/filelist.pyi +61 -0
  238. package/analyzers/project-map-python/typeshed/stdlib/distutils/log.pyi +26 -0
  239. package/analyzers/project-map-python/typeshed/stdlib/distutils/msvccompiler.pyi +3 -0
  240. package/analyzers/project-map-python/typeshed/stdlib/distutils/spawn.pyi +10 -0
  241. package/analyzers/project-map-python/typeshed/stdlib/distutils/sysconfig.pyi +32 -0
  242. package/analyzers/project-map-python/typeshed/stdlib/distutils/text_file.pyi +21 -0
  243. package/analyzers/project-map-python/typeshed/stdlib/distutils/unixccompiler.pyi +3 -0
  244. package/analyzers/project-map-python/typeshed/stdlib/distutils/util.pyi +53 -0
  245. package/analyzers/project-map-python/typeshed/stdlib/distutils/version.pyi +36 -0
  246. package/analyzers/project-map-python/typeshed/stdlib/doctest.pyi +262 -0
  247. package/analyzers/project-map-python/typeshed/stdlib/email/__init__.pyi +62 -0
  248. package/analyzers/project-map-python/typeshed/stdlib/email/_header_value_parser.pyi +414 -0
  249. package/analyzers/project-map-python/typeshed/stdlib/email/_policybase.pyi +80 -0
  250. package/analyzers/project-map-python/typeshed/stdlib/email/base64mime.pyi +13 -0
  251. package/analyzers/project-map-python/typeshed/stdlib/email/charset.pyi +44 -0
  252. package/analyzers/project-map-python/typeshed/stdlib/email/contentmanager.pyi +11 -0
  253. package/analyzers/project-map-python/typeshed/stdlib/email/encoders.pyi +8 -0
  254. package/analyzers/project-map-python/typeshed/stdlib/email/errors.pyi +38 -0
  255. package/analyzers/project-map-python/typeshed/stdlib/email/feedparser.pyi +24 -0
  256. package/analyzers/project-map-python/typeshed/stdlib/email/generator.pyi +79 -0
  257. package/analyzers/project-map-python/typeshed/stdlib/email/header.pyi +32 -0
  258. package/analyzers/project-map-python/typeshed/stdlib/email/headerregistry.pyi +193 -0
  259. package/analyzers/project-map-python/typeshed/stdlib/email/iterators.pyi +15 -0
  260. package/analyzers/project-map-python/typeshed/stdlib/email/message.pyi +191 -0
  261. package/analyzers/project-map-python/typeshed/stdlib/email/mime/__init__.pyi +0 -0
  262. package/analyzers/project-map-python/typeshed/stdlib/email/mime/application.pyi +17 -0
  263. package/analyzers/project-map-python/typeshed/stdlib/email/mime/audio.pyi +17 -0
  264. package/analyzers/project-map-python/typeshed/stdlib/email/mime/base.pyi +8 -0
  265. package/analyzers/project-map-python/typeshed/stdlib/email/mime/image.pyi +17 -0
  266. package/analyzers/project-map-python/typeshed/stdlib/email/mime/message.pyi +8 -0
  267. package/analyzers/project-map-python/typeshed/stdlib/email/mime/multipart.pyi +18 -0
  268. package/analyzers/project-map-python/typeshed/stdlib/email/mime/nonmultipart.pyi +5 -0
  269. package/analyzers/project-map-python/typeshed/stdlib/email/mime/text.pyi +9 -0
  270. package/analyzers/project-map-python/typeshed/stdlib/email/parser.pyi +42 -0
  271. package/analyzers/project-map-python/typeshed/stdlib/email/policy.pyi +77 -0
  272. package/analyzers/project-map-python/typeshed/stdlib/email/quoprimime.pyi +28 -0
  273. package/analyzers/project-map-python/typeshed/stdlib/email/utils.pyi +72 -0
  274. package/analyzers/project-map-python/typeshed/stdlib/encodings/__init__.pyi +15 -0
  275. package/analyzers/project-map-python/typeshed/stdlib/encodings/aliases.pyi +1 -0
  276. package/analyzers/project-map-python/typeshed/stdlib/encodings/ascii.pyi +30 -0
  277. package/analyzers/project-map-python/typeshed/stdlib/encodings/base64_codec.pyi +26 -0
  278. package/analyzers/project-map-python/typeshed/stdlib/encodings/big5.pyi +23 -0
  279. package/analyzers/project-map-python/typeshed/stdlib/encodings/big5hkscs.pyi +23 -0
  280. package/analyzers/project-map-python/typeshed/stdlib/encodings/bz2_codec.pyi +26 -0
  281. package/analyzers/project-map-python/typeshed/stdlib/encodings/charmap.pyi +33 -0
  282. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp037.pyi +21 -0
  283. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1006.pyi +21 -0
  284. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1026.pyi +21 -0
  285. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1125.pyi +21 -0
  286. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1140.pyi +21 -0
  287. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1250.pyi +21 -0
  288. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1251.pyi +21 -0
  289. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1252.pyi +21 -0
  290. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1253.pyi +21 -0
  291. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1254.pyi +21 -0
  292. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1255.pyi +21 -0
  293. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1256.pyi +21 -0
  294. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1257.pyi +21 -0
  295. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp1258.pyi +21 -0
  296. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp273.pyi +21 -0
  297. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp424.pyi +21 -0
  298. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp437.pyi +21 -0
  299. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp500.pyi +21 -0
  300. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp720.pyi +21 -0
  301. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp737.pyi +21 -0
  302. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp775.pyi +21 -0
  303. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp850.pyi +21 -0
  304. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp852.pyi +21 -0
  305. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp855.pyi +21 -0
  306. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp856.pyi +21 -0
  307. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp857.pyi +21 -0
  308. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp858.pyi +21 -0
  309. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp860.pyi +21 -0
  310. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp861.pyi +21 -0
  311. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp862.pyi +21 -0
  312. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp863.pyi +21 -0
  313. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp864.pyi +21 -0
  314. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp865.pyi +21 -0
  315. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp866.pyi +21 -0
  316. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp869.pyi +21 -0
  317. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp874.pyi +21 -0
  318. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp875.pyi +21 -0
  319. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp932.pyi +23 -0
  320. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp949.pyi +23 -0
  321. package/analyzers/project-map-python/typeshed/stdlib/encodings/cp950.pyi +23 -0
  322. package/analyzers/project-map-python/typeshed/stdlib/encodings/euc_jis_2004.pyi +23 -0
  323. package/analyzers/project-map-python/typeshed/stdlib/encodings/euc_jisx0213.pyi +23 -0
  324. package/analyzers/project-map-python/typeshed/stdlib/encodings/euc_jp.pyi +23 -0
  325. package/analyzers/project-map-python/typeshed/stdlib/encodings/euc_kr.pyi +23 -0
  326. package/analyzers/project-map-python/typeshed/stdlib/encodings/gb18030.pyi +23 -0
  327. package/analyzers/project-map-python/typeshed/stdlib/encodings/gb2312.pyi +23 -0
  328. package/analyzers/project-map-python/typeshed/stdlib/encodings/gbk.pyi +23 -0
  329. package/analyzers/project-map-python/typeshed/stdlib/encodings/hex_codec.pyi +26 -0
  330. package/analyzers/project-map-python/typeshed/stdlib/encodings/hp_roman8.pyi +21 -0
  331. package/analyzers/project-map-python/typeshed/stdlib/encodings/hz.pyi +23 -0
  332. package/analyzers/project-map-python/typeshed/stdlib/encodings/idna.pyi +26 -0
  333. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso2022_jp.pyi +23 -0
  334. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso2022_jp_1.pyi +23 -0
  335. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso2022_jp_2.pyi +23 -0
  336. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso2022_jp_2004.pyi +23 -0
  337. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso2022_jp_3.pyi +23 -0
  338. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso2022_jp_ext.pyi +23 -0
  339. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso2022_kr.pyi +23 -0
  340. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_1.pyi +21 -0
  341. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_10.pyi +21 -0
  342. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_11.pyi +21 -0
  343. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_13.pyi +21 -0
  344. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_14.pyi +21 -0
  345. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_15.pyi +21 -0
  346. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_16.pyi +21 -0
  347. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_2.pyi +21 -0
  348. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_3.pyi +21 -0
  349. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_4.pyi +21 -0
  350. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_5.pyi +21 -0
  351. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_6.pyi +21 -0
  352. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_7.pyi +21 -0
  353. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_8.pyi +21 -0
  354. package/analyzers/project-map-python/typeshed/stdlib/encodings/iso8859_9.pyi +21 -0
  355. package/analyzers/project-map-python/typeshed/stdlib/encodings/johab.pyi +23 -0
  356. package/analyzers/project-map-python/typeshed/stdlib/encodings/koi8_r.pyi +21 -0
  357. package/analyzers/project-map-python/typeshed/stdlib/encodings/koi8_t.pyi +21 -0
  358. package/analyzers/project-map-python/typeshed/stdlib/encodings/koi8_u.pyi +21 -0
  359. package/analyzers/project-map-python/typeshed/stdlib/encodings/kz1048.pyi +21 -0
  360. package/analyzers/project-map-python/typeshed/stdlib/encodings/latin_1.pyi +30 -0
  361. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_arabic.pyi +21 -0
  362. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_croatian.pyi +21 -0
  363. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_cyrillic.pyi +21 -0
  364. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_farsi.pyi +21 -0
  365. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_greek.pyi +21 -0
  366. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_iceland.pyi +21 -0
  367. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_latin2.pyi +21 -0
  368. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_roman.pyi +21 -0
  369. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_romanian.pyi +21 -0
  370. package/analyzers/project-map-python/typeshed/stdlib/encodings/mac_turkish.pyi +21 -0
  371. package/analyzers/project-map-python/typeshed/stdlib/encodings/mbcs.pyi +28 -0
  372. package/analyzers/project-map-python/typeshed/stdlib/encodings/oem.pyi +28 -0
  373. package/analyzers/project-map-python/typeshed/stdlib/encodings/palmos.pyi +21 -0
  374. package/analyzers/project-map-python/typeshed/stdlib/encodings/ptcp154.pyi +21 -0
  375. package/analyzers/project-map-python/typeshed/stdlib/encodings/punycode.pyi +33 -0
  376. package/analyzers/project-map-python/typeshed/stdlib/encodings/quopri_codec.pyi +26 -0
  377. package/analyzers/project-map-python/typeshed/stdlib/encodings/raw_unicode_escape.pyi +23 -0
  378. package/analyzers/project-map-python/typeshed/stdlib/encodings/rot_13.pyi +23 -0
  379. package/analyzers/project-map-python/typeshed/stdlib/encodings/shift_jis.pyi +23 -0
  380. package/analyzers/project-map-python/typeshed/stdlib/encodings/shift_jis_2004.pyi +23 -0
  381. package/analyzers/project-map-python/typeshed/stdlib/encodings/shift_jisx0213.pyi +23 -0
  382. package/analyzers/project-map-python/typeshed/stdlib/encodings/tis_620.pyi +21 -0
  383. package/analyzers/project-map-python/typeshed/stdlib/encodings/undefined.pyi +20 -0
  384. package/analyzers/project-map-python/typeshed/stdlib/encodings/unicode_escape.pyi +23 -0
  385. package/analyzers/project-map-python/typeshed/stdlib/encodings/utf_16.pyi +20 -0
  386. package/analyzers/project-map-python/typeshed/stdlib/encodings/utf_16_be.pyi +26 -0
  387. package/analyzers/project-map-python/typeshed/stdlib/encodings/utf_16_le.pyi +26 -0
  388. package/analyzers/project-map-python/typeshed/stdlib/encodings/utf_32.pyi +20 -0
  389. package/analyzers/project-map-python/typeshed/stdlib/encodings/utf_32_be.pyi +26 -0
  390. package/analyzers/project-map-python/typeshed/stdlib/encodings/utf_32_le.pyi +26 -0
  391. package/analyzers/project-map-python/typeshed/stdlib/encodings/utf_7.pyi +26 -0
  392. package/analyzers/project-map-python/typeshed/stdlib/encodings/utf_8.pyi +26 -0
  393. package/analyzers/project-map-python/typeshed/stdlib/encodings/utf_8_sig.pyi +22 -0
  394. package/analyzers/project-map-python/typeshed/stdlib/encodings/uu_codec.pyi +28 -0
  395. package/analyzers/project-map-python/typeshed/stdlib/encodings/zlib_codec.pyi +26 -0
  396. package/analyzers/project-map-python/typeshed/stdlib/ensurepip/__init__.pyi +12 -0
  397. package/analyzers/project-map-python/typeshed/stdlib/enum.pyi +374 -0
  398. package/analyzers/project-map-python/typeshed/stdlib/errno.pyi +227 -0
  399. package/analyzers/project-map-python/typeshed/stdlib/faulthandler.pyi +61 -0
  400. package/analyzers/project-map-python/typeshed/stdlib/fcntl.pyi +157 -0
  401. package/analyzers/project-map-python/typeshed/stdlib/filecmp.pyi +65 -0
  402. package/analyzers/project-map-python/typeshed/stdlib/fileinput.pyi +141 -0
  403. package/analyzers/project-map-python/typeshed/stdlib/fnmatch.pyi +15 -0
  404. package/analyzers/project-map-python/typeshed/stdlib/fractions.pyi +185 -0
  405. package/analyzers/project-map-python/typeshed/stdlib/ftplib.pyi +174 -0
  406. package/analyzers/project-map-python/typeshed/stdlib/functools.pyi +281 -0
  407. package/analyzers/project-map-python/typeshed/stdlib/gc.pyi +32 -0
  408. package/analyzers/project-map-python/typeshed/stdlib/genericpath.pyi +98 -0
  409. package/analyzers/project-map-python/typeshed/stdlib/getopt.pyi +27 -0
  410. package/analyzers/project-map-python/typeshed/stdlib/getpass.pyi +14 -0
  411. package/analyzers/project-map-python/typeshed/stdlib/gettext.pyi +190 -0
  412. package/analyzers/project-map-python/typeshed/stdlib/glob.pyi +54 -0
  413. package/analyzers/project-map-python/typeshed/stdlib/graphlib.pyi +29 -0
  414. package/analyzers/project-map-python/typeshed/stdlib/grp.pyi +21 -0
  415. package/analyzers/project-map-python/typeshed/stdlib/gzip.pyi +181 -0
  416. package/analyzers/project-map-python/typeshed/stdlib/hashlib.pyi +112 -0
  417. package/analyzers/project-map-python/typeshed/stdlib/heapq.pyi +32 -0
  418. package/analyzers/project-map-python/typeshed/stdlib/hmac.pyi +33 -0
  419. package/analyzers/project-map-python/typeshed/stdlib/html/__init__.pyi +7 -0
  420. package/analyzers/project-map-python/typeshed/stdlib/html/entities.pyi +8 -0
  421. package/analyzers/project-map-python/typeshed/stdlib/html/parser.pyi +40 -0
  422. package/analyzers/project-map-python/typeshed/stdlib/http/__init__.pyi +118 -0
  423. package/analyzers/project-map-python/typeshed/stdlib/http/client.pyi +318 -0
  424. package/analyzers/project-map-python/typeshed/stdlib/http/cookiejar.pyi +158 -0
  425. package/analyzers/project-map-python/typeshed/stdlib/http/cookies.pyi +53 -0
  426. package/analyzers/project-map-python/typeshed/stdlib/http/server.pyi +139 -0
  427. package/analyzers/project-map-python/typeshed/stdlib/imaplib.pyi +195 -0
  428. package/analyzers/project-map-python/typeshed/stdlib/imghdr.pyi +18 -0
  429. package/analyzers/project-map-python/typeshed/stdlib/imp.pyi +63 -0
  430. package/analyzers/project-map-python/typeshed/stdlib/importlib/__init__.pyi +17 -0
  431. package/analyzers/project-map-python/typeshed/stdlib/importlib/_abc.pyi +19 -0
  432. package/analyzers/project-map-python/typeshed/stdlib/importlib/_bootstrap.pyi +2 -0
  433. package/analyzers/project-map-python/typeshed/stdlib/importlib/_bootstrap_external.pyi +2 -0
  434. package/analyzers/project-map-python/typeshed/stdlib/importlib/abc.pyi +150 -0
  435. package/analyzers/project-map-python/typeshed/stdlib/importlib/machinery.pyi +43 -0
  436. package/analyzers/project-map-python/typeshed/stdlib/importlib/metadata/__init__.pyi +310 -0
  437. package/analyzers/project-map-python/typeshed/stdlib/importlib/metadata/_meta.pyi +65 -0
  438. package/analyzers/project-map-python/typeshed/stdlib/importlib/metadata/diagnose.pyi +2 -0
  439. package/analyzers/project-map-python/typeshed/stdlib/importlib/readers.pyi +69 -0
  440. package/analyzers/project-map-python/typeshed/stdlib/importlib/resources/__init__.pyi +81 -0
  441. package/analyzers/project-map-python/typeshed/stdlib/importlib/resources/_common.pyi +43 -0
  442. package/analyzers/project-map-python/typeshed/stdlib/importlib/resources/_functional.pyi +35 -0
  443. package/analyzers/project-map-python/typeshed/stdlib/importlib/resources/abc.pyi +64 -0
  444. package/analyzers/project-map-python/typeshed/stdlib/importlib/resources/readers.pyi +14 -0
  445. package/analyzers/project-map-python/typeshed/stdlib/importlib/resources/simple.pyi +59 -0
  446. package/analyzers/project-map-python/typeshed/stdlib/importlib/simple.pyi +11 -0
  447. package/analyzers/project-map-python/typeshed/stdlib/importlib/util.pyi +75 -0
  448. package/analyzers/project-map-python/typeshed/stdlib/inspect.pyi +749 -0
  449. package/analyzers/project-map-python/typeshed/stdlib/io.pyi +75 -0
  450. package/analyzers/project-map-python/typeshed/stdlib/ipaddress.pyi +249 -0
  451. package/analyzers/project-map-python/typeshed/stdlib/itertools.pyi +376 -0
  452. package/analyzers/project-map-python/typeshed/stdlib/json/__init__.pyi +93 -0
  453. package/analyzers/project-map-python/typeshed/stdlib/json/decoder.pyi +50 -0
  454. package/analyzers/project-map-python/typeshed/stdlib/json/encoder.pyi +40 -0
  455. package/analyzers/project-map-python/typeshed/stdlib/json/scanner.pyi +7 -0
  456. package/analyzers/project-map-python/typeshed/stdlib/json/tool.pyi +1 -0
  457. package/analyzers/project-map-python/typeshed/stdlib/keyword.pyi +16 -0
  458. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/__init__.pyi +0 -0
  459. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/btm_matcher.pyi +28 -0
  460. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixer_base.pyi +42 -0
  461. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/__init__.pyi +0 -0
  462. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_apply.pyi +8 -0
  463. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_asserts.pyi +10 -0
  464. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_basestring.pyi +8 -0
  465. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_buffer.pyi +8 -0
  466. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_dict.pyi +16 -0
  467. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_except.pyi +14 -0
  468. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_exec.pyi +8 -0
  469. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_execfile.pyi +8 -0
  470. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_exitfunc.pyi +13 -0
  471. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_filter.pyi +9 -0
  472. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_funcattrs.pyi +8 -0
  473. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_future.pyi +8 -0
  474. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_getcwdu.pyi +8 -0
  475. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_has_key.pyi +8 -0
  476. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_idioms.pyi +15 -0
  477. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_import.pyi +16 -0
  478. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_imports.pyi +21 -0
  479. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_imports2.pyi +8 -0
  480. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_input.pyi +11 -0
  481. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_intern.pyi +9 -0
  482. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_isinstance.pyi +8 -0
  483. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_itertools.pyi +9 -0
  484. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_itertools_imports.pyi +7 -0
  485. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_long.pyi +7 -0
  486. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_map.pyi +9 -0
  487. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_metaclass.pyi +17 -0
  488. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_methodattrs.pyi +10 -0
  489. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_ne.pyi +8 -0
  490. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_next.pyi +19 -0
  491. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_nonzero.pyi +8 -0
  492. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_numliterals.pyi +8 -0
  493. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_operator.pyi +12 -0
  494. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_paren.pyi +8 -0
  495. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_print.pyi +12 -0
  496. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_raise.pyi +8 -0
  497. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_raw_input.pyi +8 -0
  498. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_reduce.pyi +8 -0
  499. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_reload.pyi +9 -0
  500. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_renames.pyi +17 -0
  501. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_repr.pyi +8 -0
  502. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_set_literal.pyi +7 -0
  503. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_standarderror.pyi +8 -0
  504. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_sys_exc.pyi +9 -0
  505. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_throw.pyi +8 -0
  506. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_tuple_params.pyi +16 -0
  507. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_types.pyi +8 -0
  508. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_unicode.pyi +12 -0
  509. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_urllib.pyi +15 -0
  510. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_ws_comma.pyi +12 -0
  511. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_xrange.pyi +20 -0
  512. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_xreadlines.pyi +8 -0
  513. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/fixes/fix_zip.pyi +9 -0
  514. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/main.pyi +42 -0
  515. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pgen2/__init__.pyi +8 -0
  516. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pgen2/driver.pyi +27 -0
  517. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pgen2/grammar.pyi +25 -0
  518. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pgen2/literals.pyi +7 -0
  519. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pgen2/parse.pyi +30 -0
  520. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pgen2/pgen.pyi +52 -0
  521. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pgen2/token.pyi +69 -0
  522. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pgen2/tokenize.pyi +96 -0
  523. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pygram.pyi +114 -0
  524. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/pytree.pyi +118 -0
  525. package/analyzers/project-map-python/typeshed/stdlib/lib2to3/refactor.pyi +85 -0
  526. package/analyzers/project-map-python/typeshed/stdlib/linecache.pyi +18 -0
  527. package/analyzers/project-map-python/typeshed/stdlib/locale.pyi +160 -0
  528. package/analyzers/project-map-python/typeshed/stdlib/logging/__init__.pyi +674 -0
  529. package/analyzers/project-map-python/typeshed/stdlib/logging/config.pyi +141 -0
  530. package/analyzers/project-map-python/typeshed/stdlib/logging/handlers.pyi +258 -0
  531. package/analyzers/project-map-python/typeshed/stdlib/lzma.pyi +181 -0
  532. package/analyzers/project-map-python/typeshed/stdlib/mailbox.pyi +301 -0
  533. package/analyzers/project-map-python/typeshed/stdlib/mailcap.pyi +11 -0
  534. package/analyzers/project-map-python/typeshed/stdlib/marshal.pyi +52 -0
  535. package/analyzers/project-map-python/typeshed/stdlib/math/__init__.pyi +157 -0
  536. package/analyzers/project-map-python/typeshed/stdlib/math/integer.pyi +8 -0
  537. package/analyzers/project-map-python/typeshed/stdlib/mimetypes.pyi +56 -0
  538. package/analyzers/project-map-python/typeshed/stdlib/mmap.pyi +187 -0
  539. package/analyzers/project-map-python/typeshed/stdlib/modulefinder.pyi +68 -0
  540. package/analyzers/project-map-python/typeshed/stdlib/msilib/__init__.pyi +177 -0
  541. package/analyzers/project-map-python/typeshed/stdlib/msilib/schema.pyi +95 -0
  542. package/analyzers/project-map-python/typeshed/stdlib/msilib/sequence.pyi +13 -0
  543. package/analyzers/project-map-python/typeshed/stdlib/msilib/text.pyi +8 -0
  544. package/analyzers/project-map-python/typeshed/stdlib/msvcrt.pyi +31 -0
  545. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/__init__.pyi +90 -0
  546. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/connection.pyi +94 -0
  547. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/context.pyi +220 -0
  548. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/dummy/__init__.pyi +89 -0
  549. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/dummy/connection.pyi +39 -0
  550. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/forkserver.pyi +78 -0
  551. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/heap.pyi +41 -0
  552. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/managers.pyi +389 -0
  553. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/pool.pyi +101 -0
  554. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/popen_fork.pyi +26 -0
  555. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/popen_forkserver.pyi +16 -0
  556. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/popen_spawn_posix.pyi +20 -0
  557. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/popen_spawn_win32.pyi +30 -0
  558. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/process.pyi +43 -0
  559. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/queues.pyi +46 -0
  560. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/reduction.pyi +95 -0
  561. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/resource_sharer.pyi +20 -0
  562. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/resource_tracker.pyi +21 -0
  563. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/shared_memory.pyi +43 -0
  564. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/sharedctypes.pyi +140 -0
  565. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/spawn.pyi +32 -0
  566. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/synchronize.pyi +63 -0
  567. package/analyzers/project-map-python/typeshed/stdlib/multiprocessing/util.pyi +109 -0
  568. package/analyzers/project-map-python/typeshed/stdlib/netrc.pyi +23 -0
  569. package/analyzers/project-map-python/typeshed/stdlib/nis.pyi +9 -0
  570. package/analyzers/project-map-python/typeshed/stdlib/nntplib.pyi +120 -0
  571. package/analyzers/project-map-python/typeshed/stdlib/nt.pyi +116 -0
  572. package/analyzers/project-map-python/typeshed/stdlib/ntpath.pyi +134 -0
  573. package/analyzers/project-map-python/typeshed/stdlib/nturl2path.pyi +6 -0
  574. package/analyzers/project-map-python/typeshed/stdlib/numbers.pyi +220 -0
  575. package/analyzers/project-map-python/typeshed/stdlib/opcode.pyi +53 -0
  576. package/analyzers/project-map-python/typeshed/stdlib/operator.pyi +219 -0
  577. package/analyzers/project-map-python/typeshed/stdlib/optparse.pyi +312 -0
  578. package/analyzers/project-map-python/typeshed/stdlib/os/__init__.pyi +1882 -0
  579. package/analyzers/project-map-python/typeshed/stdlib/os/path.pyi +8 -0
  580. package/analyzers/project-map-python/typeshed/stdlib/ossaudiodev.pyi +132 -0
  581. package/analyzers/project-map-python/typeshed/stdlib/pathlib/__init__.pyi +358 -0
  582. package/analyzers/project-map-python/typeshed/stdlib/pathlib/types.pyi +8 -0
  583. package/analyzers/project-map-python/typeshed/stdlib/pdb.pyi +275 -0
  584. package/analyzers/project-map-python/typeshed/stdlib/pickle.pyi +240 -0
  585. package/analyzers/project-map-python/typeshed/stdlib/pickletools.pyi +176 -0
  586. package/analyzers/project-map-python/typeshed/stdlib/pipes.pyi +16 -0
  587. package/analyzers/project-map-python/typeshed/stdlib/pkgutil.pyi +60 -0
  588. package/analyzers/project-map-python/typeshed/stdlib/platform.pyi +100 -0
  589. package/analyzers/project-map-python/typeshed/stdlib/plistlib.pyi +84 -0
  590. package/analyzers/project-map-python/typeshed/stdlib/poplib.pyi +93 -0
  591. package/analyzers/project-map-python/typeshed/stdlib/posix.pyi +427 -0
  592. package/analyzers/project-map-python/typeshed/stdlib/posixpath.pyi +230 -0
  593. package/analyzers/project-map-python/typeshed/stdlib/pprint.pyi +170 -0
  594. package/analyzers/project-map-python/typeshed/stdlib/profile.pyi +31 -0
  595. package/analyzers/project-map-python/typeshed/stdlib/profiling/__init__.pyi +3 -0
  596. package/analyzers/project-map-python/typeshed/stdlib/profiling/sampling/__init__.pyi +17 -0
  597. package/analyzers/project-map-python/typeshed/stdlib/profiling/sampling/collector.pyi +25 -0
  598. package/analyzers/project-map-python/typeshed/stdlib/profiling/sampling/gecko_collector.pyi +111 -0
  599. package/analyzers/project-map-python/typeshed/stdlib/profiling/sampling/heatmap_collector.pyi +24 -0
  600. package/analyzers/project-map-python/typeshed/stdlib/profiling/sampling/jsonl_collector.pyi +15 -0
  601. package/analyzers/project-map-python/typeshed/stdlib/profiling/sampling/pstats_collector.pyi +17 -0
  602. package/analyzers/project-map-python/typeshed/stdlib/profiling/sampling/stack_collector.pyi +39 -0
  603. package/analyzers/project-map-python/typeshed/stdlib/profiling/sampling/string_table.pyi +5 -0
  604. package/analyzers/project-map-python/typeshed/stdlib/profiling/tracing.pyi +9 -0
  605. package/analyzers/project-map-python/typeshed/stdlib/pstats.pyi +96 -0
  606. package/analyzers/project-map-python/typeshed/stdlib/pty.pyi +24 -0
  607. package/analyzers/project-map-python/typeshed/stdlib/pwd.pyi +27 -0
  608. package/analyzers/project-map-python/typeshed/stdlib/py_compile.pyi +28 -0
  609. package/analyzers/project-map-python/typeshed/stdlib/pyclbr.pyi +57 -0
  610. package/analyzers/project-map-python/typeshed/stdlib/pydoc.pyi +348 -0
  611. package/analyzers/project-map-python/typeshed/stdlib/pydoc_data/__init__.pyi +0 -0
  612. package/analyzers/project-map-python/typeshed/stdlib/pydoc_data/module_docs.pyi +3 -0
  613. package/analyzers/project-map-python/typeshed/stdlib/pydoc_data/topics.pyi +3 -0
  614. package/analyzers/project-map-python/typeshed/stdlib/pyexpat/__init__.pyi +91 -0
  615. package/analyzers/project-map-python/typeshed/stdlib/pyexpat/errors.pyi +53 -0
  616. package/analyzers/project-map-python/typeshed/stdlib/pyexpat/model.pyi +13 -0
  617. package/analyzers/project-map-python/typeshed/stdlib/queue.pyi +55 -0
  618. package/analyzers/project-map-python/typeshed/stdlib/quopri.pyi +12 -0
  619. package/analyzers/project-map-python/typeshed/stdlib/random.pyi +135 -0
  620. package/analyzers/project-map-python/typeshed/stdlib/re.pyi +346 -0
  621. package/analyzers/project-map-python/typeshed/stdlib/readline.pyi +39 -0
  622. package/analyzers/project-map-python/typeshed/stdlib/reprlib.pyi +64 -0
  623. package/analyzers/project-map-python/typeshed/stdlib/resource.pyi +102 -0
  624. package/analyzers/project-map-python/typeshed/stdlib/rlcompleter.pyi +9 -0
  625. package/analyzers/project-map-python/typeshed/stdlib/runpy.pyi +24 -0
  626. package/analyzers/project-map-python/typeshed/stdlib/sched.pyi +34 -0
  627. package/analyzers/project-map-python/typeshed/stdlib/secrets.pyi +17 -0
  628. package/analyzers/project-map-python/typeshed/stdlib/select.pyi +171 -0
  629. package/analyzers/project-map-python/typeshed/stdlib/selectors.pyi +67 -0
  630. package/analyzers/project-map-python/typeshed/stdlib/shelve.pyi +110 -0
  631. package/analyzers/project-map-python/typeshed/stdlib/shlex.pyi +63 -0
  632. package/analyzers/project-map-python/typeshed/stdlib/shutil.pyi +243 -0
  633. package/analyzers/project-map-python/typeshed/stdlib/signal.pyi +174 -0
  634. package/analyzers/project-map-python/typeshed/stdlib/site.pyi +46 -0
  635. package/analyzers/project-map-python/typeshed/stdlib/smtpd.pyi +92 -0
  636. package/analyzers/project-map-python/typeshed/stdlib/smtplib.pyi +223 -0
  637. package/analyzers/project-map-python/typeshed/stdlib/sndhdr.pyi +14 -0
  638. package/analyzers/project-map-python/typeshed/stdlib/socket.pyi +1581 -0
  639. package/analyzers/project-map-python/typeshed/stdlib/socketserver.pyi +170 -0
  640. package/analyzers/project-map-python/typeshed/stdlib/spwd.pyi +45 -0
  641. package/analyzers/project-map-python/typeshed/stdlib/sqlite3/__init__.pyi +499 -0
  642. package/analyzers/project-map-python/typeshed/stdlib/sqlite3/dbapi2.pyi +244 -0
  643. package/analyzers/project-map-python/typeshed/stdlib/sqlite3/dump.pyi +2 -0
  644. package/analyzers/project-map-python/typeshed/stdlib/sre_compile.pyi +12 -0
  645. package/analyzers/project-map-python/typeshed/stdlib/sre_constants.pyi +135 -0
  646. package/analyzers/project-map-python/typeshed/stdlib/sre_parse.pyi +102 -0
  647. package/analyzers/project-map-python/typeshed/stdlib/ssl.pyi +530 -0
  648. package/analyzers/project-map-python/typeshed/stdlib/stat.pyi +126 -0
  649. package/analyzers/project-map-python/typeshed/stdlib/statistics.pyi +161 -0
  650. package/analyzers/project-map-python/typeshed/stdlib/string/__init__.pyi +81 -0
  651. package/analyzers/project-map-python/typeshed/stdlib/string/templatelib.pyi +36 -0
  652. package/analyzers/project-map-python/typeshed/stdlib/stringprep.pyi +29 -0
  653. package/analyzers/project-map-python/typeshed/stdlib/struct.pyi +5 -0
  654. package/analyzers/project-map-python/typeshed/stdlib/subprocess.pyi +1484 -0
  655. package/analyzers/project-map-python/typeshed/stdlib/sunau.pyi +82 -0
  656. package/analyzers/project-map-python/typeshed/stdlib/symtable.pyi +95 -0
  657. package/analyzers/project-map-python/typeshed/stdlib/sys/__init__.pyi +537 -0
  658. package/analyzers/project-map-python/typeshed/stdlib/sys/__jit.pyi +11 -0
  659. package/analyzers/project-map-python/typeshed/stdlib/sys/_monitoring.pyi +69 -0
  660. package/analyzers/project-map-python/typeshed/stdlib/sysconfig.pyi +59 -0
  661. package/analyzers/project-map-python/typeshed/stdlib/syslog.pyi +58 -0
  662. package/analyzers/project-map-python/typeshed/stdlib/tabnanny.pyi +16 -0
  663. package/analyzers/project-map-python/typeshed/stdlib/tarfile.pyi +864 -0
  664. package/analyzers/project-map-python/typeshed/stdlib/telnetlib.pyi +123 -0
  665. package/analyzers/project-map-python/typeshed/stdlib/tempfile.pyi +474 -0
  666. package/analyzers/project-map-python/typeshed/stdlib/termios.pyi +303 -0
  667. package/analyzers/project-map-python/typeshed/stdlib/textwrap.pyi +103 -0
  668. package/analyzers/project-map-python/typeshed/stdlib/this.pyi +2 -0
  669. package/analyzers/project-map-python/typeshed/stdlib/threading.pyi +221 -0
  670. package/analyzers/project-map-python/typeshed/stdlib/time.pyi +117 -0
  671. package/analyzers/project-map-python/typeshed/stdlib/timeit.pyi +46 -0
  672. package/analyzers/project-map-python/typeshed/stdlib/tkinter/__init__.pyi +4370 -0
  673. package/analyzers/project-map-python/typeshed/stdlib/tkinter/colorchooser.pyi +12 -0
  674. package/analyzers/project-map-python/typeshed/stdlib/tkinter/commondialog.pyi +14 -0
  675. package/analyzers/project-map-python/typeshed/stdlib/tkinter/constants.pyi +80 -0
  676. package/analyzers/project-map-python/typeshed/stdlib/tkinter/dialog.pyi +13 -0
  677. package/analyzers/project-map-python/typeshed/stdlib/tkinter/dnd.pyi +19 -0
  678. package/analyzers/project-map-python/typeshed/stdlib/tkinter/filedialog.pyi +149 -0
  679. package/analyzers/project-map-python/typeshed/stdlib/tkinter/font.pyi +120 -0
  680. package/analyzers/project-map-python/typeshed/stdlib/tkinter/messagebox.pyi +98 -0
  681. package/analyzers/project-map-python/typeshed/stdlib/tkinter/scrolledtext.pyi +9 -0
  682. package/analyzers/project-map-python/typeshed/stdlib/tkinter/simpledialog.pyi +58 -0
  683. package/analyzers/project-map-python/typeshed/stdlib/tkinter/tix.pyi +299 -0
  684. package/analyzers/project-map-python/typeshed/stdlib/tkinter/ttk.pyi +1434 -0
  685. package/analyzers/project-map-python/typeshed/stdlib/token.pyi +166 -0
  686. package/analyzers/project-map-python/typeshed/stdlib/tokenize.pyi +201 -0
  687. package/analyzers/project-map-python/typeshed/stdlib/tomllib.pyi +27 -0
  688. package/analyzers/project-map-python/typeshed/stdlib/trace.pyi +85 -0
  689. package/analyzers/project-map-python/typeshed/stdlib/traceback.pyi +293 -0
  690. package/analyzers/project-map-python/typeshed/stdlib/tracemalloc.pyi +123 -0
  691. package/analyzers/project-map-python/typeshed/stdlib/tty.pyi +29 -0
  692. package/analyzers/project-map-python/typeshed/stdlib/turtle.pyi +856 -0
  693. package/analyzers/project-map-python/typeshed/stdlib/types.pyi +744 -0
  694. package/analyzers/project-map-python/typeshed/stdlib/typing.pyi +1243 -0
  695. package/analyzers/project-map-python/typeshed/stdlib/typing_extensions.pyi +690 -0
  696. package/analyzers/project-map-python/typeshed/stdlib/unicodedata.pyi +94 -0
  697. package/analyzers/project-map-python/typeshed/stdlib/unittest/__init__.pyi +63 -0
  698. package/analyzers/project-map-python/typeshed/stdlib/unittest/_log.pyi +29 -0
  699. package/analyzers/project-map-python/typeshed/stdlib/unittest/async_case.pyi +24 -0
  700. package/analyzers/project-map-python/typeshed/stdlib/unittest/case.pyi +353 -0
  701. package/analyzers/project-map-python/typeshed/stdlib/unittest/loader.pyi +55 -0
  702. package/analyzers/project-map-python/typeshed/stdlib/unittest/main.pyi +74 -0
  703. package/analyzers/project-map-python/typeshed/stdlib/unittest/mock.pyi +555 -0
  704. package/analyzers/project-map-python/typeshed/stdlib/unittest/result.pyi +46 -0
  705. package/analyzers/project-map-python/typeshed/stdlib/unittest/runner.pyi +93 -0
  706. package/analyzers/project-map-python/typeshed/stdlib/unittest/signals.pyi +15 -0
  707. package/analyzers/project-map-python/typeshed/stdlib/unittest/suite.pyi +23 -0
  708. package/analyzers/project-map-python/typeshed/stdlib/unittest/util.pyi +39 -0
  709. package/analyzers/project-map-python/typeshed/stdlib/urllib/__init__.pyi +0 -0
  710. package/analyzers/project-map-python/typeshed/stdlib/urllib/error.pyi +29 -0
  711. package/analyzers/project-map-python/typeshed/stdlib/urllib/parse.pyi +354 -0
  712. package/analyzers/project-map-python/typeshed/stdlib/urllib/request.pyi +443 -0
  713. package/analyzers/project-map-python/typeshed/stdlib/urllib/response.pyi +45 -0
  714. package/analyzers/project-map-python/typeshed/stdlib/urllib/robotparser.pyi +20 -0
  715. package/analyzers/project-map-python/typeshed/stdlib/uu.pyi +12 -0
  716. package/analyzers/project-map-python/typeshed/stdlib/uuid.pyi +106 -0
  717. package/analyzers/project-map-python/typeshed/stdlib/venv/__init__.pyi +86 -0
  718. package/analyzers/project-map-python/typeshed/stdlib/warnings.pyi +146 -0
  719. package/analyzers/project-map-python/typeshed/stdlib/wave.pyi +105 -0
  720. package/analyzers/project-map-python/typeshed/stdlib/weakref.pyi +213 -0
  721. package/analyzers/project-map-python/typeshed/stdlib/webbrowser.pyi +78 -0
  722. package/analyzers/project-map-python/typeshed/stdlib/winreg.pyi +137 -0
  723. package/analyzers/project-map-python/typeshed/stdlib/winsound.pyi +40 -0
  724. package/analyzers/project-map-python/typeshed/stdlib/wsgiref/__init__.pyi +0 -0
  725. package/analyzers/project-map-python/typeshed/stdlib/wsgiref/handlers.pyi +91 -0
  726. package/analyzers/project-map-python/typeshed/stdlib/wsgiref/headers.pyi +27 -0
  727. package/analyzers/project-map-python/typeshed/stdlib/wsgiref/simple_server.pyi +37 -0
  728. package/analyzers/project-map-python/typeshed/stdlib/wsgiref/types.pyi +31 -0
  729. package/analyzers/project-map-python/typeshed/stdlib/wsgiref/util.pyi +26 -0
  730. package/analyzers/project-map-python/typeshed/stdlib/wsgiref/validate.pyi +49 -0
  731. package/analyzers/project-map-python/typeshed/stdlib/xdrlib.pyi +57 -0
  732. package/analyzers/project-map-python/typeshed/stdlib/xml/__init__.pyi +9 -0
  733. package/analyzers/project-map-python/typeshed/stdlib/xml/dom/NodeFilter.pyi +22 -0
  734. package/analyzers/project-map-python/typeshed/stdlib/xml/dom/__init__.pyi +101 -0
  735. package/analyzers/project-map-python/typeshed/stdlib/xml/dom/domreg.pyi +8 -0
  736. package/analyzers/project-map-python/typeshed/stdlib/xml/dom/expatbuilder.pyi +125 -0
  737. package/analyzers/project-map-python/typeshed/stdlib/xml/dom/minicompat.pyi +24 -0
  738. package/analyzers/project-map-python/typeshed/stdlib/xml/dom/minidom.pyi +693 -0
  739. package/analyzers/project-map-python/typeshed/stdlib/xml/dom/pulldom.pyi +109 -0
  740. package/analyzers/project-map-python/typeshed/stdlib/xml/dom/xmlbuilder.pyi +81 -0
  741. package/analyzers/project-map-python/typeshed/stdlib/xml/etree/ElementInclude.pyi +28 -0
  742. package/analyzers/project-map-python/typeshed/stdlib/xml/etree/ElementPath.pyi +42 -0
  743. package/analyzers/project-map-python/typeshed/stdlib/xml/etree/ElementTree.pyi +402 -0
  744. package/analyzers/project-map-python/typeshed/stdlib/xml/etree/__init__.pyi +0 -0
  745. package/analyzers/project-map-python/typeshed/stdlib/xml/etree/cElementTree.pyi +1 -0
  746. package/analyzers/project-map-python/typeshed/stdlib/xml/parsers/__init__.pyi +1 -0
  747. package/analyzers/project-map-python/typeshed/stdlib/xml/parsers/expat/__init__.pyi +7 -0
  748. package/analyzers/project-map-python/typeshed/stdlib/xml/parsers/expat/errors.pyi +1 -0
  749. package/analyzers/project-map-python/typeshed/stdlib/xml/parsers/expat/model.pyi +1 -0
  750. package/analyzers/project-map-python/typeshed/stdlib/xml/sax/__init__.pyi +42 -0
  751. package/analyzers/project-map-python/typeshed/stdlib/xml/sax/_exceptions.pyi +19 -0
  752. package/analyzers/project-map-python/typeshed/stdlib/xml/sax/expatreader.pyi +72 -0
  753. package/analyzers/project-map-python/typeshed/stdlib/xml/sax/handler.pyi +84 -0
  754. package/analyzers/project-map-python/typeshed/stdlib/xml/sax/saxutils.pyi +68 -0
  755. package/analyzers/project-map-python/typeshed/stdlib/xml/sax/xmlreader.pyi +94 -0
  756. package/analyzers/project-map-python/typeshed/stdlib/xml/utils.pyi +2 -0
  757. package/analyzers/project-map-python/typeshed/stdlib/xmlrpc/__init__.pyi +0 -0
  758. package/analyzers/project-map-python/typeshed/stdlib/xmlrpc/client.pyi +300 -0
  759. package/analyzers/project-map-python/typeshed/stdlib/xmlrpc/server.pyi +149 -0
  760. package/analyzers/project-map-python/typeshed/stdlib/xxlimited.pyi +15 -0
  761. package/analyzers/project-map-python/typeshed/stdlib/zipapp.pyi +19 -0
  762. package/analyzers/project-map-python/typeshed/stdlib/zipfile/__init__.pyi +411 -0
  763. package/analyzers/project-map-python/typeshed/stdlib/zipfile/_path/__init__.pyi +87 -0
  764. package/analyzers/project-map-python/typeshed/stdlib/zipfile/_path/glob.pyi +26 -0
  765. package/analyzers/project-map-python/typeshed/stdlib/zipimport.pyi +44 -0
  766. package/analyzers/project-map-python/typeshed/stdlib/zlib.pyi +81 -0
  767. package/analyzers/project-map-python/typeshed/stdlib/zoneinfo/__init__.pyi +36 -0
  768. package/analyzers/project-map-python/typeshed/stdlib/zoneinfo/_common.pyi +14 -0
  769. package/analyzers/project-map-python/typeshed/stdlib/zoneinfo/_tzpath.pyi +13 -0
  770. package/analyzers/project-map-python-worker.mjs +122009 -0
  771. package/analyzers/project-map-worker.mjs +31771 -0
  772. package/dist/cli.mjs +22754 -0
  773. package/package.json +40 -0
@@ -0,0 +1,2679 @@
1
+ import _ast
2
+ import _sitebuiltins
3
+ import _typeshed
4
+ import sys
5
+ import types
6
+ from _collections_abc import dict_items, dict_keys, dict_values
7
+ from _typeshed import (
8
+ AnnotationForm,
9
+ ConvertibleToFloat,
10
+ ConvertibleToInt,
11
+ FileDescriptorOrPath,
12
+ OpenBinaryMode,
13
+ OpenBinaryModeReading,
14
+ OpenBinaryModeUpdating,
15
+ OpenBinaryModeWriting,
16
+ OpenTextMode,
17
+ ReadableBuffer,
18
+ SupportsAdd,
19
+ SupportsAiter,
20
+ SupportsAnext,
21
+ SupportsDivMod,
22
+ SupportsFlush,
23
+ SupportsIter,
24
+ SupportsKeysAndGetItem,
25
+ SupportsLenAndGetItem,
26
+ SupportsNext,
27
+ SupportsRAdd,
28
+ SupportsRDivMod,
29
+ SupportsRichComparison,
30
+ SupportsRichComparisonT,
31
+ SupportsWrite,
32
+ )
33
+ from collections.abc import Awaitable, Callable, Iterable, Iterator, MutableSet, Reversible, Set as AbstractSet, Sized
34
+ from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper
35
+ from os import PathLike
36
+ from types import CellType, CodeType, EllipsisType, GenericAlias, NotImplementedType, TracebackType
37
+
38
+ # mypy crashes if any of {ByteString, Sequence, MutableSequence, Mapping, MutableMapping}
39
+ # are imported from collections.abc in builtins.pyi
40
+ from typing import ( # noqa: Y022,UP035
41
+ IO,
42
+ Any,
43
+ BinaryIO,
44
+ ClassVar,
45
+ Concatenate,
46
+ Final,
47
+ Generic,
48
+ Mapping,
49
+ MutableMapping,
50
+ MutableSequence,
51
+ ParamSpec,
52
+ Protocol,
53
+ Sequence,
54
+ SupportsAbs,
55
+ SupportsBytes,
56
+ SupportsComplex,
57
+ SupportsFloat,
58
+ SupportsIndex,
59
+ TypeAlias,
60
+ TypeGuard,
61
+ TypeVar,
62
+ final,
63
+ overload,
64
+ type_check_only,
65
+ )
66
+
67
+ # we can't import `Literal` from typing or mypy crashes: see #11247
68
+ from typing_extensions import Literal, LiteralString, Self, TypeIs, TypeVarTuple, deprecated, disjoint_base # noqa: Y023, UP035
69
+
70
+ if sys.version_info >= (3, 14):
71
+ from _typeshed import AnnotateFunc
72
+
73
+ _T = TypeVar("_T")
74
+ _I = TypeVar("_I", default=int)
75
+ _T_co = TypeVar("_T_co", covariant=True)
76
+ _T_contra = TypeVar("_T_contra", contravariant=True)
77
+ _R_co = TypeVar("_R_co", covariant=True)
78
+ _KT = TypeVar("_KT")
79
+ _VT = TypeVar("_VT")
80
+ _S = TypeVar("_S")
81
+ _T1 = TypeVar("_T1")
82
+ _T2 = TypeVar("_T2")
83
+ _T3 = TypeVar("_T3")
84
+ _T4 = TypeVar("_T4")
85
+ _T5 = TypeVar("_T5")
86
+ _SupportsNextT_co = TypeVar("_SupportsNextT_co", bound=SupportsNext[Any], covariant=True)
87
+ _SupportsAnextT_co = TypeVar("_SupportsAnextT_co", bound=SupportsAnext[Any], covariant=True)
88
+ _AwaitableT = TypeVar("_AwaitableT", bound=Awaitable[Any])
89
+ _AwaitableT_co = TypeVar("_AwaitableT_co", bound=Awaitable[Any], covariant=True)
90
+ _P = ParamSpec("_P")
91
+
92
+ # Type variables for slice
93
+ _StartT_co = TypeVar("_StartT_co", covariant=True, default=Any) # slice -> slice[Any, Any, Any]
94
+ _StopT_co = TypeVar("_StopT_co", covariant=True, default=_StartT_co) # slice[A] -> slice[A, A, A]
95
+ # NOTE: step could differ from start and stop, (e.g. datetime/timedelta)l
96
+ # the default (start|stop) is chosen to cater to the most common case of int/index slices.
97
+ # FIXME: https://github.com/python/typing/issues/213 (replace step=start|stop with step=start&stop)
98
+ _StepT_co = TypeVar("_StepT_co", covariant=True, default=_StartT_co | _StopT_co) # slice[A,B] -> slice[A, B, A|B]
99
+
100
+ @disjoint_base
101
+ class object:
102
+ __doc__: str | None
103
+ __dict__: dict[str, Any]
104
+ __module__: str
105
+ __annotations__: dict[str, Any]
106
+
107
+ @property
108
+ def __class__(self) -> type[Self]: ...
109
+ @__class__.setter
110
+ def __class__(self, type: type[Self], /) -> None: ...
111
+
112
+ def __init__(self) -> None: ...
113
+ def __new__(cls) -> Self: ...
114
+ # N.B. `object.__setattr__` and `object.__delattr__` are heavily special-cased by type checkers.
115
+ # Overriding them in subclasses has different semantics, even if the override has an identical signature.
116
+ def __setattr__(self, name: str, value: Any, /) -> None: ...
117
+ def __delattr__(self, name: str, /) -> None: ...
118
+ def __eq__(self, value: object, /) -> bool: ...
119
+ def __ne__(self, value: object, /) -> bool: ...
120
+ def __str__(self) -> str: ... # noqa: Y029
121
+ def __repr__(self) -> str: ... # noqa: Y029
122
+ def __hash__(self) -> int: ...
123
+ def __format__(self, format_spec: str, /) -> str: ...
124
+ def __getattribute__(self, name: str, /) -> Any: ...
125
+ def __sizeof__(self) -> int: ...
126
+ # return type of pickle methods is rather hard to express in the current type system
127
+ # see #6661 and https://docs.python.org/3/library/pickle.html#object.__reduce__
128
+ def __reduce__(self) -> str | tuple[Any, ...]: ...
129
+ def __reduce_ex__(self, protocol: SupportsIndex, /) -> str | tuple[Any, ...]: ...
130
+ if sys.version_info >= (3, 11):
131
+ def __getstate__(self) -> object: ...
132
+
133
+ def __dir__(self) -> Iterable[str]: ...
134
+ def __init_subclass__(cls) -> None: ...
135
+ @classmethod
136
+ def __subclasshook__(cls, subclass: type, /) -> bool: ...
137
+
138
+ @disjoint_base
139
+ class staticmethod(Generic[_P, _R_co]):
140
+ __name__: str
141
+ __qualname__: str
142
+ @property
143
+ def __func__(self) -> Callable[_P, _R_co]: ...
144
+ @property
145
+ def __isabstractmethod__(self) -> bool: ...
146
+ def __init__(self, f: Callable[_P, _R_co], /) -> None: ...
147
+
148
+ @overload
149
+ def __get__(self, instance: None, owner: type, /) -> Callable[_P, _R_co]: ...
150
+ @overload
151
+ def __get__(self, instance: _T, owner: type[_T] | None = None, /) -> Callable[_P, _R_co]: ...
152
+
153
+ @property
154
+ def __wrapped__(self) -> Callable[_P, _R_co]: ...
155
+ def __call__(self, *args: _P.args, **kwargs: _P.kwargs) -> _R_co: ...
156
+ if sys.version_info >= (3, 14):
157
+ def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
158
+ __annotate__: AnnotateFunc | None
159
+
160
+ @disjoint_base
161
+ class classmethod(Generic[_T, _P, _R_co]):
162
+ __name__: str
163
+ __qualname__: str
164
+ @property
165
+ def __func__(self) -> Callable[Concatenate[type[_T], _P], _R_co]: ...
166
+ @property
167
+ def __isabstractmethod__(self) -> bool: ...
168
+ def __init__(self, f: Callable[Concatenate[type[_T], _P], _R_co], /) -> None: ...
169
+
170
+ @overload
171
+ def __get__(self, instance: _T, owner: type[_T] | None = None, /) -> Callable[_P, _R_co]: ...
172
+ @overload
173
+ def __get__(self, instance: None, owner: type[_T], /) -> Callable[_P, _R_co]: ...
174
+
175
+ @property
176
+ def __wrapped__(self) -> Callable[Concatenate[type[_T], _P], _R_co]: ...
177
+ if sys.version_info >= (3, 14):
178
+ def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
179
+ __annotate__: AnnotateFunc | None
180
+
181
+ @disjoint_base
182
+ class type:
183
+ # object.__base__ is None. Otherwise, it would be a type.
184
+ @property
185
+ def __base__(self) -> type | None: ...
186
+ __bases__: tuple[type, ...]
187
+ @property
188
+ def __basicsize__(self) -> int: ...
189
+ # type.__dict__ is read-only at runtime, but that can't be expressed currently.
190
+ # See https://github.com/python/typeshed/issues/11033 for a discussion.
191
+ __dict__: Final[types.MappingProxyType[str, Any]] # type: ignore[assignment]
192
+ @property
193
+ def __dictoffset__(self) -> int: ...
194
+ @property
195
+ def __flags__(self) -> int: ...
196
+ @property
197
+ def __itemsize__(self) -> int: ...
198
+ __module__: str
199
+ @property
200
+ def __mro__(self) -> tuple[type, ...]: ...
201
+ __name__: str
202
+ __qualname__: str
203
+ @property
204
+ def __text_signature__(self) -> str | None: ...
205
+ @property
206
+ def __weakrefoffset__(self) -> int: ...
207
+
208
+ @overload
209
+ def __init__(self, o: object, /) -> None: ...
210
+ @overload
211
+ def __init__(self, name: str, bases: tuple[type, ...], dict: dict[str, Any], /, **kwds: Any) -> None: ...
212
+
213
+ @overload
214
+ def __new__(cls, o: object, /) -> type: ...
215
+ @overload
216
+ def __new__(
217
+ cls: type[_typeshed.Self], name: str, bases: tuple[type, ...], namespace: dict[str, Any], /, **kwds: Any
218
+ ) -> _typeshed.Self: ...
219
+
220
+ def __call__(self, *args: Any, **kwds: Any) -> Any: ...
221
+ def __subclasses__(self: _typeshed.Self) -> list[_typeshed.Self]: ...
222
+ # Note: the documentation doesn't specify what the return type is, the standard
223
+ # implementation seems to be returning a list.
224
+ def mro(self) -> list[type]: ...
225
+ def __instancecheck__(self, instance: Any, /) -> bool: ...
226
+ def __subclasscheck__(self, subclass: type, /) -> bool: ...
227
+ @classmethod
228
+ def __prepare__(metacls, name: str, bases: tuple[type, ...], /, **kwds: Any) -> MutableMapping[str, object]: ...
229
+ # `int | str` produces an instance of `UnionType`, but `int | int` produces an instance of `type`,
230
+ # and `abc.ABC | abc.ABC` produces an instance of `abc.ABCMeta`.
231
+ def __or__(self: _typeshed.Self, value: Any, /) -> types.UnionType | _typeshed.Self: ...
232
+ def __ror__(self: _typeshed.Self, value: Any, /) -> types.UnionType | _typeshed.Self: ...
233
+ if sys.version_info >= (3, 12):
234
+ __type_params__: tuple[TypeVar | ParamSpec | TypeVarTuple, ...]
235
+ __annotations__: dict[str, AnnotationForm]
236
+ if sys.version_info >= (3, 14):
237
+ __annotate__: AnnotateFunc | None
238
+
239
+ @disjoint_base
240
+ class super:
241
+ @overload
242
+ def __init__(self, t: Any, obj: Any, /) -> None: ...
243
+ @overload
244
+ def __init__(self, t: Any, /) -> None: ...
245
+ @overload
246
+ def __init__(self) -> None: ...
247
+
248
+ _PositiveInteger: TypeAlias = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]
249
+ _NegativeInteger: TypeAlias = Literal[-1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15, -16, -17, -18, -19, -20]
250
+ _LiteralInteger = _PositiveInteger | _NegativeInteger | Literal[0] # noqa: Y026 # TODO: Use TypeAlias once mypy bugs are fixed
251
+
252
+ @disjoint_base
253
+ class int:
254
+ @overload
255
+ def __new__(cls, x: ConvertibleToInt = 0, /) -> Self: ...
256
+ @overload
257
+ def __new__(cls, x: str | bytes | bytearray, /, base: SupportsIndex) -> Self: ...
258
+
259
+ def as_integer_ratio(self) -> tuple[int, Literal[1]]: ...
260
+ @property
261
+ def real(self) -> int: ...
262
+ @property
263
+ def imag(self) -> Literal[0]: ...
264
+ @property
265
+ def numerator(self) -> int: ...
266
+ @property
267
+ def denominator(self) -> Literal[1]: ...
268
+ def conjugate(self) -> int: ...
269
+ def bit_length(self) -> int: ...
270
+ def bit_count(self) -> int: ...
271
+
272
+ if sys.version_info >= (3, 11):
273
+ def to_bytes(
274
+ self, length: SupportsIndex = 1, byteorder: Literal["little", "big"] = "big", *, signed: bool = False
275
+ ) -> bytes: ...
276
+ @classmethod
277
+ def from_bytes(
278
+ cls,
279
+ bytes: Iterable[SupportsIndex] | SupportsBytes | ReadableBuffer,
280
+ byteorder: Literal["little", "big"] = "big",
281
+ *,
282
+ signed: bool = False,
283
+ ) -> Self: ...
284
+ else:
285
+ def to_bytes(self, length: SupportsIndex, byteorder: Literal["little", "big"], *, signed: bool = False) -> bytes: ...
286
+ @classmethod
287
+ def from_bytes(
288
+ cls,
289
+ bytes: Iterable[SupportsIndex] | SupportsBytes | ReadableBuffer,
290
+ byteorder: Literal["little", "big"],
291
+ *,
292
+ signed: bool = False,
293
+ ) -> Self: ...
294
+
295
+ if sys.version_info >= (3, 12):
296
+ def is_integer(self) -> Literal[True]: ...
297
+
298
+ def __add__(self, value: int, /) -> int: ...
299
+ def __sub__(self, value: int, /) -> int: ...
300
+ def __mul__(self, value: int, /) -> int: ...
301
+ def __floordiv__(self, value: int, /) -> int: ...
302
+ def __truediv__(self, value: int, /) -> float: ...
303
+ def __mod__(self, value: int, /) -> int: ...
304
+ def __divmod__(self, value: int, /) -> tuple[int, int]: ...
305
+ def __radd__(self, value: int, /) -> int: ...
306
+ def __rsub__(self, value: int, /) -> int: ...
307
+ def __rmul__(self, value: int, /) -> int: ...
308
+ def __rfloordiv__(self, value: int, /) -> int: ...
309
+ def __rtruediv__(self, value: int, /) -> float: ...
310
+ def __rmod__(self, value: int, /) -> int: ...
311
+ def __rdivmod__(self, value: int, /) -> tuple[int, int]: ...
312
+
313
+ @overload
314
+ def __pow__(self, x: Literal[0], /) -> Literal[1]: ...
315
+ @overload
316
+ def __pow__(self, value: Literal[0], mod: None, /) -> Literal[1]: ...
317
+ @overload
318
+ def __pow__(self, value: _PositiveInteger, mod: None = None, /) -> int: ...
319
+ @overload
320
+ def __pow__(self, value: _NegativeInteger, mod: None = None, /) -> float: ...
321
+ # positive __value -> int; negative __value -> float
322
+ # return type must be Any as `int | float` causes too many false-positive errors
323
+ @overload
324
+ def __pow__(self, value: int, mod: None = None, /) -> Any: ...
325
+ @overload
326
+ def __pow__(self, value: int, mod: int, /) -> int: ...
327
+
328
+ def __rpow__(self, value: int, mod: int | None = None, /) -> Any: ...
329
+ def __and__(self, value: int, /) -> int: ...
330
+ def __or__(self, value: int, /) -> int: ...
331
+ def __xor__(self, value: int, /) -> int: ...
332
+ def __lshift__(self, value: int, /) -> int: ...
333
+ def __rshift__(self, value: int, /) -> int: ...
334
+ def __rand__(self, value: int, /) -> int: ...
335
+ def __ror__(self, value: int, /) -> int: ...
336
+ def __rxor__(self, value: int, /) -> int: ...
337
+ def __rlshift__(self, value: int, /) -> int: ...
338
+ def __rrshift__(self, value: int, /) -> int: ...
339
+ def __neg__(self) -> int: ...
340
+ def __pos__(self) -> int: ...
341
+ def __invert__(self) -> int: ...
342
+ def __trunc__(self) -> int: ...
343
+ def __ceil__(self) -> int: ...
344
+ def __floor__(self) -> int: ...
345
+ if sys.version_info >= (3, 14):
346
+ def __round__(self, ndigits: SupportsIndex | None = None, /) -> int: ...
347
+ else:
348
+ def __round__(self, ndigits: SupportsIndex = ..., /) -> int: ...
349
+
350
+ def __getnewargs__(self) -> tuple[int]: ...
351
+ def __eq__(self, value: object, /) -> bool: ...
352
+ def __ne__(self, value: object, /) -> bool: ...
353
+ def __lt__(self, value: int, /) -> bool: ...
354
+ def __le__(self, value: int, /) -> bool: ...
355
+ def __gt__(self, value: int, /) -> bool: ...
356
+ def __ge__(self, value: int, /) -> bool: ...
357
+ def __float__(self) -> float: ...
358
+ def __int__(self) -> int: ...
359
+ def __abs__(self) -> int: ...
360
+ def __hash__(self) -> int: ...
361
+ def __bool__(self) -> bool: ...
362
+ def __index__(self) -> int: ...
363
+ def __format__(self, format_spec: str, /) -> str: ...
364
+
365
+ @disjoint_base
366
+ class float:
367
+ def __new__(cls, x: ConvertibleToFloat = 0, /) -> Self: ...
368
+ def as_integer_ratio(self) -> tuple[int, int]: ...
369
+ def hex(self) -> str: ...
370
+ def is_integer(self) -> bool: ...
371
+ @classmethod
372
+ def fromhex(cls, string: str, /) -> Self: ...
373
+ @property
374
+ def real(self) -> float: ...
375
+ @property
376
+ def imag(self) -> float: ...
377
+ def conjugate(self) -> float: ...
378
+ def __add__(self, value: float, /) -> float: ...
379
+ def __sub__(self, value: float, /) -> float: ...
380
+ def __mul__(self, value: float, /) -> float: ...
381
+ def __floordiv__(self, value: float, /) -> float: ...
382
+ def __truediv__(self, value: float, /) -> float: ...
383
+ def __mod__(self, value: float, /) -> float: ...
384
+ def __divmod__(self, value: float, /) -> tuple[float, float]: ...
385
+
386
+ @overload
387
+ def __pow__(self, value: int, mod: None = None, /) -> float: ...
388
+ # positive __value -> float; negative __value -> complex
389
+ # return type must be Any as `float | complex` causes too many false-positive errors
390
+ @overload
391
+ def __pow__(self, value: float, mod: None = None, /) -> Any: ...
392
+
393
+ def __radd__(self, value: float, /) -> float: ...
394
+ def __rsub__(self, value: float, /) -> float: ...
395
+ def __rmul__(self, value: float, /) -> float: ...
396
+ def __rfloordiv__(self, value: float, /) -> float: ...
397
+ def __rtruediv__(self, value: float, /) -> float: ...
398
+ def __rmod__(self, value: float, /) -> float: ...
399
+ def __rdivmod__(self, value: float, /) -> tuple[float, float]: ...
400
+
401
+ @overload
402
+ def __rpow__(self, value: _PositiveInteger, mod: None = None, /) -> float: ...
403
+ @overload
404
+ def __rpow__(self, value: _NegativeInteger, mod: None = None, /) -> complex: ...
405
+ # Returning `complex` for the general case gives too many false-positive errors.
406
+ @overload
407
+ def __rpow__(self, value: float, mod: None = None, /) -> Any: ...
408
+
409
+ def __getnewargs__(self) -> tuple[float]: ...
410
+ def __trunc__(self) -> int: ...
411
+ def __ceil__(self) -> int: ...
412
+ def __floor__(self) -> int: ...
413
+
414
+ @overload
415
+ def __round__(self, ndigits: None = None, /) -> int: ...
416
+ @overload
417
+ def __round__(self, ndigits: SupportsIndex, /) -> float: ...
418
+
419
+ def __eq__(self, value: object, /) -> bool: ...
420
+ def __ne__(self, value: object, /) -> bool: ...
421
+ def __lt__(self, value: float, /) -> bool: ...
422
+ def __le__(self, value: float, /) -> bool: ...
423
+ def __gt__(self, value: float, /) -> bool: ...
424
+ def __ge__(self, value: float, /) -> bool: ...
425
+ def __neg__(self) -> float: ...
426
+ def __pos__(self) -> float: ...
427
+ def __int__(self) -> int: ...
428
+ def __float__(self) -> float: ...
429
+ def __abs__(self) -> float: ...
430
+ def __hash__(self) -> int: ...
431
+ def __bool__(self) -> bool: ...
432
+ def __format__(self, format_spec: str, /) -> str: ...
433
+ if sys.version_info >= (3, 14):
434
+ @classmethod
435
+ def from_number(cls, number: float | SupportsIndex | SupportsFloat, /) -> Self: ...
436
+
437
+ @disjoint_base
438
+ class complex:
439
+ # Python doesn't currently accept SupportsComplex for the second argument
440
+ @overload
441
+ def __new__(
442
+ cls,
443
+ real: complex | SupportsComplex | SupportsFloat | SupportsIndex = 0,
444
+ imag: complex | SupportsFloat | SupportsIndex = 0,
445
+ ) -> Self: ...
446
+ @overload
447
+ def __new__(cls, real: str | SupportsComplex | SupportsFloat | SupportsIndex | complex) -> Self: ...
448
+
449
+ @property
450
+ def real(self) -> float: ...
451
+ @property
452
+ def imag(self) -> float: ...
453
+ def conjugate(self) -> complex: ...
454
+ def __add__(self, value: complex, /) -> complex: ...
455
+ def __sub__(self, value: complex, /) -> complex: ...
456
+ def __mul__(self, value: complex, /) -> complex: ...
457
+ def __pow__(self, value: complex, mod: None = None, /) -> complex: ...
458
+ def __truediv__(self, value: complex, /) -> complex: ...
459
+ def __radd__(self, value: complex, /) -> complex: ...
460
+ def __rsub__(self, value: complex, /) -> complex: ...
461
+ def __rmul__(self, value: complex, /) -> complex: ...
462
+ def __rpow__(self, value: complex, mod: None = None, /) -> complex: ...
463
+ def __rtruediv__(self, value: complex, /) -> complex: ...
464
+ def __eq__(self, value: object, /) -> bool: ...
465
+ def __ne__(self, value: object, /) -> bool: ...
466
+ def __neg__(self) -> complex: ...
467
+ def __pos__(self) -> complex: ...
468
+ def __abs__(self) -> float: ...
469
+ def __hash__(self) -> int: ...
470
+ def __bool__(self) -> bool: ...
471
+ def __format__(self, format_spec: str, /) -> str: ...
472
+ if sys.version_info >= (3, 11):
473
+ def __complex__(self) -> complex: ...
474
+ if sys.version_info >= (3, 14):
475
+ @classmethod
476
+ def from_number(cls, number: complex | SupportsComplex | SupportsFloat | SupportsIndex, /) -> Self: ...
477
+
478
+ @type_check_only
479
+ class _FormatMapMapping(Protocol):
480
+ def __getitem__(self, key: str, /) -> Any: ...
481
+
482
+ @type_check_only
483
+ class _TranslateTable(Protocol):
484
+ def __getitem__(self, key: int, /) -> str | int | None: ...
485
+
486
+ @disjoint_base
487
+ class str(Sequence[str]):
488
+ @overload
489
+ def __new__(cls, object: object = "") -> Self: ...
490
+ @overload
491
+ def __new__(cls, object: ReadableBuffer, encoding: str = "utf-8", errors: str = "strict") -> Self: ...
492
+
493
+ @overload
494
+ def capitalize(self: LiteralString) -> LiteralString: ...
495
+ @overload
496
+ def capitalize(self) -> str: ... # type: ignore[misc]
497
+
498
+ @overload
499
+ def casefold(self: LiteralString) -> LiteralString: ...
500
+ @overload
501
+ def casefold(self) -> str: ... # type: ignore[misc]
502
+
503
+ @overload
504
+ def center(self: LiteralString, width: SupportsIndex, fillchar: LiteralString = " ", /) -> LiteralString: ...
505
+ @overload
506
+ def center(self, width: SupportsIndex, fillchar: str = " ", /) -> str: ... # type: ignore[misc]
507
+
508
+ def count(self, sub: str, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /) -> int: ...
509
+ def encode(self, encoding: str = "utf-8", errors: str = "strict") -> bytes: ...
510
+ def endswith(
511
+ self, suffix: str | tuple[str, ...], start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
512
+ ) -> bool: ...
513
+
514
+ @overload
515
+ def expandtabs(self: LiteralString, tabsize: SupportsIndex = 8) -> LiteralString: ...
516
+ @overload
517
+ def expandtabs(self, tabsize: SupportsIndex = 8) -> str: ... # type: ignore[misc]
518
+
519
+ def find(self, sub: str, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /) -> int: ...
520
+
521
+ @overload
522
+ def format(self: LiteralString, *args: LiteralString, **kwargs: LiteralString) -> LiteralString: ...
523
+ @overload
524
+ def format(self, *args: object, **kwargs: object) -> str: ...
525
+
526
+ def format_map(self, mapping: _FormatMapMapping, /) -> str: ...
527
+ def index(self, sub: str, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /) -> int: ...
528
+ def isalnum(self) -> bool: ...
529
+ def isalpha(self) -> bool: ...
530
+ def isascii(self) -> bool: ...
531
+ def isdecimal(self) -> bool: ...
532
+ def isdigit(self) -> bool: ...
533
+ def isidentifier(self) -> bool: ...
534
+ def islower(self) -> bool: ...
535
+ def isnumeric(self) -> bool: ...
536
+ def isprintable(self) -> bool: ...
537
+ def isspace(self) -> bool: ...
538
+ def istitle(self) -> bool: ...
539
+ def isupper(self) -> bool: ...
540
+
541
+ @overload
542
+ def join(self: LiteralString, iterable: Iterable[LiteralString], /) -> LiteralString: ...
543
+ @overload
544
+ def join(self, iterable: Iterable[str], /) -> str: ... # type: ignore[misc]
545
+
546
+ @overload
547
+ def ljust(self: LiteralString, width: SupportsIndex, fillchar: LiteralString = " ", /) -> LiteralString: ...
548
+ @overload
549
+ def ljust(self, width: SupportsIndex, fillchar: str = " ", /) -> str: ... # type: ignore[misc]
550
+
551
+ @overload
552
+ def lower(self: LiteralString) -> LiteralString: ...
553
+ @overload
554
+ def lower(self) -> str: ... # type: ignore[misc]
555
+
556
+ @overload
557
+ def lstrip(self: LiteralString, chars: LiteralString | None = None, /) -> LiteralString: ...
558
+ @overload
559
+ def lstrip(self, chars: str | None = None, /) -> str: ... # type: ignore[misc]
560
+
561
+ @overload
562
+ def partition(self: LiteralString, sep: LiteralString, /) -> tuple[LiteralString, LiteralString, LiteralString]: ...
563
+ @overload
564
+ def partition(self, sep: str, /) -> tuple[str, str, str]: ... # type: ignore[misc]
565
+
566
+ if sys.version_info >= (3, 13):
567
+ @overload
568
+ def replace(
569
+ self: LiteralString, old: LiteralString, new: LiteralString, /, count: SupportsIndex = -1
570
+ ) -> LiteralString: ...
571
+ @overload
572
+ def replace(self, old: str, new: str, /, count: SupportsIndex = -1) -> str: ... # type: ignore[misc]
573
+ else:
574
+ @overload
575
+ def replace(
576
+ self: LiteralString, old: LiteralString, new: LiteralString, count: SupportsIndex = -1, /
577
+ ) -> LiteralString: ...
578
+ @overload
579
+ def replace(self, old: str, new: str, count: SupportsIndex = -1, /) -> str: ... # type: ignore[misc]
580
+
581
+ @overload
582
+ def removeprefix(self: LiteralString, prefix: LiteralString, /) -> LiteralString: ...
583
+ @overload
584
+ def removeprefix(self, prefix: str, /) -> str: ... # type: ignore[misc]
585
+
586
+ @overload
587
+ def removesuffix(self: LiteralString, suffix: LiteralString, /) -> LiteralString: ...
588
+ @overload
589
+ def removesuffix(self, suffix: str, /) -> str: ... # type: ignore[misc]
590
+
591
+ def rfind(self, sub: str, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /) -> int: ...
592
+ def rindex(self, sub: str, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /) -> int: ...
593
+
594
+ @overload
595
+ def rjust(self: LiteralString, width: SupportsIndex, fillchar: LiteralString = " ", /) -> LiteralString: ...
596
+ @overload
597
+ def rjust(self, width: SupportsIndex, fillchar: str = " ", /) -> str: ... # type: ignore[misc]
598
+
599
+ @overload
600
+ def rpartition(self: LiteralString, sep: LiteralString, /) -> tuple[LiteralString, LiteralString, LiteralString]: ...
601
+ @overload
602
+ def rpartition(self, sep: str, /) -> tuple[str, str, str]: ... # type: ignore[misc]
603
+
604
+ @overload
605
+ def rsplit(self: LiteralString, sep: LiteralString | None = None, maxsplit: SupportsIndex = -1) -> list[LiteralString]: ...
606
+ @overload
607
+ def rsplit(self, sep: str | None = None, maxsplit: SupportsIndex = -1) -> list[str]: ... # type: ignore[misc]
608
+
609
+ @overload
610
+ def rstrip(self: LiteralString, chars: LiteralString | None = None, /) -> LiteralString: ...
611
+ @overload
612
+ def rstrip(self, chars: str | None = None, /) -> str: ... # type: ignore[misc]
613
+
614
+ @overload
615
+ def split(self: LiteralString, sep: LiteralString | None = None, maxsplit: SupportsIndex = -1) -> list[LiteralString]: ...
616
+ @overload
617
+ def split(self, sep: str | None = None, maxsplit: SupportsIndex = -1) -> list[str]: ... # type: ignore[misc]
618
+
619
+ @overload
620
+ def splitlines(self: LiteralString, keepends: bool = False) -> list[LiteralString]: ...
621
+ @overload
622
+ def splitlines(self, keepends: bool = False) -> list[str]: ... # type: ignore[misc]
623
+
624
+ def startswith(
625
+ self, prefix: str | tuple[str, ...], start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
626
+ ) -> bool: ...
627
+
628
+ @overload
629
+ def strip(self: LiteralString, chars: LiteralString | None = None, /) -> LiteralString: ...
630
+ @overload
631
+ def strip(self, chars: str | None = None, /) -> str: ... # type: ignore[misc]
632
+
633
+ @overload
634
+ def swapcase(self: LiteralString) -> LiteralString: ...
635
+ @overload
636
+ def swapcase(self) -> str: ... # type: ignore[misc]
637
+
638
+ @overload
639
+ def title(self: LiteralString) -> LiteralString: ...
640
+ @overload
641
+ def title(self) -> str: ... # type: ignore[misc]
642
+
643
+ def translate(self, table: _TranslateTable, /) -> str: ...
644
+
645
+ @overload
646
+ def upper(self: LiteralString) -> LiteralString: ...
647
+ @overload
648
+ def upper(self) -> str: ... # type: ignore[misc]
649
+
650
+ @overload
651
+ def zfill(self: LiteralString, width: SupportsIndex, /) -> LiteralString: ...
652
+ @overload
653
+ def zfill(self, width: SupportsIndex, /) -> str: ... # type: ignore[misc]
654
+
655
+ if sys.version_info >= (3, 15):
656
+ @staticmethod
657
+ @overload
658
+ def maketrans(
659
+ x: (
660
+ dict[int, _T]
661
+ | dict[str, _T]
662
+ | dict[str | int, _T]
663
+ | frozendict[int, _T]
664
+ | frozendict[str, _T]
665
+ | frozendict[str | int, _T]
666
+ ),
667
+ /,
668
+ ) -> dict[int, _T]: ...
669
+ else:
670
+ @staticmethod
671
+ @overload
672
+ def maketrans(x: dict[int, _T] | dict[str, _T] | dict[str | int, _T], /) -> dict[int, _T]: ...
673
+
674
+ @staticmethod
675
+ @overload
676
+ def maketrans(x: str, y: str, /) -> dict[int, int]: ...
677
+ @staticmethod
678
+ @overload
679
+ def maketrans(x: str, y: str, z: str, /) -> dict[int, int | None]: ...
680
+
681
+ @overload
682
+ def __add__(self: LiteralString, value: LiteralString, /) -> LiteralString: ...
683
+ @overload
684
+ def __add__(self, value: str, /) -> str: ... # type: ignore[misc]
685
+
686
+ # Incompatible with Sequence.__contains__
687
+ def __contains__(self, key: str, /) -> bool: ... # type: ignore[override]
688
+ def __eq__(self, value: object, /) -> bool: ...
689
+ def __ge__(self, value: str, /) -> bool: ...
690
+
691
+ @overload
692
+ def __getitem__(self: LiteralString, key: SupportsIndex | slice[SupportsIndex | None], /) -> LiteralString: ...
693
+ @overload
694
+ def __getitem__(self, key: SupportsIndex | slice[SupportsIndex | None], /) -> str: ... # type: ignore[misc]
695
+
696
+ def __gt__(self, value: str, /) -> bool: ...
697
+ def __hash__(self) -> int: ...
698
+
699
+ @overload
700
+ def __iter__(self: LiteralString) -> Iterator[LiteralString]: ...
701
+ @overload
702
+ def __iter__(self) -> Iterator[str]: ... # type: ignore[misc]
703
+
704
+ def __le__(self, value: str, /) -> bool: ...
705
+ def __len__(self) -> int: ...
706
+ def __lt__(self, value: str, /) -> bool: ...
707
+
708
+ @overload
709
+ def __mod__(self: LiteralString, value: LiteralString | tuple[LiteralString, ...], /) -> LiteralString: ...
710
+ @overload
711
+ def __mod__(self, value: Any, /) -> str: ...
712
+
713
+ @overload
714
+ def __mul__(self: LiteralString, value: SupportsIndex, /) -> LiteralString: ...
715
+ @overload
716
+ def __mul__(self, value: SupportsIndex, /) -> str: ... # type: ignore[misc]
717
+
718
+ def __ne__(self, value: object, /) -> bool: ...
719
+
720
+ @overload
721
+ def __rmul__(self: LiteralString, value: SupportsIndex, /) -> LiteralString: ...
722
+ @overload
723
+ def __rmul__(self, value: SupportsIndex, /) -> str: ... # type: ignore[misc]
724
+
725
+ def __getnewargs__(self) -> tuple[str]: ...
726
+ def __format__(self, format_spec: str, /) -> str: ...
727
+
728
+ @disjoint_base
729
+ class bytes(Sequence[int]):
730
+ @overload
731
+ def __new__(cls, o: Iterable[SupportsIndex] | SupportsIndex | SupportsBytes | ReadableBuffer, /) -> Self: ...
732
+ @overload
733
+ def __new__(cls, string: str, /, encoding: str, errors: str = "strict") -> Self: ...
734
+ @overload
735
+ def __new__(cls) -> Self: ...
736
+
737
+ def capitalize(self) -> bytes: ...
738
+ def center(self, width: SupportsIndex, fillchar: bytes = b" ", /) -> bytes: ...
739
+ def count(
740
+ self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
741
+ ) -> int: ...
742
+ def decode(self, encoding: str = "utf-8", errors: str = "strict") -> str: ...
743
+ def endswith(
744
+ self,
745
+ suffix: ReadableBuffer | tuple[ReadableBuffer, ...],
746
+ start: SupportsIndex | None = None,
747
+ end: SupportsIndex | None = None,
748
+ /,
749
+ ) -> bool: ...
750
+ def expandtabs(self, tabsize: SupportsIndex = 8) -> bytes: ...
751
+ def find(
752
+ self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
753
+ ) -> int: ...
754
+ def hex(self, sep: str | bytes = ..., bytes_per_sep: SupportsIndex = 1) -> str: ...
755
+ def index(
756
+ self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
757
+ ) -> int: ...
758
+ def isalnum(self) -> bool: ...
759
+ def isalpha(self) -> bool: ...
760
+ def isascii(self) -> bool: ...
761
+ def isdigit(self) -> bool: ...
762
+ def islower(self) -> bool: ...
763
+ def isspace(self) -> bool: ...
764
+ def istitle(self) -> bool: ...
765
+ def isupper(self) -> bool: ...
766
+ def join(self, iterable_of_bytes: Iterable[ReadableBuffer], /) -> bytes: ...
767
+ def ljust(self, width: SupportsIndex, fillchar: bytes | bytearray = b" ", /) -> bytes: ...
768
+ def lower(self) -> bytes: ...
769
+ def lstrip(self, bytes: ReadableBuffer | None = None, /) -> bytes: ...
770
+ def partition(self, sep: ReadableBuffer, /) -> tuple[bytes, bytes, bytes]: ...
771
+ if sys.version_info >= (3, 15):
772
+ def replace(self, old: ReadableBuffer, new: ReadableBuffer, /, count: SupportsIndex = -1) -> bytes: ...
773
+ else:
774
+ def replace(self, old: ReadableBuffer, new: ReadableBuffer, count: SupportsIndex = -1, /) -> bytes: ...
775
+
776
+ def removeprefix(self, prefix: ReadableBuffer, /) -> bytes: ...
777
+ def removesuffix(self, suffix: ReadableBuffer, /) -> bytes: ...
778
+ def rfind(
779
+ self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
780
+ ) -> int: ...
781
+ def rindex(
782
+ self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
783
+ ) -> int: ...
784
+ def rjust(self, width: SupportsIndex, fillchar: bytes | bytearray = b" ", /) -> bytes: ...
785
+ def rpartition(self, sep: ReadableBuffer, /) -> tuple[bytes, bytes, bytes]: ...
786
+ def rsplit(self, sep: ReadableBuffer | None = None, maxsplit: SupportsIndex = -1) -> list[bytes]: ...
787
+ def rstrip(self, bytes: ReadableBuffer | None = None, /) -> bytes: ...
788
+ def split(self, sep: ReadableBuffer | None = None, maxsplit: SupportsIndex = -1) -> list[bytes]: ...
789
+ def splitlines(self, keepends: bool = False) -> list[bytes]: ...
790
+ def startswith(
791
+ self,
792
+ prefix: ReadableBuffer | tuple[ReadableBuffer, ...],
793
+ start: SupportsIndex | None = None,
794
+ end: SupportsIndex | None = None,
795
+ /,
796
+ ) -> bool: ...
797
+ def strip(self, bytes: ReadableBuffer | None = None, /) -> bytes: ...
798
+ def swapcase(self) -> bytes: ...
799
+ def title(self) -> bytes: ...
800
+ def translate(self, table: ReadableBuffer | None, /, delete: ReadableBuffer = b"") -> bytes: ...
801
+ def upper(self) -> bytes: ...
802
+ def zfill(self, width: SupportsIndex, /) -> bytes: ...
803
+
804
+ if sys.version_info >= (3, 14):
805
+ @classmethod
806
+ def fromhex(cls, string: str | ReadableBuffer, /) -> Self: ...
807
+ else:
808
+ @classmethod
809
+ def fromhex(cls, string: str, /) -> Self: ...
810
+
811
+ @staticmethod
812
+ def maketrans(frm: ReadableBuffer, to: ReadableBuffer, /) -> bytes: ...
813
+ def __len__(self) -> int: ...
814
+ def __iter__(self) -> Iterator[int]: ...
815
+ def __hash__(self) -> int: ...
816
+
817
+ @overload
818
+ def __getitem__(self, key: SupportsIndex, /) -> int: ...
819
+ @overload
820
+ def __getitem__(self, key: slice[SupportsIndex | None], /) -> bytes: ...
821
+
822
+ def __add__(self, value: ReadableBuffer, /) -> bytes: ...
823
+ def __mul__(self, value: SupportsIndex, /) -> bytes: ...
824
+ def __rmul__(self, value: SupportsIndex, /) -> bytes: ...
825
+ def __mod__(self, value: Any, /) -> bytes: ...
826
+ # Incompatible with Sequence.__contains__
827
+ def __contains__(self, key: SupportsIndex | ReadableBuffer, /) -> bool: ... # type: ignore[override]
828
+ def __eq__(self, value: object, /) -> bool: ...
829
+ def __ne__(self, value: object, /) -> bool: ...
830
+ def __lt__(self, value: bytes, /) -> bool: ...
831
+ def __le__(self, value: bytes, /) -> bool: ...
832
+ def __gt__(self, value: bytes, /) -> bool: ...
833
+ def __ge__(self, value: bytes, /) -> bool: ...
834
+ def __getnewargs__(self) -> tuple[bytes]: ...
835
+ if sys.version_info >= (3, 11):
836
+ def __bytes__(self) -> bytes: ...
837
+
838
+ def __buffer__(self, flags: int, /) -> memoryview: ...
839
+
840
+ @disjoint_base
841
+ class bytearray(MutableSequence[int]):
842
+ @overload
843
+ def __init__(self) -> None: ...
844
+ @overload
845
+ def __init__(self, ints: Iterable[SupportsIndex] | SupportsIndex | ReadableBuffer, /) -> None: ...
846
+ @overload
847
+ def __init__(self, string: str, /, encoding: str, errors: str = "strict") -> None: ...
848
+
849
+ def append(self, item: SupportsIndex, /) -> None: ...
850
+ def capitalize(self) -> bytearray: ...
851
+ def center(self, width: SupportsIndex, fillchar: bytes = b" ", /) -> bytearray: ...
852
+ def count(
853
+ self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
854
+ ) -> int: ...
855
+ def copy(self) -> bytearray: ...
856
+ def decode(self, encoding: str = "utf-8", errors: str = "strict") -> str: ...
857
+ def endswith(
858
+ self,
859
+ suffix: ReadableBuffer | tuple[ReadableBuffer, ...],
860
+ start: SupportsIndex | None = None,
861
+ end: SupportsIndex | None = None,
862
+ /,
863
+ ) -> bool: ...
864
+ def expandtabs(self, tabsize: SupportsIndex = 8) -> bytearray: ...
865
+ def extend(self, iterable_of_ints: Iterable[SupportsIndex], /) -> None: ...
866
+ def find(
867
+ self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
868
+ ) -> int: ...
869
+ def hex(self, sep: str | bytes = ..., bytes_per_sep: SupportsIndex = 1) -> str: ...
870
+ def index(
871
+ self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
872
+ ) -> int: ...
873
+ def insert(self, index: SupportsIndex, item: SupportsIndex, /) -> None: ...
874
+ def isalnum(self) -> bool: ...
875
+ def isalpha(self) -> bool: ...
876
+ def isascii(self) -> bool: ...
877
+ def isdigit(self) -> bool: ...
878
+ def islower(self) -> bool: ...
879
+ def isspace(self) -> bool: ...
880
+ def istitle(self) -> bool: ...
881
+ def isupper(self) -> bool: ...
882
+ def join(self, iterable_of_bytes: Iterable[ReadableBuffer], /) -> bytearray: ...
883
+ def ljust(self, width: SupportsIndex, fillchar: bytes | bytearray = b" ", /) -> bytearray: ...
884
+ def lower(self) -> bytearray: ...
885
+ def lstrip(self, bytes: ReadableBuffer | None = None, /) -> bytearray: ...
886
+ def partition(self, sep: ReadableBuffer, /) -> tuple[bytearray, bytearray, bytearray]: ...
887
+ def pop(self, index: int = -1, /) -> int: ...
888
+ def remove(self, value: int, /) -> None: ...
889
+ def removeprefix(self, prefix: ReadableBuffer, /) -> bytearray: ...
890
+ def removesuffix(self, suffix: ReadableBuffer, /) -> bytearray: ...
891
+ if sys.version_info >= (3, 15):
892
+ def replace(self, old: ReadableBuffer, new: ReadableBuffer, /, count: SupportsIndex = -1) -> bytearray: ...
893
+ else:
894
+ def replace(self, old: ReadableBuffer, new: ReadableBuffer, count: SupportsIndex = -1, /) -> bytearray: ...
895
+
896
+ def rfind(
897
+ self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
898
+ ) -> int: ...
899
+ def rindex(
900
+ self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
901
+ ) -> int: ...
902
+ def rjust(self, width: SupportsIndex, fillchar: bytes | bytearray = b" ", /) -> bytearray: ...
903
+ def rpartition(self, sep: ReadableBuffer, /) -> tuple[bytearray, bytearray, bytearray]: ...
904
+ def rsplit(self, sep: ReadableBuffer | None = None, maxsplit: SupportsIndex = -1) -> list[bytearray]: ...
905
+ def rstrip(self, bytes: ReadableBuffer | None = None, /) -> bytearray: ...
906
+ def split(self, sep: ReadableBuffer | None = None, maxsplit: SupportsIndex = -1) -> list[bytearray]: ...
907
+ def splitlines(self, keepends: bool = False) -> list[bytearray]: ...
908
+ def startswith(
909
+ self,
910
+ prefix: ReadableBuffer | tuple[ReadableBuffer, ...],
911
+ start: SupportsIndex | None = None,
912
+ end: SupportsIndex | None = None,
913
+ /,
914
+ ) -> bool: ...
915
+ def strip(self, bytes: ReadableBuffer | None = None, /) -> bytearray: ...
916
+ def swapcase(self) -> bytearray: ...
917
+ def title(self) -> bytearray: ...
918
+ def translate(self, table: ReadableBuffer | None, /, delete: bytes = b"") -> bytearray: ...
919
+ if sys.version_info >= (3, 15):
920
+ def take_bytes(self, n: int | None = None, /) -> bytes: ...
921
+
922
+ def upper(self) -> bytearray: ...
923
+ def zfill(self, width: SupportsIndex, /) -> bytearray: ...
924
+
925
+ if sys.version_info >= (3, 14):
926
+ @classmethod
927
+ def fromhex(cls, string: str | ReadableBuffer, /) -> Self: ...
928
+ else:
929
+ @classmethod
930
+ def fromhex(cls, string: str, /) -> Self: ...
931
+
932
+ @staticmethod
933
+ def maketrans(frm: ReadableBuffer, to: ReadableBuffer, /) -> bytes: ...
934
+ def __len__(self) -> int: ...
935
+ def __iter__(self) -> Iterator[int]: ...
936
+ __hash__: ClassVar[None] # type: ignore[assignment]
937
+
938
+ @overload
939
+ def __getitem__(self, key: SupportsIndex, /) -> int: ...
940
+ @overload
941
+ def __getitem__(self, key: slice[SupportsIndex | None], /) -> bytearray: ...
942
+
943
+ @overload
944
+ def __setitem__(self, key: SupportsIndex, value: SupportsIndex, /) -> None: ...
945
+ @overload
946
+ def __setitem__(self, key: slice[SupportsIndex | None], value: Iterable[SupportsIndex] | bytes, /) -> None: ...
947
+
948
+ def __delitem__(self, key: SupportsIndex | slice[SupportsIndex | None], /) -> None: ...
949
+ def __add__(self, value: ReadableBuffer, /) -> bytearray: ...
950
+ # The superclass wants us to accept Iterable[int], but that fails at runtime.
951
+ def __iadd__(self, value: ReadableBuffer, /) -> Self: ... # type: ignore[override]
952
+ def __mul__(self, value: SupportsIndex, /) -> bytearray: ...
953
+ def __rmul__(self, value: SupportsIndex, /) -> bytearray: ...
954
+ def __imul__(self, value: SupportsIndex, /) -> Self: ...
955
+ def __mod__(self, value: Any, /) -> bytes: ...
956
+ # Incompatible with Sequence.__contains__
957
+ def __contains__(self, key: SupportsIndex | ReadableBuffer, /) -> bool: ... # type: ignore[override]
958
+ def __eq__(self, value: object, /) -> bool: ...
959
+ def __ne__(self, value: object, /) -> bool: ...
960
+ def __lt__(self, value: ReadableBuffer, /) -> bool: ...
961
+ def __le__(self, value: ReadableBuffer, /) -> bool: ...
962
+ def __gt__(self, value: ReadableBuffer, /) -> bool: ...
963
+ def __ge__(self, value: ReadableBuffer, /) -> bool: ...
964
+ def __alloc__(self) -> int: ...
965
+ def __buffer__(self, flags: int, /) -> memoryview: ...
966
+ def __release_buffer__(self, buffer: memoryview, /) -> None: ...
967
+ if sys.version_info >= (3, 14):
968
+ def resize(self, size: int, /) -> None: ...
969
+
970
+ _IntegerFormats: TypeAlias = Literal[
971
+ "b", "B", "@b", "@B", "h", "H", "@h", "@H", "i", "I", "@i", "@I", "l", "L", "@l", "@L", "q", "Q", "@q", "@Q", "P", "@P"
972
+ ]
973
+
974
+ @final
975
+ class memoryview(Sequence[_I]):
976
+ @property
977
+ def format(self) -> str: ...
978
+ @property
979
+ def itemsize(self) -> int: ...
980
+ @property
981
+ def shape(self) -> tuple[int, ...] | None: ...
982
+ @property
983
+ def strides(self) -> tuple[int, ...] | None: ...
984
+ @property
985
+ def suboffsets(self) -> tuple[int, ...] | None: ...
986
+ @property
987
+ def readonly(self) -> bool: ...
988
+ @property
989
+ def ndim(self) -> int: ...
990
+ @property
991
+ def obj(self) -> ReadableBuffer: ...
992
+ @property
993
+ def c_contiguous(self) -> bool: ...
994
+ @property
995
+ def f_contiguous(self) -> bool: ...
996
+ @property
997
+ def contiguous(self) -> bool: ...
998
+ @property
999
+ def nbytes(self) -> int: ...
1000
+ def __new__(cls, obj: ReadableBuffer) -> Self: ...
1001
+ def __enter__(self) -> Self: ...
1002
+ def __exit__(
1003
+ self,
1004
+ exc_type: type[BaseException] | None, # noqa: PYI036 # This is the module declaring BaseException
1005
+ exc_val: BaseException | None,
1006
+ exc_tb: TracebackType | None,
1007
+ /,
1008
+ ) -> None: ...
1009
+
1010
+ @overload
1011
+ def cast(self, format: Literal["c", "@c"], shape: list[int] | tuple[int, ...] = ...) -> memoryview[bytes]: ...
1012
+ @overload
1013
+ def cast(self, format: Literal["f", "@f", "d", "@d"], shape: list[int] | tuple[int, ...] = ...) -> memoryview[float]: ...
1014
+ @overload
1015
+ def cast(self, format: Literal["?"], shape: list[int] | tuple[int, ...] = ...) -> memoryview[bool]: ...
1016
+ @overload
1017
+ def cast(self, format: _IntegerFormats, shape: list[int] | tuple[int, ...] = ...) -> memoryview: ...
1018
+
1019
+ @overload
1020
+ def __getitem__(self, key: SupportsIndex | tuple[SupportsIndex, ...], /) -> _I: ...
1021
+ @overload
1022
+ def __getitem__(self, key: slice[SupportsIndex | None], /) -> memoryview[_I]: ...
1023
+
1024
+ def __contains__(self, x: object, /) -> bool: ...
1025
+ def __iter__(self) -> Iterator[_I]: ...
1026
+ def __len__(self) -> int: ...
1027
+ def __eq__(self, value: object, /) -> bool: ...
1028
+ def __hash__(self) -> int: ...
1029
+
1030
+ @overload
1031
+ def __setitem__(self, key: slice[SupportsIndex | None], value: ReadableBuffer, /) -> None: ...
1032
+ @overload
1033
+ def __setitem__(self, key: SupportsIndex | tuple[SupportsIndex, ...], value: _I, /) -> None: ...
1034
+
1035
+ def tobytes(self, order: Literal["C", "F", "A"] | None = "C") -> bytes: ...
1036
+ def tolist(self) -> list[int]: ...
1037
+ def toreadonly(self) -> memoryview: ...
1038
+ def release(self) -> None: ...
1039
+ def hex(self, sep: str | bytes = ..., bytes_per_sep: SupportsIndex = 1) -> str: ...
1040
+ def __buffer__(self, flags: int, /) -> memoryview: ...
1041
+ def __release_buffer__(self, buffer: memoryview, /) -> None: ...
1042
+ if sys.version_info >= (3, 14):
1043
+ def index(self, value: object, start: SupportsIndex = 0, stop: SupportsIndex = sys.maxsize, /) -> int: ...
1044
+ def count(self, value: object, /) -> int: ...
1045
+ else:
1046
+ # These are inherited from the Sequence ABC, but don't actually exist on memoryview.
1047
+ # See https://github.com/python/cpython/issues/125420
1048
+ index: ClassVar[None] # type: ignore[assignment]
1049
+ count: ClassVar[None] # type: ignore[assignment]
1050
+
1051
+ if sys.version_info >= (3, 14):
1052
+ def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
1053
+
1054
+ @final
1055
+ class bool(int):
1056
+ def __new__(cls, o: object = False, /) -> Self: ...
1057
+
1058
+ # The following overloads could be represented more elegantly with a TypeVar("_B", bool, int),
1059
+ # however mypy has a bug regarding TypeVar constraints (https://github.com/python/mypy/issues/11880).
1060
+ @overload
1061
+ def __and__(self, value: bool, /) -> bool: ...
1062
+ @overload
1063
+ def __and__(self, value: int, /) -> int: ...
1064
+
1065
+ @overload
1066
+ def __or__(self, value: bool, /) -> bool: ...
1067
+ @overload
1068
+ def __or__(self, value: int, /) -> int: ...
1069
+
1070
+ @overload
1071
+ def __xor__(self, value: bool, /) -> bool: ...
1072
+ @overload
1073
+ def __xor__(self, value: int, /) -> int: ...
1074
+
1075
+ @overload
1076
+ def __rand__(self, value: bool, /) -> bool: ...
1077
+ @overload
1078
+ def __rand__(self, value: int, /) -> int: ...
1079
+
1080
+ @overload
1081
+ def __ror__(self, value: bool, /) -> bool: ...
1082
+ @overload
1083
+ def __ror__(self, value: int, /) -> int: ...
1084
+
1085
+ @overload
1086
+ def __rxor__(self, value: bool, /) -> bool: ...
1087
+ @overload
1088
+ def __rxor__(self, value: int, /) -> int: ...
1089
+
1090
+ def __getnewargs__(self) -> tuple[int]: ...
1091
+ @deprecated("Will throw an error in Python 3.16. Use `not` for logical negation of bools instead.")
1092
+ def __invert__(self) -> int: ...
1093
+
1094
+ @final
1095
+ class slice(Generic[_StartT_co, _StopT_co, _StepT_co]):
1096
+ @property
1097
+ def start(self) -> _StartT_co: ...
1098
+ @property
1099
+ def step(self) -> _StepT_co: ...
1100
+ @property
1101
+ def stop(self) -> _StopT_co: ...
1102
+
1103
+ # Note: __new__ overloads map `None` to `Any`, since users expect slice(x, None)
1104
+ # to be compatible with slice(None, x).
1105
+ # generic slice --------------------------------------------------------------------
1106
+ @overload
1107
+ def __new__(cls, start: None, stop: None = None, step: None = None, /) -> slice[Any, Any, Any]: ...
1108
+ # unary overloads ------------------------------------------------------------------
1109
+ @overload
1110
+ def __new__(cls, stop: _T2, /) -> slice[Any, _T2, Any]: ...
1111
+ # binary overloads -----------------------------------------------------------------
1112
+ @overload
1113
+ def __new__(cls, start: _T1, stop: None, step: None = None, /) -> slice[_T1, Any, Any]: ...
1114
+ @overload
1115
+ def __new__(cls, start: None, stop: _T2, step: None = None, /) -> slice[Any, _T2, Any]: ...
1116
+ @overload
1117
+ def __new__(cls, start: _T1, stop: _T2, step: None = None, /) -> slice[_T1, _T2, Any]: ...
1118
+ # ternary overloads ----------------------------------------------------------------
1119
+ @overload
1120
+ def __new__(cls, start: None, stop: None, step: _T3, /) -> slice[Any, Any, _T3]: ...
1121
+ @overload
1122
+ def __new__(cls, start: _T1, stop: None, step: _T3, /) -> slice[_T1, Any, _T3]: ...
1123
+ @overload
1124
+ def __new__(cls, start: None, stop: _T2, step: _T3, /) -> slice[Any, _T2, _T3]: ...
1125
+ @overload
1126
+ def __new__(cls, start: _T1, stop: _T2, step: _T3, /) -> slice[_T1, _T2, _T3]: ...
1127
+
1128
+ def __eq__(self, value: object, /) -> bool: ...
1129
+ if sys.version_info >= (3, 12):
1130
+ def __hash__(self) -> int: ...
1131
+ else:
1132
+ __hash__: ClassVar[None] # type: ignore[assignment]
1133
+
1134
+ def indices(self, len: SupportsIndex, /) -> tuple[int, int, int]: ...
1135
+ if sys.version_info >= (3, 15):
1136
+ def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
1137
+
1138
+ @disjoint_base
1139
+ class tuple(Sequence[_T_co]):
1140
+ def __new__(cls, iterable: Iterable[_T_co] = (), /) -> Self: ...
1141
+ def __len__(self) -> int: ...
1142
+ def __contains__(self, key: object, /) -> bool: ...
1143
+
1144
+ @overload
1145
+ def __getitem__(self, key: SupportsIndex, /) -> _T_co: ...
1146
+ @overload
1147
+ def __getitem__(self, key: slice[SupportsIndex | None], /) -> tuple[_T_co, ...]: ...
1148
+
1149
+ def __iter__(self) -> Iterator[_T_co]: ...
1150
+ def __lt__(self, value: tuple[_T_co, ...], /) -> bool: ...
1151
+ def __le__(self, value: tuple[_T_co, ...], /) -> bool: ...
1152
+ def __gt__(self, value: tuple[_T_co, ...], /) -> bool: ...
1153
+ def __ge__(self, value: tuple[_T_co, ...], /) -> bool: ...
1154
+ def __eq__(self, value: object, /) -> bool: ...
1155
+ def __hash__(self) -> int: ...
1156
+
1157
+ @overload
1158
+ def __add__(self, value: tuple[_T_co, ...], /) -> tuple[_T_co, ...]: ...
1159
+ @overload
1160
+ def __add__(self, value: tuple[_T, ...], /) -> tuple[_T_co | _T, ...]: ...
1161
+
1162
+ def __mul__(self, value: SupportsIndex, /) -> tuple[_T_co, ...]: ...
1163
+ def __rmul__(self, value: SupportsIndex, /) -> tuple[_T_co, ...]: ...
1164
+ def count(self, value: Any, /) -> int: ...
1165
+ def index(self, value: Any, start: SupportsIndex = 0, stop: SupportsIndex = sys.maxsize, /) -> int: ...
1166
+ def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
1167
+
1168
+ # Doesn't exist at runtime, but deleting this breaks mypy and pyright. See:
1169
+ # https://github.com/python/typeshed/issues/7580
1170
+ # https://github.com/python/mypy/issues/8240
1171
+ # Obsolete, use types.FunctionType instead.
1172
+ @final
1173
+ @type_check_only
1174
+ class function:
1175
+ # Make sure this class definition stays roughly in line with `types.FunctionType`
1176
+ @property
1177
+ def __closure__(self) -> tuple[CellType, ...] | None: ...
1178
+ __code__: CodeType
1179
+ __defaults__: tuple[Any, ...] | None
1180
+ __dict__: dict[str, Any]
1181
+ @property
1182
+ def __globals__(self) -> dict[str, Any]: ...
1183
+ __name__: str
1184
+ __qualname__: str
1185
+ __annotations__: dict[str, AnnotationForm]
1186
+ if sys.version_info >= (3, 14):
1187
+ __annotate__: AnnotateFunc | None
1188
+ __kwdefaults__: dict[str, Any] | None
1189
+ @property
1190
+ def __builtins__(self) -> dict[str, Any]: ...
1191
+ if sys.version_info >= (3, 12):
1192
+ __type_params__: tuple[TypeVar | ParamSpec | TypeVarTuple, ...]
1193
+
1194
+ __module__: str
1195
+ if sys.version_info >= (3, 13):
1196
+ def __new__(
1197
+ cls,
1198
+ code: CodeType,
1199
+ globals: dict[str, Any],
1200
+ name: str | None = None,
1201
+ argdefs: tuple[object, ...] | None = None,
1202
+ closure: tuple[CellType, ...] | None = None,
1203
+ kwdefaults: dict[str, object] | None = None,
1204
+ ) -> Self: ...
1205
+ else:
1206
+ def __new__(
1207
+ cls,
1208
+ code: CodeType,
1209
+ globals: dict[str, Any],
1210
+ name: str | None = None,
1211
+ argdefs: tuple[object, ...] | None = None,
1212
+ closure: tuple[CellType, ...] | None = None,
1213
+ ) -> Self: ...
1214
+
1215
+ # mypy uses `builtins.function.__get__` to represent methods, properties, and getset_descriptors so we type the return as Any.
1216
+ def __get__(self, instance: object, owner: type | None = None, /) -> Any: ...
1217
+
1218
+ @disjoint_base
1219
+ class list(MutableSequence[_T]):
1220
+ @overload
1221
+ def __init__(self) -> None: ...
1222
+ @overload
1223
+ def __init__(self, iterable: Iterable[_T], /) -> None: ...
1224
+
1225
+ def copy(self) -> list[_T]: ...
1226
+ def append(self, object: _T, /) -> None: ...
1227
+ def extend(self, iterable: Iterable[_T], /) -> None: ...
1228
+ def pop(self, index: SupportsIndex = -1, /) -> _T: ...
1229
+ # Signature of `list.index` should be kept in line with `collections.UserList.index()`
1230
+ # and multiprocessing.managers.ListProxy.index()
1231
+ def index(self, value: _T, start: SupportsIndex = 0, stop: SupportsIndex = sys.maxsize, /) -> int: ...
1232
+ def count(self, value: _T, /) -> int: ...
1233
+ def insert(self, index: SupportsIndex, object: _T, /) -> None: ...
1234
+ def remove(self, value: _T, /) -> None: ...
1235
+
1236
+ # Signature of `list.sort` should be kept inline with `collections.UserList.sort()`
1237
+ # and multiprocessing.managers.ListProxy.sort()
1238
+ #
1239
+ # Use list[SupportsRichComparisonT] for the first overload rather than [SupportsRichComparison]
1240
+ # to work around invariance
1241
+ @overload
1242
+ def sort(self: list[SupportsRichComparisonT], *, key: None = None, reverse: bool = False) -> None: ...
1243
+ @overload
1244
+ def sort(self, *, key: Callable[[_T], SupportsRichComparison], reverse: bool = False) -> None: ...
1245
+
1246
+ def __len__(self) -> int: ...
1247
+ def __iter__(self) -> Iterator[_T]: ...
1248
+ __hash__: ClassVar[None] # type: ignore[assignment]
1249
+
1250
+ @overload
1251
+ def __getitem__(self, i: SupportsIndex, /) -> _T: ...
1252
+ @overload
1253
+ def __getitem__(self, s: slice[SupportsIndex | None], /) -> list[_T]: ...
1254
+
1255
+ @overload
1256
+ def __setitem__(self, key: SupportsIndex, value: _T, /) -> None: ...
1257
+ @overload
1258
+ def __setitem__(self, key: slice[SupportsIndex | None], value: Iterable[_T], /) -> None: ...
1259
+
1260
+ def __delitem__(self, key: SupportsIndex | slice[SupportsIndex | None], /) -> None: ...
1261
+
1262
+ # Overloading looks unnecessary, but is needed to work around complex mypy problems
1263
+ @overload
1264
+ def __add__(self, value: list[_T], /) -> list[_T]: ...
1265
+ @overload
1266
+ def __add__(self, value: list[_S], /) -> list[_S | _T]: ...
1267
+
1268
+ def __iadd__(self, value: Iterable[_T], /) -> Self: ... # type: ignore[misc]
1269
+ def __mul__(self, value: SupportsIndex, /) -> list[_T]: ...
1270
+ def __rmul__(self, value: SupportsIndex, /) -> list[_T]: ...
1271
+ def __imul__(self, value: SupportsIndex, /) -> Self: ...
1272
+ def __contains__(self, key: object, /) -> bool: ...
1273
+ def __reversed__(self) -> Iterator[_T]: ...
1274
+ def __gt__(self, value: list[_T], /) -> bool: ...
1275
+ def __ge__(self, value: list[_T], /) -> bool: ...
1276
+ def __lt__(self, value: list[_T], /) -> bool: ...
1277
+ def __le__(self, value: list[_T], /) -> bool: ...
1278
+ def __eq__(self, value: object, /) -> bool: ...
1279
+ def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
1280
+
1281
+ @disjoint_base
1282
+ class dict(MutableMapping[_KT, _VT]):
1283
+ # __init__ should be kept roughly in line with `collections.UserDict.__init__`, which has similar semantics
1284
+ # Also multiprocessing.managers.SyncManager.dict()
1285
+ @overload
1286
+ def __init__(self, /) -> None: ...
1287
+ @overload
1288
+ def __init__(self: dict[str, _VT], /, **kwargs: _VT) -> None: ... # pyright: ignore[reportInvalidTypeVarUse] #11780
1289
+ @overload
1290
+ def __init__(self, map: SupportsKeysAndGetItem[_KT, _VT], /) -> None: ...
1291
+ @overload
1292
+ def __init__(
1293
+ self: dict[str, _VT], # pyright: ignore[reportInvalidTypeVarUse] #11780
1294
+ map: SupportsKeysAndGetItem[str, _VT],
1295
+ /,
1296
+ **kwargs: _VT,
1297
+ ) -> None: ...
1298
+ @overload
1299
+ def __init__(self, iterable: Iterable[tuple[_KT, _VT]], /) -> None: ...
1300
+ @overload
1301
+ def __init__(
1302
+ self: dict[str, _VT], # pyright: ignore[reportInvalidTypeVarUse] #11780
1303
+ iterable: Iterable[tuple[str, _VT]],
1304
+ /,
1305
+ **kwargs: _VT,
1306
+ ) -> None: ...
1307
+ # Next two overloads are for dict(string.split(sep) for string in iterable)
1308
+ # Cannot be Iterable[Sequence[_T]] or otherwise dict(["foo", "bar", "baz"]) is not an error
1309
+ @overload
1310
+ def __init__(self: dict[str, str], iterable: Iterable[list[str]], /) -> None: ...
1311
+ @overload
1312
+ def __init__(self: dict[bytes, bytes], iterable: Iterable[list[bytes]], /) -> None: ...
1313
+
1314
+ def __new__(cls, /, *args: Any, **kwargs: Any) -> Self: ...
1315
+ def copy(self) -> dict[_KT, _VT]: ...
1316
+ def keys(self) -> dict_keys[_KT, _VT]: ...
1317
+ def values(self) -> dict_values[_KT, _VT]: ...
1318
+ def items(self) -> dict_items[_KT, _VT]: ...
1319
+
1320
+ # Signature of `dict.fromkeys` should be kept identical to
1321
+ # `fromkeys` methods of `OrderedDict`/`ChainMap`/`UserDict` in `collections`
1322
+ # TODO: the true signature of `dict.fromkeys` is not expressible in the current type system.
1323
+ # See #3800 & https://github.com/python/typing/issues/548#issuecomment-683336963.
1324
+ @classmethod
1325
+ @overload
1326
+ def fromkeys(cls, iterable: Iterable[_T], value: None = None, /) -> dict[_T, Any | None]: ...
1327
+ @classmethod
1328
+ @overload
1329
+ def fromkeys(cls, iterable: Iterable[_T], value: _S, /) -> dict[_T, _S]: ...
1330
+
1331
+ # Positional-only in dict, but not in MutableMapping
1332
+ @overload # type: ignore[override]
1333
+ def get(self, key: _KT, default: None = None, /) -> _VT | None: ...
1334
+ @overload
1335
+ def get(self, key: _KT, default: _VT, /) -> _VT: ...
1336
+ @overload
1337
+ def get(self, key: _KT, default: _T, /) -> _VT | _T: ...
1338
+
1339
+ @overload
1340
+ def pop(self, key: _KT, /) -> _VT: ...
1341
+ @overload
1342
+ def pop(self, key: _KT, default: _VT, /) -> _VT: ...
1343
+ @overload
1344
+ def pop(self, key: _KT, default: _T, /) -> _VT | _T: ...
1345
+
1346
+ def __len__(self) -> int: ...
1347
+ def __getitem__(self, key: _KT, /) -> _VT: ...
1348
+ def __setitem__(self, key: _KT, value: _VT, /) -> None: ...
1349
+ def __delitem__(self, key: _KT, /) -> None: ...
1350
+ def __iter__(self) -> Iterator[_KT]: ...
1351
+ def __eq__(self, value: object, /) -> bool: ...
1352
+ def __reversed__(self) -> Iterator[_KT]: ...
1353
+ __hash__: ClassVar[None] # type: ignore[assignment]
1354
+ def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
1355
+ if sys.version_info >= (3, 15):
1356
+ def __or__(self, value: dict[_T1, _T2] | frozendict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T2]: ...
1357
+
1358
+ @overload
1359
+ def __ror__(self, value: dict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T2]: ...
1360
+ @overload
1361
+ def __ror__(self, value: frozendict[_T1, _T2], /) -> frozendict[_KT | _T1, _VT | _T2]: ...
1362
+ else:
1363
+ def __or__(self, value: dict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T2]: ...
1364
+ def __ror__(self, value: dict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T2]: ...
1365
+
1366
+ # dict.__ior__ should be kept roughly in line with MutableMapping.update()
1367
+ @overload # type: ignore[misc]
1368
+ def __ior__(self, value: SupportsKeysAndGetItem[_KT, _VT], /) -> Self: ...
1369
+ @overload
1370
+ def __ior__(self, value: Iterable[tuple[_KT, _VT]], /) -> Self: ...
1371
+
1372
+ if sys.version_info >= (3, 15):
1373
+ @disjoint_base
1374
+ class frozendict(Mapping[_KT, _VT]):
1375
+ @overload
1376
+ def __new__(cls, /) -> frozendict[Any, Any]: ...
1377
+ @overload
1378
+ def __new__(cls: type[frozendict[str, _VT]], /, **kwargs: _VT) -> frozendict[str, _VT]: ...
1379
+ @overload
1380
+ def __new__(cls, map: SupportsKeysAndGetItem[_KT, _VT], /) -> frozendict[_KT, _VT]: ...
1381
+ @overload
1382
+ def __new__(
1383
+ cls: type[frozendict[str, _VT]], map: SupportsKeysAndGetItem[str, _VT], /, **kwargs: _VT
1384
+ ) -> frozendict[str, _VT]: ...
1385
+ @overload
1386
+ def __new__(cls, iterable: Iterable[tuple[_KT, _VT]], /) -> frozendict[_KT, _VT]: ...
1387
+ @overload
1388
+ def __new__(
1389
+ cls: type[frozendict[str, _VT]], iterable: Iterable[tuple[str, _VT]], /, **kwargs: _VT
1390
+ ) -> frozendict[str, _VT]: ...
1391
+
1392
+ def __init__(self) -> None: ...
1393
+ def copy(self) -> frozendict[_KT, _VT]: ...
1394
+
1395
+ @overload
1396
+ @classmethod
1397
+ def fromkeys(cls, iterable: Iterable[_T], value: None = None, /) -> frozendict[_T, Any | None]: ...
1398
+ @overload
1399
+ @classmethod
1400
+ def fromkeys(cls, iterable: Iterable[_T], value: _S, /) -> frozendict[_T, _S]: ...
1401
+
1402
+ @overload # type: ignore[override]
1403
+ def get(self, key: _KT, default: None = None, /) -> _VT | None: ...
1404
+ @overload
1405
+ def get(self, key: _KT, default: _VT, /) -> _VT: ...
1406
+ @overload
1407
+ def get(self, key: _KT, default: _T, /) -> _VT | _T: ...
1408
+
1409
+ def keys(self) -> dict_keys[_KT, _VT]: ...
1410
+ def values(self) -> dict_values[_KT, _VT]: ...
1411
+ def items(self) -> dict_items[_KT, _VT]: ...
1412
+ def __len__(self) -> int: ...
1413
+ def __getitem__(self, key: _KT, /) -> _VT: ...
1414
+ def __reversed__(self) -> Iterator[_KT]: ...
1415
+ def __iter__(self) -> Iterator[_KT]: ...
1416
+ def __hash__(self) -> int: ...
1417
+ def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
1418
+ def __or__(self, value: dict[_T1, _T2] | frozendict[_T1, _T2], /) -> frozendict[_KT | _T1, _VT | _T2]: ...
1419
+
1420
+ @overload
1421
+ def __ror__(self, value: dict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T2]: ...
1422
+ @overload
1423
+ def __ror__(self, value: frozendict[_T1, _T2], /) -> frozendict[_KT | _T1, _VT | _T2]: ...
1424
+
1425
+ @disjoint_base
1426
+ class set(MutableSet[_T]):
1427
+ @overload
1428
+ def __init__(self) -> None: ...
1429
+ @overload
1430
+ def __init__(self, iterable: Iterable[_T], /) -> None: ...
1431
+
1432
+ def add(self, element: _T, /) -> None: ...
1433
+ def copy(self) -> set[_T]: ...
1434
+ def difference(self, *s: Iterable[object]) -> set[_T]: ...
1435
+ def difference_update(self, *s: Iterable[object]) -> None: ...
1436
+ def discard(self, element: object, /) -> None: ...
1437
+ def intersection(self, *s: Iterable[object]) -> set[_T]: ...
1438
+ def intersection_update(self, *s: Iterable[object]) -> None: ...
1439
+ def isdisjoint(self, s: Iterable[object], /) -> bool: ...
1440
+ def issubset(self, s: Iterable[object], /) -> bool: ...
1441
+ def issuperset(self, s: Iterable[object], /) -> bool: ...
1442
+ def remove(self, element: _T, /) -> None: ...
1443
+ def symmetric_difference(self, s: Iterable[_S], /) -> set[_T | _S]: ...
1444
+ def symmetric_difference_update(self, s: Iterable[_T], /) -> None: ...
1445
+ def union(self, *s: Iterable[_S]) -> set[_T | _S]: ...
1446
+ def update(self, *s: Iterable[_T]) -> None: ...
1447
+ def __len__(self) -> int: ...
1448
+ def __contains__(self, o: object, /) -> bool: ...
1449
+ def __iter__(self) -> Iterator[_T]: ...
1450
+ def __and__(self, value: AbstractSet[object], /) -> set[_T]: ...
1451
+ def __iand__(self, value: AbstractSet[object], /) -> Self: ...
1452
+ def __or__(self, value: AbstractSet[_S], /) -> set[_T | _S]: ...
1453
+ def __ior__(self, value: AbstractSet[_T], /) -> Self: ... # type: ignore[override,misc]
1454
+ def __sub__(self, value: AbstractSet[object], /) -> set[_T]: ...
1455
+ def __isub__(self, value: AbstractSet[object], /) -> Self: ...
1456
+ def __xor__(self, value: AbstractSet[_S], /) -> set[_T | _S]: ...
1457
+ def __ixor__(self, value: AbstractSet[_T], /) -> Self: ... # type: ignore[override,misc]
1458
+ def __le__(self, value: AbstractSet[object], /) -> bool: ...
1459
+ def __lt__(self, value: AbstractSet[object], /) -> bool: ...
1460
+ def __ge__(self, value: AbstractSet[object], /) -> bool: ...
1461
+ def __gt__(self, value: AbstractSet[object], /) -> bool: ...
1462
+ def __eq__(self, value: object, /) -> bool: ...
1463
+ __hash__: ClassVar[None] # type: ignore[assignment]
1464
+ def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
1465
+
1466
+ @disjoint_base
1467
+ class frozenset(AbstractSet[_T_co]):
1468
+ @overload
1469
+ def __new__(cls) -> Self: ...
1470
+ @overload
1471
+ def __new__(cls, iterable: Iterable[_T_co], /) -> Self: ...
1472
+
1473
+ def copy(self) -> frozenset[_T_co]: ...
1474
+ def difference(self, *s: Iterable[object]) -> frozenset[_T_co]: ...
1475
+ def intersection(self, *s: Iterable[object]) -> frozenset[_T_co]: ...
1476
+ def isdisjoint(self, s: Iterable[object], /) -> bool: ...
1477
+ def issubset(self, s: Iterable[object], /) -> bool: ...
1478
+ def issuperset(self, s: Iterable[object], /) -> bool: ...
1479
+ def symmetric_difference(self, s: Iterable[_S], /) -> frozenset[_T_co | _S]: ...
1480
+ def union(self, *s: Iterable[_S]) -> frozenset[_T_co | _S]: ...
1481
+ def __len__(self) -> int: ...
1482
+ def __contains__(self, o: object, /) -> bool: ...
1483
+ def __iter__(self) -> Iterator[_T_co]: ...
1484
+ def __and__(self, value: AbstractSet[object], /) -> frozenset[_T_co]: ...
1485
+ def __or__(self, value: AbstractSet[_S], /) -> frozenset[_T_co | _S]: ...
1486
+ def __sub__(self, value: AbstractSet[object], /) -> frozenset[_T_co]: ...
1487
+ def __xor__(self, value: AbstractSet[_S], /) -> frozenset[_T_co | _S]: ...
1488
+ def __le__(self, value: AbstractSet[object], /) -> bool: ...
1489
+ def __lt__(self, value: AbstractSet[object], /) -> bool: ...
1490
+ def __ge__(self, value: AbstractSet[object], /) -> bool: ...
1491
+ def __gt__(self, value: AbstractSet[object], /) -> bool: ...
1492
+ def __eq__(self, value: object, /) -> bool: ...
1493
+ def __hash__(self) -> int: ...
1494
+ def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
1495
+
1496
+ @disjoint_base
1497
+ class enumerate(Generic[_T]):
1498
+ def __new__(cls, iterable: Iterable[_T], start: int = 0) -> Self: ...
1499
+ def __iter__(self) -> Self: ...
1500
+ def __next__(self) -> tuple[int, _T]: ...
1501
+ def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
1502
+
1503
+ @final
1504
+ class range(Sequence[int]):
1505
+ @property
1506
+ def start(self) -> int: ...
1507
+ @property
1508
+ def stop(self) -> int: ...
1509
+ @property
1510
+ def step(self) -> int: ...
1511
+
1512
+ @overload
1513
+ def __new__(cls, stop: SupportsIndex, /) -> Self: ...
1514
+ @overload
1515
+ def __new__(cls, start: SupportsIndex, stop: SupportsIndex, step: SupportsIndex = 1, /) -> Self: ...
1516
+
1517
+ def count(self, value: int, /) -> int: ...
1518
+ def index(self, value: int, /) -> int: ... # type: ignore[override]
1519
+ def __len__(self) -> int: ...
1520
+ def __eq__(self, value: object, /) -> bool: ...
1521
+ def __hash__(self) -> int: ...
1522
+ def __contains__(self, key: object, /) -> bool: ...
1523
+ def __iter__(self) -> Iterator[int]: ...
1524
+
1525
+ @overload
1526
+ def __getitem__(self, key: SupportsIndex, /) -> int: ...
1527
+ @overload
1528
+ def __getitem__(self, key: slice[SupportsIndex | None], /) -> range: ...
1529
+
1530
+ def __reversed__(self) -> Iterator[int]: ...
1531
+
1532
+ @disjoint_base
1533
+ class property:
1534
+ fget: Callable[[Any], Any] | None
1535
+ fset: Callable[[Any, Any], None] | None
1536
+ fdel: Callable[[Any], None] | None
1537
+ __isabstractmethod__: bool
1538
+ if sys.version_info >= (3, 13):
1539
+ __name__: str
1540
+
1541
+ def __init__(
1542
+ self,
1543
+ fget: Callable[[Any], Any] | None = None,
1544
+ fset: Callable[[Any, Any], None] | None = None,
1545
+ fdel: Callable[[Any], None] | None = None,
1546
+ doc: str | None = None,
1547
+ ) -> None: ...
1548
+ def getter(self, fget: Callable[[Any], Any], /) -> property: ...
1549
+ def setter(self, fset: Callable[[Any, Any], None], /) -> property: ...
1550
+ def deleter(self, fdel: Callable[[Any], None], /) -> property: ...
1551
+
1552
+ @overload
1553
+ def __get__(self, instance: None, owner: type, /) -> Self: ...
1554
+ @overload
1555
+ def __get__(self, instance: Any, owner: type | None = None, /) -> Any: ...
1556
+
1557
+ def __set__(self, instance: Any, value: Any, /) -> None: ...
1558
+ def __delete__(self, instance: Any, /) -> None: ...
1559
+
1560
+ def abs(x: SupportsAbs[_T], /) -> _T: ...
1561
+ def all(iterable: Iterable[object], /) -> bool: ...
1562
+ def any(iterable: Iterable[object], /) -> bool: ...
1563
+ def ascii(obj: object, /) -> str: ...
1564
+
1565
+ if sys.version_info >= (3, 15):
1566
+ def bin(integer: SupportsIndex, /) -> str: ...
1567
+
1568
+ else:
1569
+ def bin(number: SupportsIndex, /) -> str: ...
1570
+
1571
+ def breakpoint(*args: Any, **kws: Any) -> None: ...
1572
+ def callable(obj: object, /) -> TypeIs[Callable[..., object]]: ...
1573
+ def chr(i: SupportsIndex, /) -> str: ...
1574
+ def aiter(async_iterable: SupportsAiter[_SupportsAnextT_co], /) -> _SupportsAnextT_co: ...
1575
+
1576
+ @type_check_only
1577
+ class _SupportsSynchronousAnext(Protocol[_AwaitableT_co]):
1578
+ def __anext__(self) -> _AwaitableT_co: ...
1579
+
1580
+ @overload
1581
+ # `anext` is not, in fact, an async function. When default is not provided
1582
+ # `anext` is just a passthrough for `obj.__anext__`
1583
+ # See discussion in #7491 and pure-Python implementation of `anext` at https://github.com/python/cpython/blob/ea786a882b9ed4261eafabad6011bc7ef3b5bf94/Lib/test/test_asyncgen.py#L52-L80
1584
+ def anext(i: _SupportsSynchronousAnext[_AwaitableT], /) -> _AwaitableT: ...
1585
+ @overload
1586
+ async def anext(i: SupportsAnext[_T], default: _VT, /) -> _T | _VT: ...
1587
+
1588
+ # compile() returns a CodeType, unless the flags argument includes PyCF_ONLY_AST (=1024),
1589
+ # in which case it returns ast.AST. We have overloads for flag 0 (the default) and for
1590
+ # explicitly passing PyCF_ONLY_AST. We fall back to Any for other values of flags.
1591
+ if sys.version_info >= (3, 15):
1592
+ @overload
1593
+ def compile(
1594
+ source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
1595
+ filename: str | bytes | PathLike[Any],
1596
+ mode: str,
1597
+ flags: Literal[0],
1598
+ dont_inherit: bool = False,
1599
+ optimize: int = -1,
1600
+ *,
1601
+ module: str | None = None,
1602
+ _feature_version: int = -1,
1603
+ ) -> CodeType: ...
1604
+ @overload
1605
+ def compile(
1606
+ source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
1607
+ filename: str | bytes | PathLike[Any],
1608
+ mode: str,
1609
+ *,
1610
+ dont_inherit: bool = False,
1611
+ optimize: int = -1,
1612
+ module: str | None = None,
1613
+ _feature_version: int = -1,
1614
+ ) -> CodeType: ...
1615
+ @overload
1616
+ def compile(
1617
+ source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
1618
+ filename: str | bytes | PathLike[Any],
1619
+ mode: str,
1620
+ flags: Literal[1024],
1621
+ dont_inherit: bool = False,
1622
+ optimize: int = -1,
1623
+ *,
1624
+ module: str | None = None,
1625
+ _feature_version: int = -1,
1626
+ ) -> _ast.AST: ...
1627
+ @overload
1628
+ def compile(
1629
+ source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
1630
+ filename: str | bytes | PathLike[Any],
1631
+ mode: str,
1632
+ flags: int,
1633
+ dont_inherit: bool = False,
1634
+ optimize: int = -1,
1635
+ *,
1636
+ module: str | None = None,
1637
+ _feature_version: int = -1,
1638
+ ) -> Any: ...
1639
+ else:
1640
+ @overload
1641
+ def compile(
1642
+ source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
1643
+ filename: str | bytes | PathLike[Any],
1644
+ mode: str,
1645
+ flags: Literal[0],
1646
+ dont_inherit: bool = False,
1647
+ optimize: int = -1,
1648
+ *,
1649
+ _feature_version: int = -1,
1650
+ ) -> CodeType: ...
1651
+ @overload
1652
+ def compile(
1653
+ source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
1654
+ filename: str | bytes | PathLike[Any],
1655
+ mode: str,
1656
+ *,
1657
+ dont_inherit: bool = False,
1658
+ optimize: int = -1,
1659
+ _feature_version: int = -1,
1660
+ ) -> CodeType: ...
1661
+ @overload
1662
+ def compile(
1663
+ source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
1664
+ filename: str | bytes | PathLike[Any],
1665
+ mode: str,
1666
+ flags: Literal[1024],
1667
+ dont_inherit: bool = False,
1668
+ optimize: int = -1,
1669
+ *,
1670
+ _feature_version: int = -1,
1671
+ ) -> _ast.AST: ...
1672
+ @overload
1673
+ def compile(
1674
+ source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
1675
+ filename: str | bytes | PathLike[Any],
1676
+ mode: str,
1677
+ flags: int,
1678
+ dont_inherit: bool = False,
1679
+ optimize: int = -1,
1680
+ *,
1681
+ _feature_version: int = -1,
1682
+ ) -> Any: ...
1683
+
1684
+ copyright: _sitebuiltins._Printer
1685
+ credits: _sitebuiltins._Printer
1686
+
1687
+ def delattr(obj: object, name: str, /) -> None: ...
1688
+ def dir(o: object = ..., /) -> list[str]: ...
1689
+
1690
+ @overload
1691
+ def divmod(x: SupportsDivMod[_T_contra, _T_co], y: _T_contra, /) -> _T_co: ...
1692
+ @overload
1693
+ def divmod(x: _T_contra, y: SupportsRDivMod[_T_contra, _T_co], /) -> _T_co: ...
1694
+
1695
+ # The `globals` argument to `eval` has to be `dict[str, Any]` rather than `dict[str, object]` due to invariance.
1696
+ # (The `globals` argument has to be a "real dict", rather than any old mapping, unlike the `locals` argument.)
1697
+ if sys.version_info >= (3, 15):
1698
+ def eval(
1699
+ source: str | ReadableBuffer | CodeType,
1700
+ /,
1701
+ globals: dict[str, Any] | frozendict[str, Any] | None = None,
1702
+ locals: Mapping[str, object] | None = None,
1703
+ ) -> Any: ...
1704
+
1705
+ elif sys.version_info >= (3, 13):
1706
+ def eval(
1707
+ source: str | ReadableBuffer | CodeType,
1708
+ /,
1709
+ globals: dict[str, Any] | None = None,
1710
+ locals: Mapping[str, object] | None = None,
1711
+ ) -> Any: ...
1712
+
1713
+ else:
1714
+ def eval(
1715
+ source: str | ReadableBuffer | CodeType,
1716
+ globals: dict[str, Any] | None = None,
1717
+ locals: Mapping[str, object] | None = None,
1718
+ /,
1719
+ ) -> Any: ...
1720
+
1721
+ # Comment above regarding `eval` applies to `exec` as well
1722
+ if sys.version_info >= (3, 15):
1723
+ def exec(
1724
+ source: str | ReadableBuffer | CodeType,
1725
+ /,
1726
+ globals: dict[str, Any] | frozendict[str, Any] | None = None,
1727
+ locals: Mapping[str, object] | None = None,
1728
+ *,
1729
+ closure: tuple[CellType, ...] | None = None,
1730
+ ) -> None: ...
1731
+
1732
+ elif sys.version_info >= (3, 13):
1733
+ def exec(
1734
+ source: str | ReadableBuffer | CodeType,
1735
+ /,
1736
+ globals: dict[str, Any] | None = None,
1737
+ locals: Mapping[str, object] | None = None,
1738
+ *,
1739
+ closure: tuple[CellType, ...] | None = None,
1740
+ ) -> None: ...
1741
+
1742
+ elif sys.version_info >= (3, 11):
1743
+ def exec(
1744
+ source: str | ReadableBuffer | CodeType,
1745
+ globals: dict[str, Any] | None = None,
1746
+ locals: Mapping[str, object] | None = None,
1747
+ /,
1748
+ *,
1749
+ closure: tuple[CellType, ...] | None = None,
1750
+ ) -> None: ...
1751
+
1752
+ else:
1753
+ def exec(
1754
+ source: str | ReadableBuffer | CodeType,
1755
+ globals: dict[str, Any] | None = None,
1756
+ locals: Mapping[str, object] | None = None,
1757
+ /,
1758
+ ) -> None: ...
1759
+
1760
+ exit: _sitebuiltins.Quitter
1761
+
1762
+ @disjoint_base
1763
+ class filter(Generic[_T]):
1764
+ @overload
1765
+ def __new__(cls, function: None, iterable: Iterable[_T | None], /) -> Self: ...
1766
+ @overload
1767
+ def __new__(cls, function: Callable[[_S], TypeGuard[_T]], iterable: Iterable[_S], /) -> Self: ...
1768
+ @overload
1769
+ def __new__(cls, function: Callable[[_S], TypeIs[_T]], iterable: Iterable[_S], /) -> Self: ...
1770
+ @overload
1771
+ def __new__(cls, function: Callable[[_T], Any], iterable: Iterable[_T], /) -> Self: ...
1772
+
1773
+ def __iter__(self) -> Self: ...
1774
+ def __next__(self) -> _T: ...
1775
+
1776
+ def format(value: object, format_spec: str = "", /) -> str: ...
1777
+
1778
+ @overload
1779
+ def getattr(o: object, name: str, /) -> Any: ...
1780
+
1781
+ # While technically covered by the last overload, spelling out the types for None, bool
1782
+ # and basic containers help mypy out in some tricky situations involving type context
1783
+ # (aka bidirectional inference)
1784
+ @overload
1785
+ def getattr(o: object, name: str, default: None, /) -> Any | None: ...
1786
+ @overload
1787
+ def getattr(o: object, name: str, default: bool, /) -> Any | bool: ...
1788
+ @overload
1789
+ def getattr(o: object, name: str, default: list[Any], /) -> Any | list[Any]: ...
1790
+ @overload
1791
+ def getattr(o: object, name: str, default: dict[Any, Any], /) -> Any | dict[Any, Any]: ...
1792
+ @overload
1793
+ def getattr(o: object, name: str, default: _T, /) -> Any | _T: ...
1794
+
1795
+ def globals() -> dict[str, Any]: ...
1796
+ def hasattr(obj: object, name: str, /) -> bool: ...
1797
+ def hash(obj: object, /) -> int: ...
1798
+
1799
+ help: _sitebuiltins._Helper
1800
+
1801
+ if sys.version_info >= (3, 15):
1802
+ def hex(integer: SupportsIndex, /) -> str: ...
1803
+
1804
+ else:
1805
+ def hex(number: SupportsIndex, /) -> str: ...
1806
+
1807
+ def id(obj: object, /) -> int: ...
1808
+ def input(prompt: object = "", /) -> str: ...
1809
+
1810
+ @type_check_only
1811
+ class _GetItemIterable(Protocol[_T_co]):
1812
+ def __getitem__(self, i: int, /) -> _T_co: ...
1813
+
1814
+ @overload
1815
+ def iter(object: SupportsIter[_SupportsNextT_co], /) -> _SupportsNextT_co: ...
1816
+ @overload
1817
+ def iter(object: _GetItemIterable[_T], /) -> Iterator[_T]: ...
1818
+ @overload
1819
+ def iter(object: Callable[[], _T | None], sentinel: None, /) -> Iterator[_T]: ...
1820
+ @overload
1821
+ def iter(object: Callable[[], _T], sentinel: object, /) -> Iterator[_T]: ...
1822
+
1823
+ _ClassInfo: TypeAlias = type | types.UnionType | tuple[_ClassInfo, ...]
1824
+
1825
+ def isinstance(obj: object, class_or_tuple: _ClassInfo, /) -> bool: ...
1826
+ def issubclass(cls: type, class_or_tuple: _ClassInfo, /) -> bool: ...
1827
+ def len(obj: Sized, /) -> int: ...
1828
+
1829
+ license: _sitebuiltins._Printer
1830
+
1831
+ def locals() -> dict[str, Any]: ...
1832
+
1833
+ @disjoint_base
1834
+ class map(Generic[_S]):
1835
+ # 3.14 adds `strict` argument.
1836
+ if sys.version_info >= (3, 14):
1837
+ @overload
1838
+ def __new__(cls, func: Callable[[_T1], _S], iterable: Iterable[_T1], /, *, strict: bool = False) -> Self: ...
1839
+ @overload
1840
+ def __new__(
1841
+ cls, func: Callable[[_T1, _T2], _S], iterable: Iterable[_T1], iter2: Iterable[_T2], /, *, strict: bool = False
1842
+ ) -> Self: ...
1843
+ @overload
1844
+ def __new__(
1845
+ cls,
1846
+ func: Callable[[_T1, _T2, _T3], _S],
1847
+ iterable: Iterable[_T1],
1848
+ iter2: Iterable[_T2],
1849
+ iter3: Iterable[_T3],
1850
+ /,
1851
+ *,
1852
+ strict: bool = False,
1853
+ ) -> Self: ...
1854
+ @overload
1855
+ def __new__(
1856
+ cls,
1857
+ func: Callable[[_T1, _T2, _T3, _T4], _S],
1858
+ iterable: Iterable[_T1],
1859
+ iter2: Iterable[_T2],
1860
+ iter3: Iterable[_T3],
1861
+ iter4: Iterable[_T4],
1862
+ /,
1863
+ *,
1864
+ strict: bool = False,
1865
+ ) -> Self: ...
1866
+ @overload
1867
+ def __new__(
1868
+ cls,
1869
+ func: Callable[[_T1, _T2, _T3, _T4, _T5], _S],
1870
+ iterable: Iterable[_T1],
1871
+ iter2: Iterable[_T2],
1872
+ iter3: Iterable[_T3],
1873
+ iter4: Iterable[_T4],
1874
+ iter5: Iterable[_T5],
1875
+ /,
1876
+ *,
1877
+ strict: bool = False,
1878
+ ) -> Self: ...
1879
+ @overload
1880
+ def __new__(
1881
+ cls,
1882
+ func: Callable[..., _S],
1883
+ iterable: Iterable[Any],
1884
+ iter2: Iterable[Any],
1885
+ iter3: Iterable[Any],
1886
+ iter4: Iterable[Any],
1887
+ iter5: Iterable[Any],
1888
+ iter6: Iterable[Any],
1889
+ /,
1890
+ *iterables: Iterable[Any],
1891
+ strict: bool = False,
1892
+ ) -> Self: ...
1893
+ else:
1894
+ @overload
1895
+ def __new__(cls, func: Callable[[_T1], _S], iterable: Iterable[_T1], /) -> Self: ...
1896
+ @overload
1897
+ def __new__(cls, func: Callable[[_T1, _T2], _S], iterable: Iterable[_T1], iter2: Iterable[_T2], /) -> Self: ...
1898
+ @overload
1899
+ def __new__(
1900
+ cls, func: Callable[[_T1, _T2, _T3], _S], iterable: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], /
1901
+ ) -> Self: ...
1902
+ @overload
1903
+ def __new__(
1904
+ cls,
1905
+ func: Callable[[_T1, _T2, _T3, _T4], _S],
1906
+ iterable: Iterable[_T1],
1907
+ iter2: Iterable[_T2],
1908
+ iter3: Iterable[_T3],
1909
+ iter4: Iterable[_T4],
1910
+ /,
1911
+ ) -> Self: ...
1912
+ @overload
1913
+ def __new__(
1914
+ cls,
1915
+ func: Callable[[_T1, _T2, _T3, _T4, _T5], _S],
1916
+ iterable: Iterable[_T1],
1917
+ iter2: Iterable[_T2],
1918
+ iter3: Iterable[_T3],
1919
+ iter4: Iterable[_T4],
1920
+ iter5: Iterable[_T5],
1921
+ /,
1922
+ ) -> Self: ...
1923
+ @overload
1924
+ def __new__(
1925
+ cls,
1926
+ func: Callable[..., _S],
1927
+ iterable: Iterable[Any],
1928
+ iter2: Iterable[Any],
1929
+ iter3: Iterable[Any],
1930
+ iter4: Iterable[Any],
1931
+ iter5: Iterable[Any],
1932
+ iter6: Iterable[Any],
1933
+ /,
1934
+ *iterables: Iterable[Any],
1935
+ ) -> Self: ...
1936
+
1937
+ def __iter__(self) -> Self: ...
1938
+ def __next__(self) -> _S: ...
1939
+
1940
+ @overload
1941
+ def max(
1942
+ arg1: SupportsRichComparisonT, arg2: SupportsRichComparisonT, /, *_args: SupportsRichComparisonT, key: None = None
1943
+ ) -> SupportsRichComparisonT: ...
1944
+ @overload
1945
+ def max(arg1: _T, arg2: _T, /, *_args: _T, key: Callable[[_T], SupportsRichComparison]) -> _T: ...
1946
+ @overload
1947
+ def max(iterable: Iterable[SupportsRichComparisonT], /, *, key: None = None) -> SupportsRichComparisonT: ...
1948
+ @overload
1949
+ def max(iterable: Iterable[_T], /, *, key: Callable[[_T], SupportsRichComparison]) -> _T: ...
1950
+ @overload
1951
+ def max(iterable: Iterable[SupportsRichComparisonT], /, *, key: None = None, default: _T) -> SupportsRichComparisonT | _T: ...
1952
+ @overload
1953
+ def max(iterable: Iterable[_T1], /, *, key: Callable[[_T1], SupportsRichComparison], default: _T2) -> _T1 | _T2: ...
1954
+
1955
+ @overload
1956
+ def min(
1957
+ arg1: SupportsRichComparisonT, arg2: SupportsRichComparisonT, /, *_args: SupportsRichComparisonT, key: None = None
1958
+ ) -> SupportsRichComparisonT: ...
1959
+ @overload
1960
+ def min(arg1: _T, arg2: _T, /, *_args: _T, key: Callable[[_T], SupportsRichComparison]) -> _T: ...
1961
+ @overload
1962
+ def min(iterable: Iterable[SupportsRichComparisonT], /, *, key: None = None) -> SupportsRichComparisonT: ...
1963
+ @overload
1964
+ def min(iterable: Iterable[_T], /, *, key: Callable[[_T], SupportsRichComparison]) -> _T: ...
1965
+ @overload
1966
+ def min(iterable: Iterable[SupportsRichComparisonT], /, *, key: None = None, default: _T) -> SupportsRichComparisonT | _T: ...
1967
+ @overload
1968
+ def min(iterable: Iterable[_T1], /, *, key: Callable[[_T1], SupportsRichComparison], default: _T2) -> _T1 | _T2: ...
1969
+
1970
+ @overload
1971
+ def next(i: SupportsNext[_T], /) -> _T: ...
1972
+ @overload
1973
+ def next(i: SupportsNext[_T], default: _VT, /) -> _T | _VT: ...
1974
+
1975
+ if sys.version_info >= (3, 15):
1976
+ def oct(integer: SupportsIndex, /) -> str: ...
1977
+
1978
+ else:
1979
+ def oct(number: SupportsIndex, /) -> str: ...
1980
+
1981
+ _Opener: TypeAlias = Callable[[str, int], int]
1982
+
1983
+ # Text mode: always returns a TextIOWrapper
1984
+ @overload
1985
+ def open(
1986
+ file: FileDescriptorOrPath,
1987
+ mode: OpenTextMode = "r",
1988
+ buffering: int = -1,
1989
+ encoding: str | None = None,
1990
+ errors: str | None = None,
1991
+ newline: str | None = None,
1992
+ closefd: bool = True,
1993
+ opener: _Opener | None = None,
1994
+ ) -> TextIOWrapper: ...
1995
+
1996
+ # Unbuffered binary mode: returns a FileIO
1997
+ @overload
1998
+ def open(
1999
+ file: FileDescriptorOrPath,
2000
+ mode: OpenBinaryMode,
2001
+ buffering: Literal[0],
2002
+ encoding: None = None,
2003
+ errors: None = None,
2004
+ newline: None = None,
2005
+ closefd: bool = True,
2006
+ opener: _Opener | None = None,
2007
+ ) -> FileIO: ...
2008
+
2009
+ # Buffering is on: return BufferedRandom, BufferedReader, or BufferedWriter
2010
+ @overload
2011
+ def open(
2012
+ file: FileDescriptorOrPath,
2013
+ mode: OpenBinaryModeUpdating,
2014
+ buffering: Literal[-1, 1] = -1,
2015
+ encoding: None = None,
2016
+ errors: None = None,
2017
+ newline: None = None,
2018
+ closefd: bool = True,
2019
+ opener: _Opener | None = None,
2020
+ ) -> BufferedRandom: ...
2021
+ @overload
2022
+ def open(
2023
+ file: FileDescriptorOrPath,
2024
+ mode: OpenBinaryModeWriting,
2025
+ buffering: Literal[-1, 1] = -1,
2026
+ encoding: None = None,
2027
+ errors: None = None,
2028
+ newline: None = None,
2029
+ closefd: bool = True,
2030
+ opener: _Opener | None = None,
2031
+ ) -> BufferedWriter: ...
2032
+ @overload
2033
+ def open(
2034
+ file: FileDescriptorOrPath,
2035
+ mode: OpenBinaryModeReading,
2036
+ buffering: Literal[-1, 1] = -1,
2037
+ encoding: None = None,
2038
+ errors: None = None,
2039
+ newline: None = None,
2040
+ closefd: bool = True,
2041
+ opener: _Opener | None = None,
2042
+ ) -> BufferedReader: ...
2043
+
2044
+ # Buffering cannot be determined: fall back to BinaryIO
2045
+ @overload
2046
+ def open(
2047
+ file: FileDescriptorOrPath,
2048
+ mode: OpenBinaryMode,
2049
+ buffering: int = -1,
2050
+ encoding: None = None,
2051
+ errors: None = None,
2052
+ newline: None = None,
2053
+ closefd: bool = True,
2054
+ opener: _Opener | None = None,
2055
+ ) -> BinaryIO: ...
2056
+
2057
+ # Fallback if mode is not specified
2058
+ @overload
2059
+ def open(
2060
+ file: FileDescriptorOrPath,
2061
+ mode: str,
2062
+ buffering: int = -1,
2063
+ encoding: str | None = None,
2064
+ errors: str | None = None,
2065
+ newline: str | None = None,
2066
+ closefd: bool = True,
2067
+ opener: _Opener | None = None,
2068
+ ) -> IO[Any]: ...
2069
+
2070
+ def ord(c: str | bytes | bytearray, /) -> int: ...
2071
+
2072
+ @type_check_only
2073
+ class _SupportsWriteAndFlush(SupportsWrite[_T_contra], SupportsFlush, Protocol[_T_contra]): ...
2074
+
2075
+ @overload
2076
+ def print(
2077
+ *values: object,
2078
+ sep: str | None = " ",
2079
+ end: str | None = "\n",
2080
+ file: SupportsWrite[str] | None = None,
2081
+ flush: Literal[False] = False,
2082
+ ) -> None: ...
2083
+ @overload
2084
+ def print(
2085
+ *values: object, sep: str | None = " ", end: str | None = "\n", file: _SupportsWriteAndFlush[str] | None = None, flush: bool
2086
+ ) -> None: ...
2087
+
2088
+ _E_contra = TypeVar("_E_contra", contravariant=True)
2089
+ _M_contra = TypeVar("_M_contra", contravariant=True)
2090
+
2091
+ @type_check_only
2092
+ class _SupportsPow2(Protocol[_E_contra, _T_co]):
2093
+ def __pow__(self, other: _E_contra, /) -> _T_co: ...
2094
+
2095
+ @type_check_only
2096
+ class _SupportsPow3NoneOnly(Protocol[_E_contra, _T_co]):
2097
+ def __pow__(self, other: _E_contra, modulo: None = None, /) -> _T_co: ...
2098
+
2099
+ @type_check_only
2100
+ class _SupportsPow3(Protocol[_E_contra, _M_contra, _T_co]):
2101
+ def __pow__(self, other: _E_contra, modulo: _M_contra, /) -> _T_co: ...
2102
+
2103
+ _SupportsSomeKindOfPow = ( # noqa: Y026 # TODO: Use TypeAlias once mypy bugs are fixed
2104
+ _SupportsPow2[Any, Any] | _SupportsPow3NoneOnly[Any, Any] | _SupportsPow3[Any, Any, Any]
2105
+ )
2106
+
2107
+ # TODO: `pow(int, int, Literal[0])` fails at runtime,
2108
+ # but adding a `NoReturn` overload isn't a good solution for expressing that (see #8566).
2109
+ @overload
2110
+ def pow(base: int, exp: int, mod: int) -> int: ...
2111
+ @overload
2112
+ def pow(base: int, exp: Literal[0], mod: None = None) -> Literal[1]: ...
2113
+ @overload
2114
+ def pow(base: int, exp: _PositiveInteger, mod: None = None) -> int: ...
2115
+ @overload
2116
+ def pow(base: int, exp: _NegativeInteger, mod: None = None) -> float: ...
2117
+
2118
+ # int base & positive-int exp -> int; int base & negative-int exp -> float
2119
+ # return type must be Any as `int | float` causes too many false-positive errors
2120
+ @overload
2121
+ def pow(base: int, exp: int, mod: None = None) -> Any: ...
2122
+ @overload
2123
+ def pow(base: _PositiveInteger, exp: float, mod: None = None) -> float: ...
2124
+ @overload
2125
+ def pow(base: _NegativeInteger, exp: float, mod: None = None) -> complex: ...
2126
+ @overload
2127
+ def pow(base: float, exp: int, mod: None = None) -> float: ...
2128
+
2129
+ # float base & float exp could return float or complex
2130
+ # return type must be Any (same as complex base, complex exp),
2131
+ # as `float | complex` causes too many false-positive errors
2132
+ @overload
2133
+ def pow(base: float, exp: complex | _SupportsSomeKindOfPow, mod: None = None) -> Any: ...
2134
+ @overload
2135
+ def pow(base: complex, exp: complex | _SupportsSomeKindOfPow, mod: None = None) -> complex: ...
2136
+ @overload
2137
+ def pow(base: _SupportsPow2[_E_contra, _T_co], exp: _E_contra, mod: None = None) -> _T_co: ... # type: ignore[overload-overlap]
2138
+ @overload
2139
+ def pow(base: _SupportsPow3NoneOnly[_E_contra, _T_co], exp: _E_contra, mod: None = None) -> _T_co: ... # type: ignore[overload-overlap]
2140
+ @overload
2141
+ def pow(base: _SupportsPow3[_E_contra, _M_contra, _T_co], exp: _E_contra, mod: _M_contra) -> _T_co: ...
2142
+ @overload
2143
+ def pow(base: _SupportsSomeKindOfPow, exp: float, mod: None = None) -> Any: ...
2144
+ @overload
2145
+ def pow(base: _SupportsSomeKindOfPow, exp: complex, mod: None = None) -> complex: ...
2146
+
2147
+ quit: _sitebuiltins.Quitter
2148
+
2149
+ @disjoint_base
2150
+ class reversed(Generic[_T]):
2151
+ @overload
2152
+ def __new__(cls, sequence: Reversible[_T], /) -> Iterator[_T]: ... # type: ignore[misc]
2153
+ @overload
2154
+ def __new__(cls, sequence: SupportsLenAndGetItem[_T], /) -> Iterator[_T]: ... # type: ignore[misc]
2155
+
2156
+ def __iter__(self) -> Self: ...
2157
+ def __next__(self) -> _T: ...
2158
+ def __length_hint__(self) -> int: ...
2159
+
2160
+ def repr(obj: object, /) -> str: ...
2161
+
2162
+ # See https://github.com/python/typeshed/pull/9141
2163
+ # and https://github.com/python/typeshed/pull/9151
2164
+ # on why we don't use `SupportsRound` from `typing.pyi`
2165
+
2166
+ @type_check_only
2167
+ class _SupportsRound1(Protocol[_T_co]):
2168
+ def __round__(self) -> _T_co: ...
2169
+
2170
+ @type_check_only
2171
+ class _SupportsRound2(Protocol[_T_co]):
2172
+ def __round__(self, ndigits: int, /) -> _T_co: ...
2173
+
2174
+ @overload
2175
+ def round(number: _SupportsRound1[_T], ndigits: None = None) -> _T: ...
2176
+ @overload
2177
+ def round(number: _SupportsRound2[_T], ndigits: SupportsIndex) -> _T: ...
2178
+
2179
+ # See https://github.com/python/typeshed/pull/6292#discussion_r748875189
2180
+ # for why arg 3 of `setattr` should be annotated with `Any` and not `object`
2181
+ def setattr(obj: object, name: str, value: Any, /) -> None: ...
2182
+
2183
+ if sys.version_info >= (3, 15):
2184
+ @final
2185
+ class sentinel:
2186
+ __name__: str
2187
+ __module__: str
2188
+ def __new__(cls, name: str, /, *, repr: str | None = None) -> Self: ...
2189
+ def __copy__(self, /) -> Self: ...
2190
+ def __deepcopy__(self, memo: Any, /) -> Self: ...
2191
+ def __or__(self, other: Any, /) -> Any: ...
2192
+ def __ror__(self, other: Any, /) -> Any: ...
2193
+
2194
+ @overload
2195
+ def sorted(
2196
+ iterable: Iterable[SupportsRichComparisonT], /, *, key: None = None, reverse: bool = False
2197
+ ) -> list[SupportsRichComparisonT]: ...
2198
+ @overload
2199
+ def sorted(iterable: Iterable[_T], /, *, key: Callable[[_T], SupportsRichComparison], reverse: bool = False) -> list[_T]: ...
2200
+
2201
+ _AddableT1 = TypeVar("_AddableT1", bound=SupportsAdd[Any, Any])
2202
+ _AddableT2 = TypeVar("_AddableT2", bound=SupportsAdd[Any, Any])
2203
+
2204
+ @type_check_only
2205
+ class _SupportsSumWithNoDefaultGiven(SupportsAdd[Any, Any], SupportsRAdd[int, Any], Protocol): ...
2206
+
2207
+ _SupportsSumNoDefaultT = TypeVar("_SupportsSumNoDefaultT", bound=_SupportsSumWithNoDefaultGiven)
2208
+
2209
+ # In general, the return type of `x + x` is *not* guaranteed to be the same type as x.
2210
+ # However, we can't express that in the stub for `sum()`
2211
+ # without creating many false-positive errors (see #7578).
2212
+ # Instead, we special-case the most common examples of this: bool and literal integers.
2213
+ @overload
2214
+ def sum(iterable: Iterable[bool | _LiteralInteger], /, start: int = 0) -> int: ...
2215
+ @overload
2216
+ def sum(iterable: Iterable[_SupportsSumNoDefaultT], /) -> _SupportsSumNoDefaultT | Literal[0]: ...
2217
+ @overload
2218
+ def sum(iterable: Iterable[_AddableT1], /, start: _AddableT2) -> _AddableT1 | _AddableT2: ...
2219
+
2220
+ # The argument to `vars()` has to have a `__dict__` attribute, so the second overload can't be annotated with `object`
2221
+ # (A "SupportsDunderDict" protocol doesn't work)
2222
+ @overload
2223
+ def vars(object: type, /) -> types.MappingProxyType[str, Any]: ...
2224
+ @overload
2225
+ def vars(object: Any = ..., /) -> dict[str, Any]: ...
2226
+
2227
+ @disjoint_base
2228
+ class zip(Generic[_T_co]):
2229
+ @overload
2230
+ def __new__(cls, *, strict: bool = False) -> zip[Any]: ...
2231
+ @overload
2232
+ def __new__(cls, iter1: Iterable[_T1], /, *, strict: bool = False) -> zip[tuple[_T1]]: ...
2233
+ @overload
2234
+ def __new__(cls, iter1: Iterable[_T1], iter2: Iterable[_T2], /, *, strict: bool = False) -> zip[tuple[_T1, _T2]]: ...
2235
+ @overload
2236
+ def __new__(
2237
+ cls, iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], /, *, strict: bool = False
2238
+ ) -> zip[tuple[_T1, _T2, _T3]]: ...
2239
+ @overload
2240
+ def __new__(
2241
+ cls, iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], iter4: Iterable[_T4], /, *, strict: bool = False
2242
+ ) -> zip[tuple[_T1, _T2, _T3, _T4]]: ...
2243
+ @overload
2244
+ def __new__(
2245
+ cls,
2246
+ iter1: Iterable[_T1],
2247
+ iter2: Iterable[_T2],
2248
+ iter3: Iterable[_T3],
2249
+ iter4: Iterable[_T4],
2250
+ iter5: Iterable[_T5],
2251
+ /,
2252
+ *,
2253
+ strict: bool = False,
2254
+ ) -> zip[tuple[_T1, _T2, _T3, _T4, _T5]]: ...
2255
+ @overload
2256
+ def __new__(
2257
+ cls,
2258
+ iter1: Iterable[Any],
2259
+ iter2: Iterable[Any],
2260
+ iter3: Iterable[Any],
2261
+ iter4: Iterable[Any],
2262
+ iter5: Iterable[Any],
2263
+ iter6: Iterable[Any],
2264
+ /,
2265
+ *iterables: Iterable[Any],
2266
+ strict: bool = False,
2267
+ ) -> zip[tuple[Any, ...]]: ...
2268
+
2269
+ def __iter__(self) -> Self: ...
2270
+ def __next__(self) -> _T_co: ...
2271
+
2272
+ # Signature of `builtins.__import__` should be kept identical to `importlib.__import__`
2273
+ # Return type of `__import__` should be kept the same as return type of `importlib.import_module`
2274
+ def __import__(
2275
+ name: str,
2276
+ globals: Mapping[str, object] | None = None,
2277
+ locals: Mapping[str, object] | None = None,
2278
+ fromlist: Sequence[str] | None = (),
2279
+ level: int = 0,
2280
+ ) -> types.ModuleType: ...
2281
+
2282
+ if sys.version_info >= (3, 15):
2283
+ def __lazy_import__(
2284
+ name: str,
2285
+ globals: Mapping[str, object] | None = None,
2286
+ locals: Mapping[str, object] | None = None,
2287
+ fromlist: Sequence[str] | None = (),
2288
+ level: int = 0,
2289
+ ) -> Any: ...
2290
+
2291
+ def __build_class__(func: Callable[[], CellType | Any], name: str, /, *bases: Any, metaclass: Any = ..., **kwds: Any) -> Any: ...
2292
+
2293
+ # Backwards compatibility hack for folks who relied on the ellipsis type
2294
+ # existing in typeshed in Python 3.9 and earlier.
2295
+ ellipsis = EllipsisType
2296
+
2297
+ Ellipsis: EllipsisType
2298
+ NotImplemented: NotImplementedType
2299
+
2300
+ @disjoint_base
2301
+ class BaseException:
2302
+ """Common base class for all exceptions"""
2303
+ args: tuple[Any, ...]
2304
+ __cause__: BaseException | None
2305
+ __context__: BaseException | None
2306
+ __suppress_context__: bool
2307
+ __traceback__: TracebackType | None
2308
+ def __init__(self, *args: object) -> None: ...
2309
+ def __new__(cls, *args: Any, **kwds: Any) -> Self: ...
2310
+ def __setstate__(self, state: dict[str, Any] | None, /) -> None: ...
2311
+ def with_traceback(self, tb: TracebackType | None, /) -> Self: ...
2312
+ # Necessary for security-focused static analyzers (e.g, pysa)
2313
+ # See https://github.com/python/typeshed/pull/14900
2314
+ def __str__(self) -> str: ... # noqa: Y029
2315
+ def __repr__(self) -> str: ... # noqa: Y029
2316
+ if sys.version_info >= (3, 11):
2317
+ # only present after add_note() is called
2318
+ __notes__: list[str]
2319
+ def add_note(self, note: str, /) -> None: ...
2320
+
2321
+ class GeneratorExit(BaseException):
2322
+ """Request that a generator exit."""
2323
+
2324
+ class KeyboardInterrupt(BaseException):
2325
+ """Program interrupted by user."""
2326
+
2327
+ @disjoint_base
2328
+ class SystemExit(BaseException):
2329
+ """Request to exit from the interpreter."""
2330
+ code: sys._ExitCode
2331
+
2332
+ class Exception(BaseException):
2333
+ """Common base class for all non-exit exceptions."""
2334
+
2335
+ @disjoint_base
2336
+ class StopIteration(Exception):
2337
+ """Signal the end from iterator.__next__()."""
2338
+ value: Any
2339
+
2340
+ @disjoint_base
2341
+ class OSError(Exception):
2342
+ """Base class for I/O related errors."""
2343
+ errno: int | None
2344
+ strerror: str | None
2345
+ # filename, filename2 are actually str | bytes | None
2346
+ filename: Any
2347
+ filename2: Any
2348
+ if sys.platform == "win32":
2349
+ winerror: int
2350
+
2351
+ EnvironmentError = OSError
2352
+ IOError = OSError
2353
+ if sys.platform == "win32":
2354
+ WindowsError = OSError
2355
+
2356
+ class ArithmeticError(Exception):
2357
+ """Base class for arithmetic errors."""
2358
+
2359
+ class AssertionError(Exception):
2360
+ """Assertion failed."""
2361
+
2362
+ @disjoint_base
2363
+ class AttributeError(Exception):
2364
+ """Attribute not found."""
2365
+ def __init__(self, *args: object, name: str | None = None, obj: object = None) -> None: ...
2366
+ name: str | None
2367
+ obj: object
2368
+
2369
+ class BufferError(Exception):
2370
+ """Buffer error."""
2371
+
2372
+ class EOFError(Exception):
2373
+ """Read beyond end of file."""
2374
+
2375
+ @disjoint_base
2376
+ class ImportError(Exception):
2377
+ """Import can't find module, or can't find name in module."""
2378
+ def __init__(self, *args: object, name: str | None = None, path: str | None = None) -> None: ...
2379
+ name: str | None
2380
+ path: str | None
2381
+ msg: str # undocumented
2382
+ if sys.version_info >= (3, 12):
2383
+ name_from: str | None # undocumented
2384
+
2385
+ if sys.version_info >= (3, 15):
2386
+ class ImportCycleError(ImportError):
2387
+ """Import produces a cycle."""
2388
+
2389
+ class LookupError(Exception):
2390
+ """Base class for lookup errors."""
2391
+
2392
+ class MemoryError(Exception):
2393
+ """Out of memory."""
2394
+
2395
+ @disjoint_base
2396
+ class NameError(Exception):
2397
+ """Name not found globally."""
2398
+ def __init__(self, *args: object, name: str | None = None) -> None: ...
2399
+ name: str | None
2400
+
2401
+ class ReferenceError(Exception):
2402
+ """Weak ref proxy used after referent went away."""
2403
+
2404
+ class RuntimeError(Exception):
2405
+ """Unspecified run-time error."""
2406
+
2407
+ class StopAsyncIteration(Exception):
2408
+ """Signal the end from iterator.__anext__()."""
2409
+
2410
+ @disjoint_base
2411
+ class SyntaxError(Exception):
2412
+ """Invalid syntax."""
2413
+ msg: str
2414
+ filename: str | None
2415
+ lineno: int | None
2416
+ offset: int | None
2417
+ text: str | None
2418
+ # Errors are displayed differently if this attribute exists on the exception.
2419
+ # The value is always None.
2420
+ print_file_and_line: None
2421
+ end_lineno: int | None
2422
+ end_offset: int | None
2423
+
2424
+ @overload
2425
+ def __init__(self) -> None: ...
2426
+ @overload
2427
+ def __init__(self, msg: object, /) -> None: ...
2428
+ # Second argument is the tuple (filename, lineno, offset, text)
2429
+ @overload
2430
+ def __init__(self, msg: str, info: tuple[str | None, int | None, int | None, str | None], /) -> None: ...
2431
+ # end_lineno and end_offset must both be provided if one is.
2432
+ @overload
2433
+ def __init__(
2434
+ self, msg: str, info: tuple[str | None, int | None, int | None, str | None, int | None, int | None], /
2435
+ ) -> None: ...
2436
+ # If you provide more than two arguments, it still creates the SyntaxError, but
2437
+ # the arguments from the info tuple are not parsed. This form is omitted.
2438
+
2439
+ class SystemError(Exception):
2440
+ """Internal error in the Python interpreter.
2441
+
2442
+ Please report this to the Python maintainer, along with the traceback,
2443
+ the Python version, and the hardware/OS platform and version.
2444
+ """
2445
+
2446
+ class TypeError(Exception):
2447
+ """Inappropriate argument type."""
2448
+
2449
+ class ValueError(Exception):
2450
+ """Inappropriate argument value (of correct type)."""
2451
+
2452
+ class FloatingPointError(ArithmeticError):
2453
+ """Floating-point operation failed."""
2454
+
2455
+ class OverflowError(ArithmeticError):
2456
+ """Result too large to be represented."""
2457
+
2458
+ class ZeroDivisionError(ArithmeticError):
2459
+ """Second argument to a division or modulo operation was zero."""
2460
+
2461
+ class ModuleNotFoundError(ImportError):
2462
+ """Module not found."""
2463
+
2464
+ class IndexError(LookupError):
2465
+ """Sequence index out of range."""
2466
+
2467
+ class KeyError(LookupError):
2468
+ """Mapping key not found."""
2469
+
2470
+ class UnboundLocalError(NameError):
2471
+ """Local name referenced but not bound to a value."""
2472
+
2473
+ class BlockingIOError(OSError):
2474
+ """I/O operation would block."""
2475
+ characters_written: int
2476
+
2477
+ class ChildProcessError(OSError):
2478
+ """Child process error."""
2479
+
2480
+ class ConnectionError(OSError):
2481
+ """Connection error."""
2482
+
2483
+ class BrokenPipeError(ConnectionError):
2484
+ """Broken pipe."""
2485
+
2486
+ class ConnectionAbortedError(ConnectionError):
2487
+ """Connection aborted."""
2488
+
2489
+ class ConnectionRefusedError(ConnectionError):
2490
+ """Connection refused."""
2491
+
2492
+ class ConnectionResetError(ConnectionError):
2493
+ """Connection reset."""
2494
+
2495
+ class FileExistsError(OSError):
2496
+ """File already exists."""
2497
+
2498
+ class FileNotFoundError(OSError):
2499
+ """File not found."""
2500
+
2501
+ class InterruptedError(OSError):
2502
+ """Interrupted by signal."""
2503
+
2504
+ class IsADirectoryError(OSError):
2505
+ """Operation doesn't work on directories."""
2506
+
2507
+ class NotADirectoryError(OSError):
2508
+ """Operation only works on directories."""
2509
+
2510
+ class PermissionError(OSError):
2511
+ """Not enough permissions."""
2512
+
2513
+ class ProcessLookupError(OSError):
2514
+ """Process not found."""
2515
+
2516
+ class TimeoutError(OSError):
2517
+ """Timeout expired."""
2518
+
2519
+ class NotImplementedError(RuntimeError):
2520
+ """Method or function hasn't been implemented yet."""
2521
+
2522
+ class RecursionError(RuntimeError):
2523
+ """Recursion limit exceeded."""
2524
+
2525
+ class IndentationError(SyntaxError):
2526
+ """Improper indentation."""
2527
+
2528
+ class TabError(IndentationError):
2529
+ """Improper mixture of spaces and tabs."""
2530
+
2531
+ class UnicodeError(ValueError):
2532
+ """Unicode related error."""
2533
+
2534
+ @disjoint_base
2535
+ class UnicodeDecodeError(UnicodeError):
2536
+ """Unicode decoding error."""
2537
+ encoding: str
2538
+ object: bytes
2539
+ start: int
2540
+ end: int
2541
+ reason: str
2542
+ def __init__(self, encoding: str, object: ReadableBuffer, start: int, end: int, reason: str, /) -> None: ...
2543
+
2544
+ @disjoint_base
2545
+ class UnicodeEncodeError(UnicodeError):
2546
+ """Unicode encoding error."""
2547
+ encoding: str
2548
+ object: str
2549
+ start: int
2550
+ end: int
2551
+ reason: str
2552
+ def __init__(self, encoding: str, object: str, start: int, end: int, reason: str, /) -> None: ...
2553
+
2554
+ @disjoint_base
2555
+ class UnicodeTranslateError(UnicodeError):
2556
+ """Unicode translation error."""
2557
+ encoding: None
2558
+ object: str
2559
+ start: int
2560
+ end: int
2561
+ reason: str
2562
+ def __init__(self, object: str, start: int, end: int, reason: str, /) -> None: ...
2563
+
2564
+ class Warning(Exception):
2565
+ """Base class for warning categories."""
2566
+
2567
+ class UserWarning(Warning):
2568
+ """Base class for warnings generated by user code."""
2569
+
2570
+ class DeprecationWarning(Warning):
2571
+ """Base class for warnings about deprecated features."""
2572
+
2573
+ class SyntaxWarning(Warning):
2574
+ """Base class for warnings about dubious syntax."""
2575
+
2576
+ class RuntimeWarning(Warning):
2577
+ """Base class for warnings about dubious runtime behavior."""
2578
+
2579
+ class FutureWarning(Warning):
2580
+ """Base class for warnings about constructs that will change semantically in the future."""
2581
+
2582
+ class PendingDeprecationWarning(Warning):
2583
+ """Base class for warnings about features which will be deprecated in the future."""
2584
+
2585
+ class ImportWarning(Warning):
2586
+ """Base class for warnings about probable mistakes in module imports"""
2587
+
2588
+ class UnicodeWarning(Warning):
2589
+ """Base class for warnings about Unicode related problems, mostly related to conversion problems."""
2590
+
2591
+ class BytesWarning(Warning):
2592
+ """Base class for warnings about bytes and buffer related problems, mostly related to conversion from str or comparing to str."""
2593
+
2594
+ class ResourceWarning(Warning):
2595
+ """Base class for warnings about resource usage."""
2596
+
2597
+ class EncodingWarning(Warning):
2598
+ """Base class for warnings about encodings."""
2599
+
2600
+ if sys.version_info >= (3, 11):
2601
+ _BaseExceptionT_co = TypeVar("_BaseExceptionT_co", bound=BaseException, covariant=True, default=BaseException)
2602
+ _BaseExceptionT = TypeVar("_BaseExceptionT", bound=BaseException)
2603
+ _ExceptionT_co = TypeVar("_ExceptionT_co", bound=Exception, covariant=True, default=Exception)
2604
+ _ExceptionT = TypeVar("_ExceptionT", bound=Exception)
2605
+
2606
+ # See `check_exception_group.py` for use-cases and comments.
2607
+ @disjoint_base
2608
+ class BaseExceptionGroup(BaseException, Generic[_BaseExceptionT_co]):
2609
+ """A combination of multiple unrelated exceptions."""
2610
+ def __new__(cls, message: str, exceptions: Sequence[_BaseExceptionT_co], /) -> Self: ...
2611
+ def __init__(self, message: str, exceptions: Sequence[_BaseExceptionT_co], /) -> None: ...
2612
+ @property
2613
+ def message(self) -> str: ...
2614
+ @property
2615
+ def exceptions(self) -> tuple[_BaseExceptionT_co | BaseExceptionGroup[_BaseExceptionT_co], ...]: ...
2616
+
2617
+ @overload
2618
+ def subgroup(
2619
+ self, matcher_value: type[_ExceptionT] | tuple[type[_ExceptionT], ...], /
2620
+ ) -> ExceptionGroup[_ExceptionT] | None: ...
2621
+ @overload
2622
+ def subgroup(
2623
+ self, matcher_value: type[_BaseExceptionT] | tuple[type[_BaseExceptionT], ...], /
2624
+ ) -> BaseExceptionGroup[_BaseExceptionT] | None: ...
2625
+ @overload
2626
+ def subgroup(
2627
+ self, matcher_value: Callable[[_BaseExceptionT_co | Self], bool], /
2628
+ ) -> BaseExceptionGroup[_BaseExceptionT_co] | None: ...
2629
+
2630
+ @overload
2631
+ def split(
2632
+ self, matcher_value: type[_ExceptionT] | tuple[type[_ExceptionT], ...], /
2633
+ ) -> tuple[ExceptionGroup[_ExceptionT] | None, BaseExceptionGroup[_BaseExceptionT_co] | None]: ...
2634
+ @overload
2635
+ def split(
2636
+ self, matcher_value: type[_BaseExceptionT] | tuple[type[_BaseExceptionT], ...], /
2637
+ ) -> tuple[BaseExceptionGroup[_BaseExceptionT] | None, BaseExceptionGroup[_BaseExceptionT_co] | None]: ...
2638
+ @overload
2639
+ def split(
2640
+ self, matcher_value: Callable[[_BaseExceptionT_co | Self], bool], /
2641
+ ) -> tuple[BaseExceptionGroup[_BaseExceptionT_co] | None, BaseExceptionGroup[_BaseExceptionT_co] | None]: ...
2642
+
2643
+ # In reality it is `NonEmptySequence`:
2644
+ @overload
2645
+ def derive(self, excs: Sequence[_ExceptionT], /) -> ExceptionGroup[_ExceptionT]: ...
2646
+ @overload
2647
+ def derive(self, excs: Sequence[_BaseExceptionT], /) -> BaseExceptionGroup[_BaseExceptionT]: ...
2648
+
2649
+ def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
2650
+
2651
+ class ExceptionGroup(BaseExceptionGroup[_ExceptionT_co], Exception):
2652
+ """A combination of multiple unrelated exceptions."""
2653
+ def __new__(cls, message: str, exceptions: Sequence[_ExceptionT_co], /) -> Self: ...
2654
+ def __init__(self, message: str, exceptions: Sequence[_ExceptionT_co], /) -> None: ...
2655
+ @property
2656
+ def exceptions(self) -> tuple[_ExceptionT_co | ExceptionGroup[_ExceptionT_co], ...]: ...
2657
+
2658
+ # We accept a narrower type, but that's OK.
2659
+ @overload # type: ignore[override]
2660
+ def subgroup(
2661
+ self, matcher_value: type[_ExceptionT] | tuple[type[_ExceptionT], ...], /
2662
+ ) -> ExceptionGroup[_ExceptionT] | None: ...
2663
+ @overload
2664
+ def subgroup(
2665
+ self, matcher_value: Callable[[_ExceptionT_co | Self], bool], /
2666
+ ) -> ExceptionGroup[_ExceptionT_co] | None: ...
2667
+
2668
+ @overload # type: ignore[override]
2669
+ def split(
2670
+ self, matcher_value: type[_ExceptionT] | tuple[type[_ExceptionT], ...], /
2671
+ ) -> tuple[ExceptionGroup[_ExceptionT] | None, ExceptionGroup[_ExceptionT_co] | None]: ...
2672
+ @overload
2673
+ def split(
2674
+ self, matcher_value: Callable[[_ExceptionT_co | Self], bool], /
2675
+ ) -> tuple[ExceptionGroup[_ExceptionT_co] | None, ExceptionGroup[_ExceptionT_co] | None]: ...
2676
+
2677
+ if sys.version_info >= (3, 13):
2678
+ class PythonFinalizationError(RuntimeError):
2679
+ """Operation blocked during Python finalization."""