@ai-ecoverse/wasix-python 3.14.2-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2512) hide show
  1. package/LICENSE +277 -0
  2. package/README.md +22 -0
  3. package/bin/python.wasm +0 -0
  4. package/include/python3.14/Python.h +155 -0
  5. package/include/python3.14/README.rst +14 -0
  6. package/include/python3.14/abstract.h +915 -0
  7. package/include/python3.14/audit.h +30 -0
  8. package/include/python3.14/bltinmodule.h +14 -0
  9. package/include/python3.14/boolobject.h +54 -0
  10. package/include/python3.14/bytearrayobject.h +44 -0
  11. package/include/python3.14/bytesobject.h +66 -0
  12. package/include/python3.14/ceval.h +145 -0
  13. package/include/python3.14/codecs.h +176 -0
  14. package/include/python3.14/compile.h +22 -0
  15. package/include/python3.14/complexobject.h +30 -0
  16. package/include/python3.14/cpython/abstract.h +104 -0
  17. package/include/python3.14/cpython/audit.h +8 -0
  18. package/include/python3.14/cpython/bytearrayobject.h +38 -0
  19. package/include/python3.14/cpython/bytesobject.h +42 -0
  20. package/include/python3.14/cpython/cellobject.h +50 -0
  21. package/include/python3.14/cpython/ceval.h +43 -0
  22. package/include/python3.14/cpython/classobject.h +71 -0
  23. package/include/python3.14/cpython/code.h +340 -0
  24. package/include/python3.14/cpython/compile.h +50 -0
  25. package/include/python3.14/cpython/complexobject.h +33 -0
  26. package/include/python3.14/cpython/context.h +107 -0
  27. package/include/python3.14/cpython/critical_section.h +154 -0
  28. package/include/python3.14/cpython/descrobject.h +62 -0
  29. package/include/python3.14/cpython/dictobject.h +105 -0
  30. package/include/python3.14/cpython/fileobject.h +16 -0
  31. package/include/python3.14/cpython/fileutils.h +16 -0
  32. package/include/python3.14/cpython/floatobject.h +27 -0
  33. package/include/python3.14/cpython/frameobject.h +35 -0
  34. package/include/python3.14/cpython/funcobject.h +185 -0
  35. package/include/python3.14/cpython/genobject.h +56 -0
  36. package/include/python3.14/cpython/import.h +30 -0
  37. package/include/python3.14/cpython/initconfig.h +334 -0
  38. package/include/python3.14/cpython/listobject.h +53 -0
  39. package/include/python3.14/cpython/lock.h +74 -0
  40. package/include/python3.14/cpython/longintrepr.h +184 -0
  41. package/include/python3.14/cpython/longobject.h +89 -0
  42. package/include/python3.14/cpython/memoryobject.h +50 -0
  43. package/include/python3.14/cpython/methodobject.h +66 -0
  44. package/include/python3.14/cpython/modsupport.h +26 -0
  45. package/include/python3.14/cpython/monitoring.h +269 -0
  46. package/include/python3.14/cpython/object.h +493 -0
  47. package/include/python3.14/cpython/objimpl.h +104 -0
  48. package/include/python3.14/cpython/odictobject.h +43 -0
  49. package/include/python3.14/cpython/picklebufobject.h +31 -0
  50. package/include/python3.14/cpython/pthread_stubs.h +105 -0
  51. package/include/python3.14/cpython/pyatomic.h +614 -0
  52. package/include/python3.14/cpython/pyatomic_gcc.h +615 -0
  53. package/include/python3.14/cpython/pyatomic_msc.h +1197 -0
  54. package/include/python3.14/cpython/pyatomic_std.h +1112 -0
  55. package/include/python3.14/cpython/pyctype.h +39 -0
  56. package/include/python3.14/cpython/pydebug.h +38 -0
  57. package/include/python3.14/cpython/pyerrors.h +132 -0
  58. package/include/python3.14/cpython/pyfpe.h +15 -0
  59. package/include/python3.14/cpython/pyframe.h +45 -0
  60. package/include/python3.14/cpython/pyhash.h +54 -0
  61. package/include/python3.14/cpython/pylifecycle.h +89 -0
  62. package/include/python3.14/cpython/pymem.h +84 -0
  63. package/include/python3.14/cpython/pystate.h +275 -0
  64. package/include/python3.14/cpython/pystats.h +194 -0
  65. package/include/python3.14/cpython/pythonrun.h +96 -0
  66. package/include/python3.14/cpython/pythread.h +43 -0
  67. package/include/python3.14/cpython/pytime.h +27 -0
  68. package/include/python3.14/cpython/setobject.h +71 -0
  69. package/include/python3.14/cpython/traceback.h +13 -0
  70. package/include/python3.14/cpython/tracemalloc.h +32 -0
  71. package/include/python3.14/cpython/tupleobject.h +40 -0
  72. package/include/python3.14/cpython/unicodeobject.h +773 -0
  73. package/include/python3.14/cpython/warnings.h +20 -0
  74. package/include/python3.14/cpython/weakrefobject.h +66 -0
  75. package/include/python3.14/critical_section.h +16 -0
  76. package/include/python3.14/datetime.h +267 -0
  77. package/include/python3.14/descrobject.h +100 -0
  78. package/include/python3.14/dictobject.h +108 -0
  79. package/include/python3.14/dynamic_annotations.h +499 -0
  80. package/include/python3.14/enumobject.h +17 -0
  81. package/include/python3.14/errcode.h +45 -0
  82. package/include/python3.14/exports.h +105 -0
  83. package/include/python3.14/fileobject.h +41 -0
  84. package/include/python3.14/fileutils.h +62 -0
  85. package/include/python3.14/floatobject.h +54 -0
  86. package/include/python3.14/frameobject.h +20 -0
  87. package/include/python3.14/genericaliasobject.h +14 -0
  88. package/include/python3.14/import.h +103 -0
  89. package/include/python3.14/internal/mimalloc/mimalloc/atomic.h +392 -0
  90. package/include/python3.14/internal/mimalloc/mimalloc/internal.h +969 -0
  91. package/include/python3.14/internal/mimalloc/mimalloc/prim.h +329 -0
  92. package/include/python3.14/internal/mimalloc/mimalloc/track.h +147 -0
  93. package/include/python3.14/internal/mimalloc/mimalloc/types.h +721 -0
  94. package/include/python3.14/internal/mimalloc/mimalloc.h +565 -0
  95. package/include/python3.14/internal/pycore_abstract.h +61 -0
  96. package/include/python3.14/internal/pycore_asdl.h +112 -0
  97. package/include/python3.14/internal/pycore_ast.h +945 -0
  98. package/include/python3.14/internal/pycore_ast_state.h +271 -0
  99. package/include/python3.14/internal/pycore_atexit.h +31 -0
  100. package/include/python3.14/internal/pycore_audit.h +35 -0
  101. package/include/python3.14/internal/pycore_backoff.h +133 -0
  102. package/include/python3.14/internal/pycore_bitutils.h +186 -0
  103. package/include/python3.14/internal/pycore_blocks_output_buffer.h +321 -0
  104. package/include/python3.14/internal/pycore_brc.h +73 -0
  105. package/include/python3.14/internal/pycore_bytes_methods.h +82 -0
  106. package/include/python3.14/internal/pycore_bytesobject.h +149 -0
  107. package/include/python3.14/internal/pycore_c_array.h +39 -0
  108. package/include/python3.14/internal/pycore_call.h +206 -0
  109. package/include/python3.14/internal/pycore_capsule.h +17 -0
  110. package/include/python3.14/internal/pycore_cell.h +75 -0
  111. package/include/python3.14/internal/pycore_ceval.h +390 -0
  112. package/include/python3.14/internal/pycore_ceval_state.h +48 -0
  113. package/include/python3.14/internal/pycore_code.h +671 -0
  114. package/include/python3.14/internal/pycore_codecs.h +76 -0
  115. package/include/python3.14/internal/pycore_compile.h +230 -0
  116. package/include/python3.14/internal/pycore_complexobject.h +34 -0
  117. package/include/python3.14/internal/pycore_condvar.h +93 -0
  118. package/include/python3.14/internal/pycore_context.h +59 -0
  119. package/include/python3.14/internal/pycore_critical_section.h +237 -0
  120. package/include/python3.14/internal/pycore_crossinterp.h +406 -0
  121. package/include/python3.14/internal/pycore_crossinterp_data_registry.h +41 -0
  122. package/include/python3.14/internal/pycore_debug_offsets.h +379 -0
  123. package/include/python3.14/internal/pycore_descrobject.h +28 -0
  124. package/include/python3.14/internal/pycore_dict.h +410 -0
  125. package/include/python3.14/internal/pycore_dict_state.h +28 -0
  126. package/include/python3.14/internal/pycore_dtoa.h +40 -0
  127. package/include/python3.14/internal/pycore_emscripten_signal.h +30 -0
  128. package/include/python3.14/internal/pycore_emscripten_trampoline.h +70 -0
  129. package/include/python3.14/internal/pycore_exceptions.h +40 -0
  130. package/include/python3.14/internal/pycore_faulthandler.h +100 -0
  131. package/include/python3.14/internal/pycore_fileutils.h +320 -0
  132. package/include/python3.14/internal/pycore_fileutils_windows.h +98 -0
  133. package/include/python3.14/internal/pycore_floatobject.h +49 -0
  134. package/include/python3.14/internal/pycore_flowgraph.h +47 -0
  135. package/include/python3.14/internal/pycore_format.h +27 -0
  136. package/include/python3.14/internal/pycore_frame.h +61 -0
  137. package/include/python3.14/internal/pycore_freelist.h +111 -0
  138. package/include/python3.14/internal/pycore_freelist_state.h +70 -0
  139. package/include/python3.14/internal/pycore_function.h +53 -0
  140. package/include/python3.14/internal/pycore_gc.h +378 -0
  141. package/include/python3.14/internal/pycore_genobject.h +43 -0
  142. package/include/python3.14/internal/pycore_getopt.h +22 -0
  143. package/include/python3.14/internal/pycore_gil.h +66 -0
  144. package/include/python3.14/internal/pycore_global_objects.h +34 -0
  145. package/include/python3.14/internal/pycore_global_objects_fini_generated.h +1592 -0
  146. package/include/python3.14/internal/pycore_global_strings.h +854 -0
  147. package/include/python3.14/internal/pycore_hamt.h +113 -0
  148. package/include/python3.14/internal/pycore_hashtable.h +150 -0
  149. package/include/python3.14/internal/pycore_import.h +141 -0
  150. package/include/python3.14/internal/pycore_importdl.h +139 -0
  151. package/include/python3.14/internal/pycore_index_pool.h +36 -0
  152. package/include/python3.14/internal/pycore_initconfig.h +197 -0
  153. package/include/python3.14/internal/pycore_instruction_sequence.h +83 -0
  154. package/include/python3.14/internal/pycore_instruments.h +127 -0
  155. package/include/python3.14/internal/pycore_interp.h +109 -0
  156. package/include/python3.14/internal/pycore_interp_structs.h +977 -0
  157. package/include/python3.14/internal/pycore_interpframe.h +401 -0
  158. package/include/python3.14/internal/pycore_interpframe_structs.h +95 -0
  159. package/include/python3.14/internal/pycore_interpolation.h +26 -0
  160. package/include/python3.14/internal/pycore_intrinsics.h +51 -0
  161. package/include/python3.14/internal/pycore_jit.h +29 -0
  162. package/include/python3.14/internal/pycore_list.h +81 -0
  163. package/include/python3.14/internal/pycore_llist.h +106 -0
  164. package/include/python3.14/internal/pycore_lock.h +236 -0
  165. package/include/python3.14/internal/pycore_long.h +319 -0
  166. package/include/python3.14/internal/pycore_magic_number.h +305 -0
  167. package/include/python3.14/internal/pycore_memoryobject.h +20 -0
  168. package/include/python3.14/internal/pycore_mimalloc.h +69 -0
  169. package/include/python3.14/internal/pycore_modsupport.h +99 -0
  170. package/include/python3.14/internal/pycore_moduleobject.h +62 -0
  171. package/include/python3.14/internal/pycore_namespace.h +21 -0
  172. package/include/python3.14/internal/pycore_object.h +1029 -0
  173. package/include/python3.14/internal/pycore_object_alloc.h +71 -0
  174. package/include/python3.14/internal/pycore_object_deferred.h +32 -0
  175. package/include/python3.14/internal/pycore_object_stack.h +95 -0
  176. package/include/python3.14/internal/pycore_object_state.h +49 -0
  177. package/include/python3.14/internal/pycore_obmalloc.h +702 -0
  178. package/include/python3.14/internal/pycore_obmalloc_init.h +66 -0
  179. package/include/python3.14/internal/pycore_opcode_metadata.h +2117 -0
  180. package/include/python3.14/internal/pycore_opcode_utils.h +90 -0
  181. package/include/python3.14/internal/pycore_optimizer.h +318 -0
  182. package/include/python3.14/internal/pycore_parking_lot.h +97 -0
  183. package/include/python3.14/internal/pycore_parser.h +78 -0
  184. package/include/python3.14/internal/pycore_pathconfig.h +26 -0
  185. package/include/python3.14/internal/pycore_pyarena.h +68 -0
  186. package/include/python3.14/internal/pycore_pyatomic_ft_wrappers.h +174 -0
  187. package/include/python3.14/internal/pycore_pybuffer.h +21 -0
  188. package/include/python3.14/internal/pycore_pyerrors.h +213 -0
  189. package/include/python3.14/internal/pycore_pyhash.h +91 -0
  190. package/include/python3.14/internal/pycore_pylifecycle.h +136 -0
  191. package/include/python3.14/internal/pycore_pymath.h +205 -0
  192. package/include/python3.14/internal/pycore_pymem.h +145 -0
  193. package/include/python3.14/internal/pycore_pymem_init.h +103 -0
  194. package/include/python3.14/internal/pycore_pystate.h +339 -0
  195. package/include/python3.14/internal/pycore_pystats.h +21 -0
  196. package/include/python3.14/internal/pycore_pythonrun.h +68 -0
  197. package/include/python3.14/internal/pycore_pythread.h +172 -0
  198. package/include/python3.14/internal/pycore_qsbr.h +172 -0
  199. package/include/python3.14/internal/pycore_range.h +21 -0
  200. package/include/python3.14/internal/pycore_runtime.h +63 -0
  201. package/include/python3.14/internal/pycore_runtime_init.h +239 -0
  202. package/include/python3.14/internal/pycore_runtime_init_generated.h +1589 -0
  203. package/include/python3.14/internal/pycore_runtime_structs.h +310 -0
  204. package/include/python3.14/internal/pycore_semaphore.h +67 -0
  205. package/include/python3.14/internal/pycore_setobject.h +41 -0
  206. package/include/python3.14/internal/pycore_signal.h +108 -0
  207. package/include/python3.14/internal/pycore_sliceobject.h +20 -0
  208. package/include/python3.14/internal/pycore_stackref.h +791 -0
  209. package/include/python3.14/internal/pycore_stats.h +97 -0
  210. package/include/python3.14/internal/pycore_strhex.h +39 -0
  211. package/include/python3.14/internal/pycore_structs.h +88 -0
  212. package/include/python3.14/internal/pycore_structseq.h +40 -0
  213. package/include/python3.14/internal/pycore_symtable.h +201 -0
  214. package/include/python3.14/internal/pycore_sysmodule.h +32 -0
  215. package/include/python3.14/internal/pycore_template.h +26 -0
  216. package/include/python3.14/internal/pycore_time.h +334 -0
  217. package/include/python3.14/internal/pycore_token.h +110 -0
  218. package/include/python3.14/internal/pycore_traceback.h +111 -0
  219. package/include/python3.14/internal/pycore_tracemalloc.h +164 -0
  220. package/include/python3.14/internal/pycore_tstate.h +88 -0
  221. package/include/python3.14/internal/pycore_tuple.h +75 -0
  222. package/include/python3.14/internal/pycore_typedefs.h +18 -0
  223. package/include/python3.14/internal/pycore_typeobject.h +155 -0
  224. package/include/python3.14/internal/pycore_typevarobject.h +28 -0
  225. package/include/python3.14/internal/pycore_ucnhash.h +36 -0
  226. package/include/python3.14/internal/pycore_unicodeobject.h +308 -0
  227. package/include/python3.14/internal/pycore_unicodeobject_generated.h +3132 -0
  228. package/include/python3.14/internal/pycore_unionobject.h +26 -0
  229. package/include/python3.14/internal/pycore_uniqueid.h +57 -0
  230. package/include/python3.14/internal/pycore_uop_ids.h +335 -0
  231. package/include/python3.14/internal/pycore_uop_metadata.h +1204 -0
  232. package/include/python3.14/internal/pycore_warnings.h +21 -0
  233. package/include/python3.14/internal/pycore_weakref.h +133 -0
  234. package/include/python3.14/intrcheck.h +23 -0
  235. package/include/python3.14/iterobject.h +24 -0
  236. package/include/python3.14/listobject.h +55 -0
  237. package/include/python3.14/lock.h +16 -0
  238. package/include/python3.14/longobject.h +178 -0
  239. package/include/python3.14/marshal.h +31 -0
  240. package/include/python3.14/memoryobject.h +34 -0
  241. package/include/python3.14/methodobject.h +146 -0
  242. package/include/python3.14/modsupport.h +146 -0
  243. package/include/python3.14/moduleobject.h +122 -0
  244. package/include/python3.14/monitoring.h +18 -0
  245. package/include/python3.14/object.h +828 -0
  246. package/include/python3.14/objimpl.h +211 -0
  247. package/include/python3.14/opcode.h +43 -0
  248. package/include/python3.14/opcode_ids.h +259 -0
  249. package/include/python3.14/osdefs.h +57 -0
  250. package/include/python3.14/osmodule.h +17 -0
  251. package/include/python3.14/patchlevel.h +49 -0
  252. package/include/python3.14/py_curses.h +117 -0
  253. package/include/python3.14/pyatomic.h +16 -0
  254. package/include/python3.14/pybuffer.h +145 -0
  255. package/include/python3.14/pycapsule.h +58 -0
  256. package/include/python3.14/pyconfig.h +2087 -0
  257. package/include/python3.14/pydtrace.d +22 -0
  258. package/include/python3.14/pydtrace.h +59 -0
  259. package/include/python3.14/pyerrors.h +335 -0
  260. package/include/python3.14/pyexpat.h +62 -0
  261. package/include/python3.14/pyframe.h +26 -0
  262. package/include/python3.14/pyhash.h +59 -0
  263. package/include/python3.14/pylifecycle.h +80 -0
  264. package/include/python3.14/pymacconfig.h +91 -0
  265. package/include/python3.14/pymacro.h +243 -0
  266. package/include/python3.14/pymath.h +65 -0
  267. package/include/python3.14/pymem.h +110 -0
  268. package/include/python3.14/pyport.h +710 -0
  269. package/include/python3.14/pystate.h +132 -0
  270. package/include/python3.14/pystats.h +28 -0
  271. package/include/python3.14/pystrcmp.h +23 -0
  272. package/include/python3.14/pystrtod.h +37 -0
  273. package/include/python3.14/pythonrun.h +42 -0
  274. package/include/python3.14/pythread.h +131 -0
  275. package/include/python3.14/pytypedefs.h +30 -0
  276. package/include/python3.14/rangeobject.h +27 -0
  277. package/include/python3.14/refcount.h +555 -0
  278. package/include/python3.14/setobject.h +49 -0
  279. package/include/python3.14/sliceobject.h +69 -0
  280. package/include/python3.14/structmember.h +56 -0
  281. package/include/python3.14/structseq.h +46 -0
  282. package/include/python3.14/sysmodule.h +27 -0
  283. package/include/python3.14/traceback.h +26 -0
  284. package/include/python3.14/tupleobject.h +46 -0
  285. package/include/python3.14/typeslots.h +96 -0
  286. package/include/python3.14/unicodeobject.h +1029 -0
  287. package/include/python3.14/warnings.h +45 -0
  288. package/include/python3.14/weakrefobject.h +46 -0
  289. package/lib/libpython3.14.a +4 -0
  290. package/lib/pkgconfig/python-3.14-embed.pc +13 -0
  291. package/lib/pkgconfig/python-3.14.pc +13 -0
  292. package/lib/python3.14/LICENSE.txt +277 -0
  293. package/lib/python3.14/__future__.py +147 -0
  294. package/lib/python3.14/__hello__.py +16 -0
  295. package/lib/python3.14/__phello__/__init__.py +7 -0
  296. package/lib/python3.14/__phello__/__pycache__/__init__.cpython-314.pyc +0 -0
  297. package/lib/python3.14/__phello__/__pycache__/spam.cpython-314.pyc +0 -0
  298. package/lib/python3.14/__phello__/spam.py +7 -0
  299. package/lib/python3.14/__pycache__/__future__.cpython-314.pyc +0 -0
  300. package/lib/python3.14/__pycache__/__hello__.cpython-314.pyc +0 -0
  301. package/lib/python3.14/__pycache__/_aix_support.cpython-314.pyc +0 -0
  302. package/lib/python3.14/__pycache__/_android_support.cpython-314.pyc +0 -0
  303. package/lib/python3.14/__pycache__/_apple_support.cpython-314.pyc +0 -0
  304. package/lib/python3.14/__pycache__/_ast_unparse.cpython-314.pyc +0 -0
  305. package/lib/python3.14/__pycache__/_collections_abc.cpython-314.pyc +0 -0
  306. package/lib/python3.14/__pycache__/_colorize.cpython-314.pyc +0 -0
  307. package/lib/python3.14/__pycache__/_compat_pickle.cpython-314.pyc +0 -0
  308. package/lib/python3.14/__pycache__/_ios_support.cpython-314.pyc +0 -0
  309. package/lib/python3.14/__pycache__/_markupbase.cpython-314.pyc +0 -0
  310. package/lib/python3.14/__pycache__/_opcode_metadata.cpython-314.pyc +0 -0
  311. package/lib/python3.14/__pycache__/_osx_support.cpython-314.pyc +0 -0
  312. package/lib/python3.14/__pycache__/_py_abc.cpython-314.pyc +0 -0
  313. package/lib/python3.14/__pycache__/_py_warnings.cpython-314.pyc +0 -0
  314. package/lib/python3.14/__pycache__/_pydatetime.cpython-314.pyc +0 -0
  315. package/lib/python3.14/__pycache__/_pydecimal.cpython-314.pyc +0 -0
  316. package/lib/python3.14/__pycache__/_pyio.cpython-314.pyc +0 -0
  317. package/lib/python3.14/__pycache__/_pylong.cpython-314.pyc +0 -0
  318. package/lib/python3.14/__pycache__/_sitebuiltins.cpython-314.pyc +0 -0
  319. package/lib/python3.14/__pycache__/_strptime.cpython-314.pyc +0 -0
  320. package/lib/python3.14/__pycache__/_sysconfigdata__wasi_wasm32-wasi-threads.cpython-314.pyc +0 -0
  321. package/lib/python3.14/__pycache__/_threading_local.cpython-314.pyc +0 -0
  322. package/lib/python3.14/__pycache__/_weakrefset.cpython-314.pyc +0 -0
  323. package/lib/python3.14/__pycache__/abc.cpython-314.pyc +0 -0
  324. package/lib/python3.14/__pycache__/annotationlib.cpython-314.pyc +0 -0
  325. package/lib/python3.14/__pycache__/antigravity.cpython-314.pyc +0 -0
  326. package/lib/python3.14/__pycache__/argparse.cpython-314.pyc +0 -0
  327. package/lib/python3.14/__pycache__/ast.cpython-314.pyc +0 -0
  328. package/lib/python3.14/__pycache__/base64.cpython-314.pyc +0 -0
  329. package/lib/python3.14/__pycache__/bdb.cpython-314.pyc +0 -0
  330. package/lib/python3.14/__pycache__/bisect.cpython-314.pyc +0 -0
  331. package/lib/python3.14/__pycache__/bz2.cpython-314.pyc +0 -0
  332. package/lib/python3.14/__pycache__/cProfile.cpython-314.pyc +0 -0
  333. package/lib/python3.14/__pycache__/calendar.cpython-314.pyc +0 -0
  334. package/lib/python3.14/__pycache__/cmd.cpython-314.pyc +0 -0
  335. package/lib/python3.14/__pycache__/code.cpython-314.pyc +0 -0
  336. package/lib/python3.14/__pycache__/codecs.cpython-314.pyc +0 -0
  337. package/lib/python3.14/__pycache__/codeop.cpython-314.pyc +0 -0
  338. package/lib/python3.14/__pycache__/colorsys.cpython-314.pyc +0 -0
  339. package/lib/python3.14/__pycache__/compileall.cpython-314.pyc +0 -0
  340. package/lib/python3.14/__pycache__/configparser.cpython-314.pyc +0 -0
  341. package/lib/python3.14/__pycache__/contextlib.cpython-314.pyc +0 -0
  342. package/lib/python3.14/__pycache__/contextvars.cpython-314.pyc +0 -0
  343. package/lib/python3.14/__pycache__/copy.cpython-314.pyc +0 -0
  344. package/lib/python3.14/__pycache__/copyreg.cpython-314.pyc +0 -0
  345. package/lib/python3.14/__pycache__/csv.cpython-314.pyc +0 -0
  346. package/lib/python3.14/__pycache__/dataclasses.cpython-314.pyc +0 -0
  347. package/lib/python3.14/__pycache__/datetime.cpython-314.pyc +0 -0
  348. package/lib/python3.14/__pycache__/decimal.cpython-314.pyc +0 -0
  349. package/lib/python3.14/__pycache__/difflib.cpython-314.pyc +0 -0
  350. package/lib/python3.14/__pycache__/dis.cpython-314.pyc +0 -0
  351. package/lib/python3.14/__pycache__/doctest.cpython-314.pyc +0 -0
  352. package/lib/python3.14/__pycache__/enum.cpython-314.pyc +0 -0
  353. package/lib/python3.14/__pycache__/filecmp.cpython-314.pyc +0 -0
  354. package/lib/python3.14/__pycache__/fileinput.cpython-314.pyc +0 -0
  355. package/lib/python3.14/__pycache__/fnmatch.cpython-314.pyc +0 -0
  356. package/lib/python3.14/__pycache__/fractions.cpython-314.pyc +0 -0
  357. package/lib/python3.14/__pycache__/ftplib.cpython-314.pyc +0 -0
  358. package/lib/python3.14/__pycache__/functools.cpython-314.pyc +0 -0
  359. package/lib/python3.14/__pycache__/genericpath.cpython-314.pyc +0 -0
  360. package/lib/python3.14/__pycache__/getopt.cpython-314.pyc +0 -0
  361. package/lib/python3.14/__pycache__/getpass.cpython-314.pyc +0 -0
  362. package/lib/python3.14/__pycache__/gettext.cpython-314.pyc +0 -0
  363. package/lib/python3.14/__pycache__/glob.cpython-314.pyc +0 -0
  364. package/lib/python3.14/__pycache__/graphlib.cpython-314.pyc +0 -0
  365. package/lib/python3.14/__pycache__/gzip.cpython-314.pyc +0 -0
  366. package/lib/python3.14/__pycache__/hashlib.cpython-314.pyc +0 -0
  367. package/lib/python3.14/__pycache__/heapq.cpython-314.pyc +0 -0
  368. package/lib/python3.14/__pycache__/hmac.cpython-314.pyc +0 -0
  369. package/lib/python3.14/__pycache__/imaplib.cpython-314.pyc +0 -0
  370. package/lib/python3.14/__pycache__/inspect.cpython-314.pyc +0 -0
  371. package/lib/python3.14/__pycache__/io.cpython-314.pyc +0 -0
  372. package/lib/python3.14/__pycache__/ipaddress.cpython-314.pyc +0 -0
  373. package/lib/python3.14/__pycache__/keyword.cpython-314.pyc +0 -0
  374. package/lib/python3.14/__pycache__/linecache.cpython-314.pyc +0 -0
  375. package/lib/python3.14/__pycache__/locale.cpython-314.pyc +0 -0
  376. package/lib/python3.14/__pycache__/lzma.cpython-314.pyc +0 -0
  377. package/lib/python3.14/__pycache__/mailbox.cpython-314.pyc +0 -0
  378. package/lib/python3.14/__pycache__/mimetypes.cpython-314.pyc +0 -0
  379. package/lib/python3.14/__pycache__/modulefinder.cpython-314.pyc +0 -0
  380. package/lib/python3.14/__pycache__/netrc.cpython-314.pyc +0 -0
  381. package/lib/python3.14/__pycache__/ntpath.cpython-314.pyc +0 -0
  382. package/lib/python3.14/__pycache__/nturl2path.cpython-314.pyc +0 -0
  383. package/lib/python3.14/__pycache__/numbers.cpython-314.pyc +0 -0
  384. package/lib/python3.14/__pycache__/opcode.cpython-314.pyc +0 -0
  385. package/lib/python3.14/__pycache__/operator.cpython-314.pyc +0 -0
  386. package/lib/python3.14/__pycache__/optparse.cpython-314.pyc +0 -0
  387. package/lib/python3.14/__pycache__/os.cpython-314.pyc +0 -0
  388. package/lib/python3.14/__pycache__/pdb.cpython-314.pyc +0 -0
  389. package/lib/python3.14/__pycache__/pickle.cpython-314.pyc +0 -0
  390. package/lib/python3.14/__pycache__/pickletools.cpython-314.pyc +0 -0
  391. package/lib/python3.14/__pycache__/pkgutil.cpython-314.pyc +0 -0
  392. package/lib/python3.14/__pycache__/platform.cpython-314.pyc +0 -0
  393. package/lib/python3.14/__pycache__/plistlib.cpython-314.pyc +0 -0
  394. package/lib/python3.14/__pycache__/poplib.cpython-314.pyc +0 -0
  395. package/lib/python3.14/__pycache__/posixpath.cpython-314.pyc +0 -0
  396. package/lib/python3.14/__pycache__/pprint.cpython-314.pyc +0 -0
  397. package/lib/python3.14/__pycache__/profile.cpython-314.pyc +0 -0
  398. package/lib/python3.14/__pycache__/pstats.cpython-314.pyc +0 -0
  399. package/lib/python3.14/__pycache__/pty.cpython-314.pyc +0 -0
  400. package/lib/python3.14/__pycache__/py_compile.cpython-314.pyc +0 -0
  401. package/lib/python3.14/__pycache__/pyclbr.cpython-314.pyc +0 -0
  402. package/lib/python3.14/__pycache__/pydoc.cpython-314.pyc +0 -0
  403. package/lib/python3.14/__pycache__/queue.cpython-314.pyc +0 -0
  404. package/lib/python3.14/__pycache__/quopri.cpython-314.pyc +0 -0
  405. package/lib/python3.14/__pycache__/random.cpython-314.pyc +0 -0
  406. package/lib/python3.14/__pycache__/reprlib.cpython-314.pyc +0 -0
  407. package/lib/python3.14/__pycache__/rlcompleter.cpython-314.pyc +0 -0
  408. package/lib/python3.14/__pycache__/runpy.cpython-314.pyc +0 -0
  409. package/lib/python3.14/__pycache__/sched.cpython-314.pyc +0 -0
  410. package/lib/python3.14/__pycache__/secrets.cpython-314.pyc +0 -0
  411. package/lib/python3.14/__pycache__/selectors.cpython-314.pyc +0 -0
  412. package/lib/python3.14/__pycache__/shelve.cpython-314.pyc +0 -0
  413. package/lib/python3.14/__pycache__/shlex.cpython-314.pyc +0 -0
  414. package/lib/python3.14/__pycache__/shutil.cpython-314.pyc +0 -0
  415. package/lib/python3.14/__pycache__/signal.cpython-314.pyc +0 -0
  416. package/lib/python3.14/__pycache__/site.cpython-314.pyc +0 -0
  417. package/lib/python3.14/__pycache__/smtplib.cpython-314.pyc +0 -0
  418. package/lib/python3.14/__pycache__/socket.cpython-314.pyc +0 -0
  419. package/lib/python3.14/__pycache__/socketserver.cpython-314.pyc +0 -0
  420. package/lib/python3.14/__pycache__/sre_compile.cpython-314.pyc +0 -0
  421. package/lib/python3.14/__pycache__/sre_constants.cpython-314.pyc +0 -0
  422. package/lib/python3.14/__pycache__/sre_parse.cpython-314.pyc +0 -0
  423. package/lib/python3.14/__pycache__/ssl.cpython-314.pyc +0 -0
  424. package/lib/python3.14/__pycache__/stat.cpython-314.pyc +0 -0
  425. package/lib/python3.14/__pycache__/statistics.cpython-314.pyc +0 -0
  426. package/lib/python3.14/__pycache__/stringprep.cpython-314.pyc +0 -0
  427. package/lib/python3.14/__pycache__/struct.cpython-314.pyc +0 -0
  428. package/lib/python3.14/__pycache__/subprocess.cpython-314.pyc +0 -0
  429. package/lib/python3.14/__pycache__/symtable.cpython-314.pyc +0 -0
  430. package/lib/python3.14/__pycache__/tabnanny.cpython-314.pyc +0 -0
  431. package/lib/python3.14/__pycache__/tarfile.cpython-314.pyc +0 -0
  432. package/lib/python3.14/__pycache__/tempfile.cpython-314.pyc +0 -0
  433. package/lib/python3.14/__pycache__/textwrap.cpython-314.pyc +0 -0
  434. package/lib/python3.14/__pycache__/this.cpython-314.pyc +0 -0
  435. package/lib/python3.14/__pycache__/threading.cpython-314.pyc +0 -0
  436. package/lib/python3.14/__pycache__/timeit.cpython-314.pyc +0 -0
  437. package/lib/python3.14/__pycache__/token.cpython-314.pyc +0 -0
  438. package/lib/python3.14/__pycache__/tokenize.cpython-314.pyc +0 -0
  439. package/lib/python3.14/__pycache__/trace.cpython-314.pyc +0 -0
  440. package/lib/python3.14/__pycache__/traceback.cpython-314.pyc +0 -0
  441. package/lib/python3.14/__pycache__/tracemalloc.cpython-314.pyc +0 -0
  442. package/lib/python3.14/__pycache__/tty.cpython-314.pyc +0 -0
  443. package/lib/python3.14/__pycache__/turtle.cpython-314.pyc +0 -0
  444. package/lib/python3.14/__pycache__/types.cpython-314.pyc +0 -0
  445. package/lib/python3.14/__pycache__/typing.cpython-314.pyc +0 -0
  446. package/lib/python3.14/__pycache__/uuid.cpython-314.pyc +0 -0
  447. package/lib/python3.14/__pycache__/warnings.cpython-314.pyc +0 -0
  448. package/lib/python3.14/__pycache__/wave.cpython-314.pyc +0 -0
  449. package/lib/python3.14/__pycache__/weakref.cpython-314.pyc +0 -0
  450. package/lib/python3.14/__pycache__/webbrowser.cpython-314.pyc +0 -0
  451. package/lib/python3.14/__pycache__/zipapp.cpython-314.pyc +0 -0
  452. package/lib/python3.14/__pycache__/zipimport.cpython-314.pyc +0 -0
  453. package/lib/python3.14/_aix_support.py +108 -0
  454. package/lib/python3.14/_android_support.py +185 -0
  455. package/lib/python3.14/_apple_support.py +66 -0
  456. package/lib/python3.14/_ast_unparse.py +1161 -0
  457. package/lib/python3.14/_collections_abc.py +1167 -0
  458. package/lib/python3.14/_colorize.py +355 -0
  459. package/lib/python3.14/_compat_pickle.py +251 -0
  460. package/lib/python3.14/_ios_support.py +71 -0
  461. package/lib/python3.14/_markupbase.py +396 -0
  462. package/lib/python3.14/_opcode_metadata.py +371 -0
  463. package/lib/python3.14/_osx_support.py +579 -0
  464. package/lib/python3.14/_py_abc.py +147 -0
  465. package/lib/python3.14/_py_warnings.py +869 -0
  466. package/lib/python3.14/_pydatetime.py +2723 -0
  467. package/lib/python3.14/_pydecimal.py +6401 -0
  468. package/lib/python3.14/_pyio.py +2752 -0
  469. package/lib/python3.14/_pylong.py +729 -0
  470. package/lib/python3.14/_pyrepl/__init__.py +19 -0
  471. package/lib/python3.14/_pyrepl/__main__.py +10 -0
  472. package/lib/python3.14/_pyrepl/__pycache__/__init__.cpython-314.pyc +0 -0
  473. package/lib/python3.14/_pyrepl/__pycache__/__main__.cpython-314.pyc +0 -0
  474. package/lib/python3.14/_pyrepl/__pycache__/_module_completer.cpython-314.pyc +0 -0
  475. package/lib/python3.14/_pyrepl/__pycache__/_threading_handler.cpython-314.pyc +0 -0
  476. package/lib/python3.14/_pyrepl/__pycache__/base_eventqueue.cpython-314.pyc +0 -0
  477. package/lib/python3.14/_pyrepl/__pycache__/commands.cpython-314.pyc +0 -0
  478. package/lib/python3.14/_pyrepl/__pycache__/completing_reader.cpython-314.pyc +0 -0
  479. package/lib/python3.14/_pyrepl/__pycache__/console.cpython-314.pyc +0 -0
  480. package/lib/python3.14/_pyrepl/__pycache__/fancy_termios.cpython-314.pyc +0 -0
  481. package/lib/python3.14/_pyrepl/__pycache__/historical_reader.cpython-314.pyc +0 -0
  482. package/lib/python3.14/_pyrepl/__pycache__/input.cpython-314.pyc +0 -0
  483. package/lib/python3.14/_pyrepl/__pycache__/keymap.cpython-314.pyc +0 -0
  484. package/lib/python3.14/_pyrepl/__pycache__/main.cpython-314.pyc +0 -0
  485. package/lib/python3.14/_pyrepl/__pycache__/pager.cpython-314.pyc +0 -0
  486. package/lib/python3.14/_pyrepl/__pycache__/reader.cpython-314.pyc +0 -0
  487. package/lib/python3.14/_pyrepl/__pycache__/readline.cpython-314.pyc +0 -0
  488. package/lib/python3.14/_pyrepl/__pycache__/simple_interact.cpython-314.pyc +0 -0
  489. package/lib/python3.14/_pyrepl/__pycache__/terminfo.cpython-314.pyc +0 -0
  490. package/lib/python3.14/_pyrepl/__pycache__/trace.cpython-314.pyc +0 -0
  491. package/lib/python3.14/_pyrepl/__pycache__/types.cpython-314.pyc +0 -0
  492. package/lib/python3.14/_pyrepl/__pycache__/unix_console.cpython-314.pyc +0 -0
  493. package/lib/python3.14/_pyrepl/__pycache__/unix_eventqueue.cpython-314.pyc +0 -0
  494. package/lib/python3.14/_pyrepl/__pycache__/utils.cpython-314.pyc +0 -0
  495. package/lib/python3.14/_pyrepl/__pycache__/windows_console.cpython-314.pyc +0 -0
  496. package/lib/python3.14/_pyrepl/__pycache__/windows_eventqueue.cpython-314.pyc +0 -0
  497. package/lib/python3.14/_pyrepl/_module_completer.py +415 -0
  498. package/lib/python3.14/_pyrepl/_threading_handler.py +74 -0
  499. package/lib/python3.14/_pyrepl/base_eventqueue.py +110 -0
  500. package/lib/python3.14/_pyrepl/commands.py +505 -0
  501. package/lib/python3.14/_pyrepl/completing_reader.py +299 -0
  502. package/lib/python3.14/_pyrepl/console.py +229 -0
  503. package/lib/python3.14/_pyrepl/fancy_termios.py +82 -0
  504. package/lib/python3.14/_pyrepl/historical_reader.py +419 -0
  505. package/lib/python3.14/_pyrepl/input.py +114 -0
  506. package/lib/python3.14/_pyrepl/keymap.py +213 -0
  507. package/lib/python3.14/_pyrepl/main.py +58 -0
  508. package/lib/python3.14/_pyrepl/mypy.ini +25 -0
  509. package/lib/python3.14/_pyrepl/pager.py +175 -0
  510. package/lib/python3.14/_pyrepl/reader.py +762 -0
  511. package/lib/python3.14/_pyrepl/readline.py +620 -0
  512. package/lib/python3.14/_pyrepl/simple_interact.py +181 -0
  513. package/lib/python3.14/_pyrepl/terminfo.py +488 -0
  514. package/lib/python3.14/_pyrepl/trace.py +34 -0
  515. package/lib/python3.14/_pyrepl/types.py +10 -0
  516. package/lib/python3.14/_pyrepl/unix_console.py +842 -0
  517. package/lib/python3.14/_pyrepl/unix_eventqueue.py +77 -0
  518. package/lib/python3.14/_pyrepl/utils.py +391 -0
  519. package/lib/python3.14/_pyrepl/windows_console.py +725 -0
  520. package/lib/python3.14/_pyrepl/windows_eventqueue.py +42 -0
  521. package/lib/python3.14/_sitebuiltins.py +103 -0
  522. package/lib/python3.14/_strptime.py +822 -0
  523. package/lib/python3.14/_sysconfig_vars__wasi_wasm32-wasi-threads.json +1097 -0
  524. package/lib/python3.14/_sysconfigdata__wasi_wasm32-wasi-threads.py +1084 -0
  525. package/lib/python3.14/_threading_local.py +120 -0
  526. package/lib/python3.14/_weakrefset.py +147 -0
  527. package/lib/python3.14/abc.py +188 -0
  528. package/lib/python3.14/annotationlib.py +1143 -0
  529. package/lib/python3.14/antigravity.py +17 -0
  530. package/lib/python3.14/argparse.py +2777 -0
  531. package/lib/python3.14/ast.py +680 -0
  532. package/lib/python3.14/asyncio/__init__.py +74 -0
  533. package/lib/python3.14/asyncio/__main__.py +239 -0
  534. package/lib/python3.14/asyncio/__pycache__/__init__.cpython-314.pyc +0 -0
  535. package/lib/python3.14/asyncio/__pycache__/__main__.cpython-314.pyc +0 -0
  536. package/lib/python3.14/asyncio/__pycache__/base_events.cpython-314.pyc +0 -0
  537. package/lib/python3.14/asyncio/__pycache__/base_futures.cpython-314.pyc +0 -0
  538. package/lib/python3.14/asyncio/__pycache__/base_subprocess.cpython-314.pyc +0 -0
  539. package/lib/python3.14/asyncio/__pycache__/base_tasks.cpython-314.pyc +0 -0
  540. package/lib/python3.14/asyncio/__pycache__/constants.cpython-314.pyc +0 -0
  541. package/lib/python3.14/asyncio/__pycache__/coroutines.cpython-314.pyc +0 -0
  542. package/lib/python3.14/asyncio/__pycache__/events.cpython-314.pyc +0 -0
  543. package/lib/python3.14/asyncio/__pycache__/exceptions.cpython-314.pyc +0 -0
  544. package/lib/python3.14/asyncio/__pycache__/format_helpers.cpython-314.pyc +0 -0
  545. package/lib/python3.14/asyncio/__pycache__/futures.cpython-314.pyc +0 -0
  546. package/lib/python3.14/asyncio/__pycache__/graph.cpython-314.pyc +0 -0
  547. package/lib/python3.14/asyncio/__pycache__/locks.cpython-314.pyc +0 -0
  548. package/lib/python3.14/asyncio/__pycache__/log.cpython-314.pyc +0 -0
  549. package/lib/python3.14/asyncio/__pycache__/mixins.cpython-314.pyc +0 -0
  550. package/lib/python3.14/asyncio/__pycache__/proactor_events.cpython-314.pyc +0 -0
  551. package/lib/python3.14/asyncio/__pycache__/protocols.cpython-314.pyc +0 -0
  552. package/lib/python3.14/asyncio/__pycache__/queues.cpython-314.pyc +0 -0
  553. package/lib/python3.14/asyncio/__pycache__/runners.cpython-314.pyc +0 -0
  554. package/lib/python3.14/asyncio/__pycache__/selector_events.cpython-314.pyc +0 -0
  555. package/lib/python3.14/asyncio/__pycache__/sslproto.cpython-314.pyc +0 -0
  556. package/lib/python3.14/asyncio/__pycache__/staggered.cpython-314.pyc +0 -0
  557. package/lib/python3.14/asyncio/__pycache__/streams.cpython-314.pyc +0 -0
  558. package/lib/python3.14/asyncio/__pycache__/subprocess.cpython-314.pyc +0 -0
  559. package/lib/python3.14/asyncio/__pycache__/taskgroups.cpython-314.pyc +0 -0
  560. package/lib/python3.14/asyncio/__pycache__/tasks.cpython-314.pyc +0 -0
  561. package/lib/python3.14/asyncio/__pycache__/threads.cpython-314.pyc +0 -0
  562. package/lib/python3.14/asyncio/__pycache__/timeouts.cpython-314.pyc +0 -0
  563. package/lib/python3.14/asyncio/__pycache__/tools.cpython-314.pyc +0 -0
  564. package/lib/python3.14/asyncio/__pycache__/transports.cpython-314.pyc +0 -0
  565. package/lib/python3.14/asyncio/__pycache__/trsock.cpython-314.pyc +0 -0
  566. package/lib/python3.14/asyncio/__pycache__/unix_events.cpython-314.pyc +0 -0
  567. package/lib/python3.14/asyncio/__pycache__/windows_events.cpython-314.pyc +0 -0
  568. package/lib/python3.14/asyncio/__pycache__/windows_utils.cpython-314.pyc +0 -0
  569. package/lib/python3.14/asyncio/base_events.py +2071 -0
  570. package/lib/python3.14/asyncio/base_futures.py +67 -0
  571. package/lib/python3.14/asyncio/base_subprocess.py +319 -0
  572. package/lib/python3.14/asyncio/base_tasks.py +94 -0
  573. package/lib/python3.14/asyncio/constants.py +41 -0
  574. package/lib/python3.14/asyncio/coroutines.py +118 -0
  575. package/lib/python3.14/asyncio/events.py +878 -0
  576. package/lib/python3.14/asyncio/exceptions.py +62 -0
  577. package/lib/python3.14/asyncio/format_helpers.py +84 -0
  578. package/lib/python3.14/asyncio/futures.py +481 -0
  579. package/lib/python3.14/asyncio/graph.py +276 -0
  580. package/lib/python3.14/asyncio/locks.py +617 -0
  581. package/lib/python3.14/asyncio/log.py +7 -0
  582. package/lib/python3.14/asyncio/mixins.py +21 -0
  583. package/lib/python3.14/asyncio/proactor_events.py +896 -0
  584. package/lib/python3.14/asyncio/protocols.py +216 -0
  585. package/lib/python3.14/asyncio/queues.py +307 -0
  586. package/lib/python3.14/asyncio/runners.py +225 -0
  587. package/lib/python3.14/asyncio/selector_events.py +1326 -0
  588. package/lib/python3.14/asyncio/sslproto.py +929 -0
  589. package/lib/python3.14/asyncio/staggered.py +179 -0
  590. package/lib/python3.14/asyncio/streams.py +787 -0
  591. package/lib/python3.14/asyncio/subprocess.py +229 -0
  592. package/lib/python3.14/asyncio/taskgroups.py +280 -0
  593. package/lib/python3.14/asyncio/tasks.py +1141 -0
  594. package/lib/python3.14/asyncio/threads.py +25 -0
  595. package/lib/python3.14/asyncio/timeouts.py +182 -0
  596. package/lib/python3.14/asyncio/tools.py +276 -0
  597. package/lib/python3.14/asyncio/transports.py +337 -0
  598. package/lib/python3.14/asyncio/trsock.py +98 -0
  599. package/lib/python3.14/asyncio/unix_events.py +972 -0
  600. package/lib/python3.14/asyncio/windows_events.py +903 -0
  601. package/lib/python3.14/asyncio/windows_utils.py +173 -0
  602. package/lib/python3.14/base64.py +618 -0
  603. package/lib/python3.14/bdb.py +1206 -0
  604. package/lib/python3.14/bisect.py +118 -0
  605. package/lib/python3.14/build-details.json +53 -0
  606. package/lib/python3.14/bz2.py +352 -0
  607. package/lib/python3.14/cProfile.py +205 -0
  608. package/lib/python3.14/calendar.py +926 -0
  609. package/lib/python3.14/cmd.py +414 -0
  610. package/lib/python3.14/code.py +396 -0
  611. package/lib/python3.14/codecs.py +1125 -0
  612. package/lib/python3.14/codeop.py +154 -0
  613. package/lib/python3.14/collections/__init__.py +1609 -0
  614. package/lib/python3.14/collections/__pycache__/__init__.cpython-314.pyc +0 -0
  615. package/lib/python3.14/colorsys.py +166 -0
  616. package/lib/python3.14/compileall.py +472 -0
  617. package/lib/python3.14/compression/__init__.py +0 -0
  618. package/lib/python3.14/compression/__pycache__/__init__.cpython-314.pyc +0 -0
  619. package/lib/python3.14/compression/__pycache__/bz2.cpython-314.pyc +0 -0
  620. package/lib/python3.14/compression/__pycache__/gzip.cpython-314.pyc +0 -0
  621. package/lib/python3.14/compression/__pycache__/lzma.cpython-314.pyc +0 -0
  622. package/lib/python3.14/compression/__pycache__/zlib.cpython-314.pyc +0 -0
  623. package/lib/python3.14/compression/_common/__init__.py +0 -0
  624. package/lib/python3.14/compression/_common/__pycache__/__init__.cpython-314.pyc +0 -0
  625. package/lib/python3.14/compression/_common/__pycache__/_streams.cpython-314.pyc +0 -0
  626. package/lib/python3.14/compression/_common/_streams.py +162 -0
  627. package/lib/python3.14/compression/bz2.py +5 -0
  628. package/lib/python3.14/compression/gzip.py +5 -0
  629. package/lib/python3.14/compression/lzma.py +5 -0
  630. package/lib/python3.14/compression/zlib.py +5 -0
  631. package/lib/python3.14/compression/zstd/__init__.py +242 -0
  632. package/lib/python3.14/compression/zstd/__pycache__/__init__.cpython-314.pyc +0 -0
  633. package/lib/python3.14/compression/zstd/__pycache__/_zstdfile.cpython-314.pyc +0 -0
  634. package/lib/python3.14/compression/zstd/_zstdfile.py +345 -0
  635. package/lib/python3.14/concurrent/__init__.py +1 -0
  636. package/lib/python3.14/concurrent/__pycache__/__init__.cpython-314.pyc +0 -0
  637. package/lib/python3.14/concurrent/futures/__init__.py +65 -0
  638. package/lib/python3.14/concurrent/futures/__pycache__/__init__.cpython-314.pyc +0 -0
  639. package/lib/python3.14/concurrent/futures/__pycache__/_base.cpython-314.pyc +0 -0
  640. package/lib/python3.14/concurrent/futures/__pycache__/interpreter.cpython-314.pyc +0 -0
  641. package/lib/python3.14/concurrent/futures/__pycache__/process.cpython-314.pyc +0 -0
  642. package/lib/python3.14/concurrent/futures/__pycache__/thread.cpython-314.pyc +0 -0
  643. package/lib/python3.14/concurrent/futures/_base.py +674 -0
  644. package/lib/python3.14/concurrent/futures/interpreter.py +123 -0
  645. package/lib/python3.14/concurrent/futures/process.py +939 -0
  646. package/lib/python3.14/concurrent/futures/thread.py +274 -0
  647. package/lib/python3.14/concurrent/interpreters/__init__.py +247 -0
  648. package/lib/python3.14/concurrent/interpreters/__pycache__/__init__.cpython-314.pyc +0 -0
  649. package/lib/python3.14/concurrent/interpreters/__pycache__/_crossinterp.cpython-314.pyc +0 -0
  650. package/lib/python3.14/concurrent/interpreters/__pycache__/_queues.cpython-314.pyc +0 -0
  651. package/lib/python3.14/concurrent/interpreters/_crossinterp.py +107 -0
  652. package/lib/python3.14/concurrent/interpreters/_queues.py +289 -0
  653. package/lib/python3.14/configparser.py +1414 -0
  654. package/lib/python3.14/contextlib.py +814 -0
  655. package/lib/python3.14/contextvars.py +8 -0
  656. package/lib/python3.14/copy.py +286 -0
  657. package/lib/python3.14/copyreg.py +222 -0
  658. package/lib/python3.14/csv.py +513 -0
  659. package/lib/python3.14/ctypes/__init__.py +681 -0
  660. package/lib/python3.14/ctypes/__pycache__/__init__.cpython-314.pyc +0 -0
  661. package/lib/python3.14/ctypes/__pycache__/_aix.cpython-314.pyc +0 -0
  662. package/lib/python3.14/ctypes/__pycache__/_endian.cpython-314.pyc +0 -0
  663. package/lib/python3.14/ctypes/__pycache__/_layout.cpython-314.pyc +0 -0
  664. package/lib/python3.14/ctypes/__pycache__/util.cpython-314.pyc +0 -0
  665. package/lib/python3.14/ctypes/__pycache__/wintypes.cpython-314.pyc +0 -0
  666. package/lib/python3.14/ctypes/_aix.py +327 -0
  667. package/lib/python3.14/ctypes/_endian.py +78 -0
  668. package/lib/python3.14/ctypes/_layout.py +330 -0
  669. package/lib/python3.14/ctypes/macholib/README.ctypes +7 -0
  670. package/lib/python3.14/ctypes/macholib/__init__.py +9 -0
  671. package/lib/python3.14/ctypes/macholib/__pycache__/__init__.cpython-314.pyc +0 -0
  672. package/lib/python3.14/ctypes/macholib/__pycache__/dyld.cpython-314.pyc +0 -0
  673. package/lib/python3.14/ctypes/macholib/__pycache__/dylib.cpython-314.pyc +0 -0
  674. package/lib/python3.14/ctypes/macholib/__pycache__/framework.cpython-314.pyc +0 -0
  675. package/lib/python3.14/ctypes/macholib/dyld.py +165 -0
  676. package/lib/python3.14/ctypes/macholib/dylib.py +42 -0
  677. package/lib/python3.14/ctypes/macholib/fetch_macholib +2 -0
  678. package/lib/python3.14/ctypes/macholib/fetch_macholib.bat +1 -0
  679. package/lib/python3.14/ctypes/macholib/framework.py +42 -0
  680. package/lib/python3.14/ctypes/util.py +538 -0
  681. package/lib/python3.14/ctypes/wintypes.py +210 -0
  682. package/lib/python3.14/curses/__init__.py +101 -0
  683. package/lib/python3.14/curses/__pycache__/__init__.cpython-314.pyc +0 -0
  684. package/lib/python3.14/curses/__pycache__/ascii.cpython-314.pyc +0 -0
  685. package/lib/python3.14/curses/__pycache__/has_key.cpython-314.pyc +0 -0
  686. package/lib/python3.14/curses/__pycache__/panel.cpython-314.pyc +0 -0
  687. package/lib/python3.14/curses/__pycache__/textpad.cpython-314.pyc +0 -0
  688. package/lib/python3.14/curses/ascii.py +99 -0
  689. package/lib/python3.14/curses/has_key.py +192 -0
  690. package/lib/python3.14/curses/panel.py +6 -0
  691. package/lib/python3.14/curses/textpad.py +204 -0
  692. package/lib/python3.14/dataclasses.py +1804 -0
  693. package/lib/python3.14/datetime.py +13 -0
  694. package/lib/python3.14/dbm/__init__.py +194 -0
  695. package/lib/python3.14/dbm/__pycache__/__init__.cpython-314.pyc +0 -0
  696. package/lib/python3.14/dbm/__pycache__/dumb.cpython-314.pyc +0 -0
  697. package/lib/python3.14/dbm/__pycache__/gnu.cpython-314.pyc +0 -0
  698. package/lib/python3.14/dbm/__pycache__/ndbm.cpython-314.pyc +0 -0
  699. package/lib/python3.14/dbm/__pycache__/sqlite3.cpython-314.pyc +0 -0
  700. package/lib/python3.14/dbm/dumb.py +319 -0
  701. package/lib/python3.14/dbm/gnu.py +3 -0
  702. package/lib/python3.14/dbm/ndbm.py +3 -0
  703. package/lib/python3.14/dbm/sqlite3.py +144 -0
  704. package/lib/python3.14/decimal.py +109 -0
  705. package/lib/python3.14/difflib.py +2064 -0
  706. package/lib/python3.14/dis.py +1157 -0
  707. package/lib/python3.14/doctest.py +2921 -0
  708. package/lib/python3.14/email/__init__.py +61 -0
  709. package/lib/python3.14/email/__pycache__/__init__.cpython-314.pyc +0 -0
  710. package/lib/python3.14/email/__pycache__/_encoded_words.cpython-314.pyc +0 -0
  711. package/lib/python3.14/email/__pycache__/_header_value_parser.cpython-314.pyc +0 -0
  712. package/lib/python3.14/email/__pycache__/_parseaddr.cpython-314.pyc +0 -0
  713. package/lib/python3.14/email/__pycache__/_policybase.cpython-314.pyc +0 -0
  714. package/lib/python3.14/email/__pycache__/base64mime.cpython-314.pyc +0 -0
  715. package/lib/python3.14/email/__pycache__/charset.cpython-314.pyc +0 -0
  716. package/lib/python3.14/email/__pycache__/contentmanager.cpython-314.pyc +0 -0
  717. package/lib/python3.14/email/__pycache__/encoders.cpython-314.pyc +0 -0
  718. package/lib/python3.14/email/__pycache__/errors.cpython-314.pyc +0 -0
  719. package/lib/python3.14/email/__pycache__/feedparser.cpython-314.pyc +0 -0
  720. package/lib/python3.14/email/__pycache__/generator.cpython-314.pyc +0 -0
  721. package/lib/python3.14/email/__pycache__/header.cpython-314.pyc +0 -0
  722. package/lib/python3.14/email/__pycache__/headerregistry.cpython-314.pyc +0 -0
  723. package/lib/python3.14/email/__pycache__/iterators.cpython-314.pyc +0 -0
  724. package/lib/python3.14/email/__pycache__/message.cpython-314.pyc +0 -0
  725. package/lib/python3.14/email/__pycache__/parser.cpython-314.pyc +0 -0
  726. package/lib/python3.14/email/__pycache__/policy.cpython-314.pyc +0 -0
  727. package/lib/python3.14/email/__pycache__/quoprimime.cpython-314.pyc +0 -0
  728. package/lib/python3.14/email/__pycache__/utils.cpython-314.pyc +0 -0
  729. package/lib/python3.14/email/_encoded_words.py +233 -0
  730. package/lib/python3.14/email/_header_value_parser.py +3097 -0
  731. package/lib/python3.14/email/_parseaddr.py +563 -0
  732. package/lib/python3.14/email/_policybase.py +392 -0
  733. package/lib/python3.14/email/architecture.rst +216 -0
  734. package/lib/python3.14/email/base64mime.py +115 -0
  735. package/lib/python3.14/email/charset.py +398 -0
  736. package/lib/python3.14/email/contentmanager.py +253 -0
  737. package/lib/python3.14/email/encoders.py +65 -0
  738. package/lib/python3.14/email/errors.py +117 -0
  739. package/lib/python3.14/email/feedparser.py +537 -0
  740. package/lib/python3.14/email/generator.py +520 -0
  741. package/lib/python3.14/email/header.py +582 -0
  742. package/lib/python3.14/email/headerregistry.py +604 -0
  743. package/lib/python3.14/email/iterators.py +68 -0
  744. package/lib/python3.14/email/message.py +1217 -0
  745. package/lib/python3.14/email/mime/__init__.py +0 -0
  746. package/lib/python3.14/email/mime/__pycache__/__init__.cpython-314.pyc +0 -0
  747. package/lib/python3.14/email/mime/__pycache__/application.cpython-314.pyc +0 -0
  748. package/lib/python3.14/email/mime/__pycache__/audio.cpython-314.pyc +0 -0
  749. package/lib/python3.14/email/mime/__pycache__/base.cpython-314.pyc +0 -0
  750. package/lib/python3.14/email/mime/__pycache__/image.cpython-314.pyc +0 -0
  751. package/lib/python3.14/email/mime/__pycache__/message.cpython-314.pyc +0 -0
  752. package/lib/python3.14/email/mime/__pycache__/multipart.cpython-314.pyc +0 -0
  753. package/lib/python3.14/email/mime/__pycache__/nonmultipart.cpython-314.pyc +0 -0
  754. package/lib/python3.14/email/mime/__pycache__/text.cpython-314.pyc +0 -0
  755. package/lib/python3.14/email/mime/application.py +37 -0
  756. package/lib/python3.14/email/mime/audio.py +97 -0
  757. package/lib/python3.14/email/mime/base.py +29 -0
  758. package/lib/python3.14/email/mime/image.py +152 -0
  759. package/lib/python3.14/email/mime/message.py +33 -0
  760. package/lib/python3.14/email/mime/multipart.py +47 -0
  761. package/lib/python3.14/email/mime/nonmultipart.py +21 -0
  762. package/lib/python3.14/email/mime/text.py +40 -0
  763. package/lib/python3.14/email/parser.py +127 -0
  764. package/lib/python3.14/email/policy.py +239 -0
  765. package/lib/python3.14/email/quoprimime.py +300 -0
  766. package/lib/python3.14/email/utils.py +486 -0
  767. package/lib/python3.14/encodings/__init__.py +177 -0
  768. package/lib/python3.14/encodings/__pycache__/__init__.cpython-314.pyc +0 -0
  769. package/lib/python3.14/encodings/__pycache__/_win_cp_codecs.cpython-314.pyc +0 -0
  770. package/lib/python3.14/encodings/__pycache__/aliases.cpython-314.pyc +0 -0
  771. package/lib/python3.14/encodings/__pycache__/ascii.cpython-314.pyc +0 -0
  772. package/lib/python3.14/encodings/__pycache__/base64_codec.cpython-314.pyc +0 -0
  773. package/lib/python3.14/encodings/__pycache__/big5.cpython-314.pyc +0 -0
  774. package/lib/python3.14/encodings/__pycache__/big5hkscs.cpython-314.pyc +0 -0
  775. package/lib/python3.14/encodings/__pycache__/bz2_codec.cpython-314.pyc +0 -0
  776. package/lib/python3.14/encodings/__pycache__/charmap.cpython-314.pyc +0 -0
  777. package/lib/python3.14/encodings/__pycache__/cp037.cpython-314.pyc +0 -0
  778. package/lib/python3.14/encodings/__pycache__/cp1006.cpython-314.pyc +0 -0
  779. package/lib/python3.14/encodings/__pycache__/cp1026.cpython-314.pyc +0 -0
  780. package/lib/python3.14/encodings/__pycache__/cp1125.cpython-314.pyc +0 -0
  781. package/lib/python3.14/encodings/__pycache__/cp1140.cpython-314.pyc +0 -0
  782. package/lib/python3.14/encodings/__pycache__/cp1250.cpython-314.pyc +0 -0
  783. package/lib/python3.14/encodings/__pycache__/cp1251.cpython-314.pyc +0 -0
  784. package/lib/python3.14/encodings/__pycache__/cp1252.cpython-314.pyc +0 -0
  785. package/lib/python3.14/encodings/__pycache__/cp1253.cpython-314.pyc +0 -0
  786. package/lib/python3.14/encodings/__pycache__/cp1254.cpython-314.pyc +0 -0
  787. package/lib/python3.14/encodings/__pycache__/cp1255.cpython-314.pyc +0 -0
  788. package/lib/python3.14/encodings/__pycache__/cp1256.cpython-314.pyc +0 -0
  789. package/lib/python3.14/encodings/__pycache__/cp1257.cpython-314.pyc +0 -0
  790. package/lib/python3.14/encodings/__pycache__/cp1258.cpython-314.pyc +0 -0
  791. package/lib/python3.14/encodings/__pycache__/cp273.cpython-314.pyc +0 -0
  792. package/lib/python3.14/encodings/__pycache__/cp424.cpython-314.pyc +0 -0
  793. package/lib/python3.14/encodings/__pycache__/cp437.cpython-314.pyc +0 -0
  794. package/lib/python3.14/encodings/__pycache__/cp500.cpython-314.pyc +0 -0
  795. package/lib/python3.14/encodings/__pycache__/cp720.cpython-314.pyc +0 -0
  796. package/lib/python3.14/encodings/__pycache__/cp737.cpython-314.pyc +0 -0
  797. package/lib/python3.14/encodings/__pycache__/cp775.cpython-314.pyc +0 -0
  798. package/lib/python3.14/encodings/__pycache__/cp850.cpython-314.pyc +0 -0
  799. package/lib/python3.14/encodings/__pycache__/cp852.cpython-314.pyc +0 -0
  800. package/lib/python3.14/encodings/__pycache__/cp855.cpython-314.pyc +0 -0
  801. package/lib/python3.14/encodings/__pycache__/cp856.cpython-314.pyc +0 -0
  802. package/lib/python3.14/encodings/__pycache__/cp857.cpython-314.pyc +0 -0
  803. package/lib/python3.14/encodings/__pycache__/cp858.cpython-314.pyc +0 -0
  804. package/lib/python3.14/encodings/__pycache__/cp860.cpython-314.pyc +0 -0
  805. package/lib/python3.14/encodings/__pycache__/cp861.cpython-314.pyc +0 -0
  806. package/lib/python3.14/encodings/__pycache__/cp862.cpython-314.pyc +0 -0
  807. package/lib/python3.14/encodings/__pycache__/cp863.cpython-314.pyc +0 -0
  808. package/lib/python3.14/encodings/__pycache__/cp864.cpython-314.pyc +0 -0
  809. package/lib/python3.14/encodings/__pycache__/cp865.cpython-314.pyc +0 -0
  810. package/lib/python3.14/encodings/__pycache__/cp866.cpython-314.pyc +0 -0
  811. package/lib/python3.14/encodings/__pycache__/cp869.cpython-314.pyc +0 -0
  812. package/lib/python3.14/encodings/__pycache__/cp874.cpython-314.pyc +0 -0
  813. package/lib/python3.14/encodings/__pycache__/cp875.cpython-314.pyc +0 -0
  814. package/lib/python3.14/encodings/__pycache__/cp932.cpython-314.pyc +0 -0
  815. package/lib/python3.14/encodings/__pycache__/cp949.cpython-314.pyc +0 -0
  816. package/lib/python3.14/encodings/__pycache__/cp950.cpython-314.pyc +0 -0
  817. package/lib/python3.14/encodings/__pycache__/euc_jis_2004.cpython-314.pyc +0 -0
  818. package/lib/python3.14/encodings/__pycache__/euc_jisx0213.cpython-314.pyc +0 -0
  819. package/lib/python3.14/encodings/__pycache__/euc_jp.cpython-314.pyc +0 -0
  820. package/lib/python3.14/encodings/__pycache__/euc_kr.cpython-314.pyc +0 -0
  821. package/lib/python3.14/encodings/__pycache__/gb18030.cpython-314.pyc +0 -0
  822. package/lib/python3.14/encodings/__pycache__/gb2312.cpython-314.pyc +0 -0
  823. package/lib/python3.14/encodings/__pycache__/gbk.cpython-314.pyc +0 -0
  824. package/lib/python3.14/encodings/__pycache__/hex_codec.cpython-314.pyc +0 -0
  825. package/lib/python3.14/encodings/__pycache__/hp_roman8.cpython-314.pyc +0 -0
  826. package/lib/python3.14/encodings/__pycache__/hz.cpython-314.pyc +0 -0
  827. package/lib/python3.14/encodings/__pycache__/idna.cpython-314.pyc +0 -0
  828. package/lib/python3.14/encodings/__pycache__/iso2022_jp.cpython-314.pyc +0 -0
  829. package/lib/python3.14/encodings/__pycache__/iso2022_jp_1.cpython-314.pyc +0 -0
  830. package/lib/python3.14/encodings/__pycache__/iso2022_jp_2.cpython-314.pyc +0 -0
  831. package/lib/python3.14/encodings/__pycache__/iso2022_jp_2004.cpython-314.pyc +0 -0
  832. package/lib/python3.14/encodings/__pycache__/iso2022_jp_3.cpython-314.pyc +0 -0
  833. package/lib/python3.14/encodings/__pycache__/iso2022_jp_ext.cpython-314.pyc +0 -0
  834. package/lib/python3.14/encodings/__pycache__/iso2022_kr.cpython-314.pyc +0 -0
  835. package/lib/python3.14/encodings/__pycache__/iso8859_1.cpython-314.pyc +0 -0
  836. package/lib/python3.14/encodings/__pycache__/iso8859_10.cpython-314.pyc +0 -0
  837. package/lib/python3.14/encodings/__pycache__/iso8859_11.cpython-314.pyc +0 -0
  838. package/lib/python3.14/encodings/__pycache__/iso8859_13.cpython-314.pyc +0 -0
  839. package/lib/python3.14/encodings/__pycache__/iso8859_14.cpython-314.pyc +0 -0
  840. package/lib/python3.14/encodings/__pycache__/iso8859_15.cpython-314.pyc +0 -0
  841. package/lib/python3.14/encodings/__pycache__/iso8859_16.cpython-314.pyc +0 -0
  842. package/lib/python3.14/encodings/__pycache__/iso8859_2.cpython-314.pyc +0 -0
  843. package/lib/python3.14/encodings/__pycache__/iso8859_3.cpython-314.pyc +0 -0
  844. package/lib/python3.14/encodings/__pycache__/iso8859_4.cpython-314.pyc +0 -0
  845. package/lib/python3.14/encodings/__pycache__/iso8859_5.cpython-314.pyc +0 -0
  846. package/lib/python3.14/encodings/__pycache__/iso8859_6.cpython-314.pyc +0 -0
  847. package/lib/python3.14/encodings/__pycache__/iso8859_7.cpython-314.pyc +0 -0
  848. package/lib/python3.14/encodings/__pycache__/iso8859_8.cpython-314.pyc +0 -0
  849. package/lib/python3.14/encodings/__pycache__/iso8859_9.cpython-314.pyc +0 -0
  850. package/lib/python3.14/encodings/__pycache__/johab.cpython-314.pyc +0 -0
  851. package/lib/python3.14/encodings/__pycache__/koi8_r.cpython-314.pyc +0 -0
  852. package/lib/python3.14/encodings/__pycache__/koi8_t.cpython-314.pyc +0 -0
  853. package/lib/python3.14/encodings/__pycache__/koi8_u.cpython-314.pyc +0 -0
  854. package/lib/python3.14/encodings/__pycache__/kz1048.cpython-314.pyc +0 -0
  855. package/lib/python3.14/encodings/__pycache__/latin_1.cpython-314.pyc +0 -0
  856. package/lib/python3.14/encodings/__pycache__/mac_arabic.cpython-314.pyc +0 -0
  857. package/lib/python3.14/encodings/__pycache__/mac_croatian.cpython-314.pyc +0 -0
  858. package/lib/python3.14/encodings/__pycache__/mac_cyrillic.cpython-314.pyc +0 -0
  859. package/lib/python3.14/encodings/__pycache__/mac_farsi.cpython-314.pyc +0 -0
  860. package/lib/python3.14/encodings/__pycache__/mac_greek.cpython-314.pyc +0 -0
  861. package/lib/python3.14/encodings/__pycache__/mac_iceland.cpython-314.pyc +0 -0
  862. package/lib/python3.14/encodings/__pycache__/mac_latin2.cpython-314.pyc +0 -0
  863. package/lib/python3.14/encodings/__pycache__/mac_roman.cpython-314.pyc +0 -0
  864. package/lib/python3.14/encodings/__pycache__/mac_romanian.cpython-314.pyc +0 -0
  865. package/lib/python3.14/encodings/__pycache__/mac_turkish.cpython-314.pyc +0 -0
  866. package/lib/python3.14/encodings/__pycache__/mbcs.cpython-314.pyc +0 -0
  867. package/lib/python3.14/encodings/__pycache__/oem.cpython-314.pyc +0 -0
  868. package/lib/python3.14/encodings/__pycache__/palmos.cpython-314.pyc +0 -0
  869. package/lib/python3.14/encodings/__pycache__/ptcp154.cpython-314.pyc +0 -0
  870. package/lib/python3.14/encodings/__pycache__/punycode.cpython-314.pyc +0 -0
  871. package/lib/python3.14/encodings/__pycache__/quopri_codec.cpython-314.pyc +0 -0
  872. package/lib/python3.14/encodings/__pycache__/raw_unicode_escape.cpython-314.pyc +0 -0
  873. package/lib/python3.14/encodings/__pycache__/rot_13.cpython-314.pyc +0 -0
  874. package/lib/python3.14/encodings/__pycache__/shift_jis.cpython-314.pyc +0 -0
  875. package/lib/python3.14/encodings/__pycache__/shift_jis_2004.cpython-314.pyc +0 -0
  876. package/lib/python3.14/encodings/__pycache__/shift_jisx0213.cpython-314.pyc +0 -0
  877. package/lib/python3.14/encodings/__pycache__/tis_620.cpython-314.pyc +0 -0
  878. package/lib/python3.14/encodings/__pycache__/undefined.cpython-314.pyc +0 -0
  879. package/lib/python3.14/encodings/__pycache__/unicode_escape.cpython-314.pyc +0 -0
  880. package/lib/python3.14/encodings/__pycache__/utf_16.cpython-314.pyc +0 -0
  881. package/lib/python3.14/encodings/__pycache__/utf_16_be.cpython-314.pyc +0 -0
  882. package/lib/python3.14/encodings/__pycache__/utf_16_le.cpython-314.pyc +0 -0
  883. package/lib/python3.14/encodings/__pycache__/utf_32.cpython-314.pyc +0 -0
  884. package/lib/python3.14/encodings/__pycache__/utf_32_be.cpython-314.pyc +0 -0
  885. package/lib/python3.14/encodings/__pycache__/utf_32_le.cpython-314.pyc +0 -0
  886. package/lib/python3.14/encodings/__pycache__/utf_7.cpython-314.pyc +0 -0
  887. package/lib/python3.14/encodings/__pycache__/utf_8.cpython-314.pyc +0 -0
  888. package/lib/python3.14/encodings/__pycache__/utf_8_sig.cpython-314.pyc +0 -0
  889. package/lib/python3.14/encodings/__pycache__/uu_codec.cpython-314.pyc +0 -0
  890. package/lib/python3.14/encodings/__pycache__/zlib_codec.cpython-314.pyc +0 -0
  891. package/lib/python3.14/encodings/_win_cp_codecs.py +36 -0
  892. package/lib/python3.14/encodings/aliases.py +560 -0
  893. package/lib/python3.14/encodings/ascii.py +50 -0
  894. package/lib/python3.14/encodings/base64_codec.py +55 -0
  895. package/lib/python3.14/encodings/big5.py +39 -0
  896. package/lib/python3.14/encodings/big5hkscs.py +39 -0
  897. package/lib/python3.14/encodings/bz2_codec.py +78 -0
  898. package/lib/python3.14/encodings/charmap.py +69 -0
  899. package/lib/python3.14/encodings/cp037.py +307 -0
  900. package/lib/python3.14/encodings/cp1006.py +307 -0
  901. package/lib/python3.14/encodings/cp1026.py +307 -0
  902. package/lib/python3.14/encodings/cp1125.py +698 -0
  903. package/lib/python3.14/encodings/cp1140.py +307 -0
  904. package/lib/python3.14/encodings/cp1250.py +307 -0
  905. package/lib/python3.14/encodings/cp1251.py +307 -0
  906. package/lib/python3.14/encodings/cp1252.py +307 -0
  907. package/lib/python3.14/encodings/cp1253.py +307 -0
  908. package/lib/python3.14/encodings/cp1254.py +307 -0
  909. package/lib/python3.14/encodings/cp1255.py +307 -0
  910. package/lib/python3.14/encodings/cp1256.py +307 -0
  911. package/lib/python3.14/encodings/cp1257.py +307 -0
  912. package/lib/python3.14/encodings/cp1258.py +307 -0
  913. package/lib/python3.14/encodings/cp273.py +307 -0
  914. package/lib/python3.14/encodings/cp424.py +307 -0
  915. package/lib/python3.14/encodings/cp437.py +698 -0
  916. package/lib/python3.14/encodings/cp500.py +307 -0
  917. package/lib/python3.14/encodings/cp720.py +309 -0
  918. package/lib/python3.14/encodings/cp737.py +698 -0
  919. package/lib/python3.14/encodings/cp775.py +697 -0
  920. package/lib/python3.14/encodings/cp850.py +698 -0
  921. package/lib/python3.14/encodings/cp852.py +698 -0
  922. package/lib/python3.14/encodings/cp855.py +698 -0
  923. package/lib/python3.14/encodings/cp856.py +307 -0
  924. package/lib/python3.14/encodings/cp857.py +694 -0
  925. package/lib/python3.14/encodings/cp858.py +698 -0
  926. package/lib/python3.14/encodings/cp860.py +698 -0
  927. package/lib/python3.14/encodings/cp861.py +698 -0
  928. package/lib/python3.14/encodings/cp862.py +698 -0
  929. package/lib/python3.14/encodings/cp863.py +698 -0
  930. package/lib/python3.14/encodings/cp864.py +690 -0
  931. package/lib/python3.14/encodings/cp865.py +698 -0
  932. package/lib/python3.14/encodings/cp866.py +698 -0
  933. package/lib/python3.14/encodings/cp869.py +689 -0
  934. package/lib/python3.14/encodings/cp874.py +307 -0
  935. package/lib/python3.14/encodings/cp875.py +307 -0
  936. package/lib/python3.14/encodings/cp932.py +39 -0
  937. package/lib/python3.14/encodings/cp949.py +39 -0
  938. package/lib/python3.14/encodings/cp950.py +39 -0
  939. package/lib/python3.14/encodings/euc_jis_2004.py +39 -0
  940. package/lib/python3.14/encodings/euc_jisx0213.py +39 -0
  941. package/lib/python3.14/encodings/euc_jp.py +39 -0
  942. package/lib/python3.14/encodings/euc_kr.py +39 -0
  943. package/lib/python3.14/encodings/gb18030.py +39 -0
  944. package/lib/python3.14/encodings/gb2312.py +39 -0
  945. package/lib/python3.14/encodings/gbk.py +39 -0
  946. package/lib/python3.14/encodings/hex_codec.py +55 -0
  947. package/lib/python3.14/encodings/hp_roman8.py +314 -0
  948. package/lib/python3.14/encodings/hz.py +39 -0
  949. package/lib/python3.14/encodings/idna.py +387 -0
  950. package/lib/python3.14/encodings/iso2022_jp.py +39 -0
  951. package/lib/python3.14/encodings/iso2022_jp_1.py +39 -0
  952. package/lib/python3.14/encodings/iso2022_jp_2.py +39 -0
  953. package/lib/python3.14/encodings/iso2022_jp_2004.py +39 -0
  954. package/lib/python3.14/encodings/iso2022_jp_3.py +39 -0
  955. package/lib/python3.14/encodings/iso2022_jp_ext.py +39 -0
  956. package/lib/python3.14/encodings/iso2022_kr.py +39 -0
  957. package/lib/python3.14/encodings/iso8859_1.py +307 -0
  958. package/lib/python3.14/encodings/iso8859_10.py +307 -0
  959. package/lib/python3.14/encodings/iso8859_11.py +307 -0
  960. package/lib/python3.14/encodings/iso8859_13.py +307 -0
  961. package/lib/python3.14/encodings/iso8859_14.py +307 -0
  962. package/lib/python3.14/encodings/iso8859_15.py +307 -0
  963. package/lib/python3.14/encodings/iso8859_16.py +307 -0
  964. package/lib/python3.14/encodings/iso8859_2.py +307 -0
  965. package/lib/python3.14/encodings/iso8859_3.py +307 -0
  966. package/lib/python3.14/encodings/iso8859_4.py +307 -0
  967. package/lib/python3.14/encodings/iso8859_5.py +307 -0
  968. package/lib/python3.14/encodings/iso8859_6.py +307 -0
  969. package/lib/python3.14/encodings/iso8859_7.py +307 -0
  970. package/lib/python3.14/encodings/iso8859_8.py +307 -0
  971. package/lib/python3.14/encodings/iso8859_9.py +307 -0
  972. package/lib/python3.14/encodings/johab.py +39 -0
  973. package/lib/python3.14/encodings/koi8_r.py +307 -0
  974. package/lib/python3.14/encodings/koi8_t.py +308 -0
  975. package/lib/python3.14/encodings/koi8_u.py +307 -0
  976. package/lib/python3.14/encodings/kz1048.py +307 -0
  977. package/lib/python3.14/encodings/latin_1.py +50 -0
  978. package/lib/python3.14/encodings/mac_arabic.py +698 -0
  979. package/lib/python3.14/encodings/mac_croatian.py +307 -0
  980. package/lib/python3.14/encodings/mac_cyrillic.py +307 -0
  981. package/lib/python3.14/encodings/mac_farsi.py +307 -0
  982. package/lib/python3.14/encodings/mac_greek.py +307 -0
  983. package/lib/python3.14/encodings/mac_iceland.py +307 -0
  984. package/lib/python3.14/encodings/mac_latin2.py +312 -0
  985. package/lib/python3.14/encodings/mac_roman.py +307 -0
  986. package/lib/python3.14/encodings/mac_romanian.py +307 -0
  987. package/lib/python3.14/encodings/mac_turkish.py +307 -0
  988. package/lib/python3.14/encodings/mbcs.py +47 -0
  989. package/lib/python3.14/encodings/oem.py +41 -0
  990. package/lib/python3.14/encodings/palmos.py +308 -0
  991. package/lib/python3.14/encodings/ptcp154.py +312 -0
  992. package/lib/python3.14/encodings/punycode.py +253 -0
  993. package/lib/python3.14/encodings/quopri_codec.py +56 -0
  994. package/lib/python3.14/encodings/raw_unicode_escape.py +46 -0
  995. package/lib/python3.14/encodings/rot_13.py +113 -0
  996. package/lib/python3.14/encodings/shift_jis.py +39 -0
  997. package/lib/python3.14/encodings/shift_jis_2004.py +39 -0
  998. package/lib/python3.14/encodings/shift_jisx0213.py +39 -0
  999. package/lib/python3.14/encodings/tis_620.py +307 -0
  1000. package/lib/python3.14/encodings/undefined.py +49 -0
  1001. package/lib/python3.14/encodings/unicode_escape.py +46 -0
  1002. package/lib/python3.14/encodings/utf_16.py +155 -0
  1003. package/lib/python3.14/encodings/utf_16_be.py +42 -0
  1004. package/lib/python3.14/encodings/utf_16_le.py +42 -0
  1005. package/lib/python3.14/encodings/utf_32.py +150 -0
  1006. package/lib/python3.14/encodings/utf_32_be.py +37 -0
  1007. package/lib/python3.14/encodings/utf_32_le.py +37 -0
  1008. package/lib/python3.14/encodings/utf_7.py +38 -0
  1009. package/lib/python3.14/encodings/utf_8.py +42 -0
  1010. package/lib/python3.14/encodings/utf_8_sig.py +130 -0
  1011. package/lib/python3.14/encodings/uu_codec.py +103 -0
  1012. package/lib/python3.14/encodings/zlib_codec.py +77 -0
  1013. package/lib/python3.14/ensurepip/__init__.py +264 -0
  1014. package/lib/python3.14/ensurepip/__main__.py +5 -0
  1015. package/lib/python3.14/ensurepip/__pycache__/__init__.cpython-314.pyc +0 -0
  1016. package/lib/python3.14/ensurepip/__pycache__/__main__.cpython-314.pyc +0 -0
  1017. package/lib/python3.14/ensurepip/__pycache__/_uninstall.cpython-314.pyc +0 -0
  1018. package/lib/python3.14/ensurepip/_bundled/pip-25.3-py3-none-any.whl +0 -0
  1019. package/lib/python3.14/ensurepip/_uninstall.py +31 -0
  1020. package/lib/python3.14/enum.py +2167 -0
  1021. package/lib/python3.14/filecmp.py +320 -0
  1022. package/lib/python3.14/fileinput.py +442 -0
  1023. package/lib/python3.14/fnmatch.py +209 -0
  1024. package/lib/python3.14/fractions.py +1078 -0
  1025. package/lib/python3.14/ftplib.py +966 -0
  1026. package/lib/python3.14/functools.py +1165 -0
  1027. package/lib/python3.14/genericpath.py +200 -0
  1028. package/lib/python3.14/getopt.py +232 -0
  1029. package/lib/python3.14/getpass.py +256 -0
  1030. package/lib/python3.14/gettext.py +657 -0
  1031. package/lib/python3.14/glob.py +553 -0
  1032. package/lib/python3.14/graphlib.py +254 -0
  1033. package/lib/python3.14/gzip.py +717 -0
  1034. package/lib/python3.14/hashlib.py +255 -0
  1035. package/lib/python3.14/heapq.py +611 -0
  1036. package/lib/python3.14/hmac.py +268 -0
  1037. package/lib/python3.14/html/__init__.py +132 -0
  1038. package/lib/python3.14/html/__pycache__/__init__.cpython-314.pyc +0 -0
  1039. package/lib/python3.14/html/__pycache__/entities.cpython-314.pyc +0 -0
  1040. package/lib/python3.14/html/__pycache__/parser.cpython-314.pyc +0 -0
  1041. package/lib/python3.14/html/entities.py +2513 -0
  1042. package/lib/python3.14/html/parser.py +553 -0
  1043. package/lib/python3.14/http/__init__.py +213 -0
  1044. package/lib/python3.14/http/__pycache__/__init__.cpython-314.pyc +0 -0
  1045. package/lib/python3.14/http/__pycache__/client.cpython-314.pyc +0 -0
  1046. package/lib/python3.14/http/__pycache__/cookiejar.cpython-314.pyc +0 -0
  1047. package/lib/python3.14/http/__pycache__/cookies.cpython-314.pyc +0 -0
  1048. package/lib/python3.14/http/__pycache__/server.cpython-314.pyc +0 -0
  1049. package/lib/python3.14/http/client.py +1570 -0
  1050. package/lib/python3.14/http/cookiejar.py +2122 -0
  1051. package/lib/python3.14/http/cookies.py +598 -0
  1052. package/lib/python3.14/http/server.py +1441 -0
  1053. package/lib/python3.14/idlelib/CREDITS.txt +48 -0
  1054. package/lib/python3.14/idlelib/ChangeLog +1591 -0
  1055. package/lib/python3.14/idlelib/HISTORY.txt +296 -0
  1056. package/lib/python3.14/idlelib/Icons/README.txt +51 -0
  1057. package/lib/python3.14/idlelib/Icons/folder.gif +0 -0
  1058. package/lib/python3.14/idlelib/Icons/idle.ico +0 -0
  1059. package/lib/python3.14/idlelib/Icons/idle_16.gif +0 -0
  1060. package/lib/python3.14/idlelib/Icons/idle_16.png +0 -0
  1061. package/lib/python3.14/idlelib/Icons/idle_256.png +0 -0
  1062. package/lib/python3.14/idlelib/Icons/idle_32.gif +0 -0
  1063. package/lib/python3.14/idlelib/Icons/idle_32.png +0 -0
  1064. package/lib/python3.14/idlelib/Icons/idle_48.gif +0 -0
  1065. package/lib/python3.14/idlelib/Icons/idle_48.png +0 -0
  1066. package/lib/python3.14/idlelib/Icons/minusnode.gif +0 -0
  1067. package/lib/python3.14/idlelib/Icons/openfolder.gif +0 -0
  1068. package/lib/python3.14/idlelib/Icons/plusnode.gif +0 -0
  1069. package/lib/python3.14/idlelib/Icons/python.gif +0 -0
  1070. package/lib/python3.14/idlelib/Icons/tk.gif +0 -0
  1071. package/lib/python3.14/idlelib/NEWS2x.txt +660 -0
  1072. package/lib/python3.14/idlelib/News3.txt +1404 -0
  1073. package/lib/python3.14/idlelib/README.txt +290 -0
  1074. package/lib/python3.14/idlelib/TODO.txt +210 -0
  1075. package/lib/python3.14/idlelib/__init__.py +10 -0
  1076. package/lib/python3.14/idlelib/__main__.py +7 -0
  1077. package/lib/python3.14/idlelib/__pycache__/__init__.cpython-314.pyc +0 -0
  1078. package/lib/python3.14/idlelib/__pycache__/__main__.cpython-314.pyc +0 -0
  1079. package/lib/python3.14/idlelib/__pycache__/autocomplete.cpython-314.pyc +0 -0
  1080. package/lib/python3.14/idlelib/__pycache__/autocomplete_w.cpython-314.pyc +0 -0
  1081. package/lib/python3.14/idlelib/__pycache__/autoexpand.cpython-314.pyc +0 -0
  1082. package/lib/python3.14/idlelib/__pycache__/browser.cpython-314.pyc +0 -0
  1083. package/lib/python3.14/idlelib/__pycache__/calltip.cpython-314.pyc +0 -0
  1084. package/lib/python3.14/idlelib/__pycache__/calltip_w.cpython-314.pyc +0 -0
  1085. package/lib/python3.14/idlelib/__pycache__/codecontext.cpython-314.pyc +0 -0
  1086. package/lib/python3.14/idlelib/__pycache__/colorizer.cpython-314.pyc +0 -0
  1087. package/lib/python3.14/idlelib/__pycache__/config.cpython-314.pyc +0 -0
  1088. package/lib/python3.14/idlelib/__pycache__/config_key.cpython-314.pyc +0 -0
  1089. package/lib/python3.14/idlelib/__pycache__/configdialog.cpython-314.pyc +0 -0
  1090. package/lib/python3.14/idlelib/__pycache__/debugger.cpython-314.pyc +0 -0
  1091. package/lib/python3.14/idlelib/__pycache__/debugger_r.cpython-314.pyc +0 -0
  1092. package/lib/python3.14/idlelib/__pycache__/debugobj.cpython-314.pyc +0 -0
  1093. package/lib/python3.14/idlelib/__pycache__/debugobj_r.cpython-314.pyc +0 -0
  1094. package/lib/python3.14/idlelib/__pycache__/delegator.cpython-314.pyc +0 -0
  1095. package/lib/python3.14/idlelib/__pycache__/dynoption.cpython-314.pyc +0 -0
  1096. package/lib/python3.14/idlelib/__pycache__/editor.cpython-314.pyc +0 -0
  1097. package/lib/python3.14/idlelib/__pycache__/filelist.cpython-314.pyc +0 -0
  1098. package/lib/python3.14/idlelib/__pycache__/format.cpython-314.pyc +0 -0
  1099. package/lib/python3.14/idlelib/__pycache__/grep.cpython-314.pyc +0 -0
  1100. package/lib/python3.14/idlelib/__pycache__/help.cpython-314.pyc +0 -0
  1101. package/lib/python3.14/idlelib/__pycache__/help_about.cpython-314.pyc +0 -0
  1102. package/lib/python3.14/idlelib/__pycache__/history.cpython-314.pyc +0 -0
  1103. package/lib/python3.14/idlelib/__pycache__/hyperparser.cpython-314.pyc +0 -0
  1104. package/lib/python3.14/idlelib/__pycache__/idle.cpython-314.pyc +0 -0
  1105. package/lib/python3.14/idlelib/__pycache__/iomenu.cpython-314.pyc +0 -0
  1106. package/lib/python3.14/idlelib/__pycache__/macosx.cpython-314.pyc +0 -0
  1107. package/lib/python3.14/idlelib/__pycache__/mainmenu.cpython-314.pyc +0 -0
  1108. package/lib/python3.14/idlelib/__pycache__/multicall.cpython-314.pyc +0 -0
  1109. package/lib/python3.14/idlelib/__pycache__/outwin.cpython-314.pyc +0 -0
  1110. package/lib/python3.14/idlelib/__pycache__/parenmatch.cpython-314.pyc +0 -0
  1111. package/lib/python3.14/idlelib/__pycache__/pathbrowser.cpython-314.pyc +0 -0
  1112. package/lib/python3.14/idlelib/__pycache__/percolator.cpython-314.pyc +0 -0
  1113. package/lib/python3.14/idlelib/__pycache__/pyparse.cpython-314.pyc +0 -0
  1114. package/lib/python3.14/idlelib/__pycache__/pyshell.cpython-314.pyc +0 -0
  1115. package/lib/python3.14/idlelib/__pycache__/query.cpython-314.pyc +0 -0
  1116. package/lib/python3.14/idlelib/__pycache__/redirector.cpython-314.pyc +0 -0
  1117. package/lib/python3.14/idlelib/__pycache__/replace.cpython-314.pyc +0 -0
  1118. package/lib/python3.14/idlelib/__pycache__/rpc.cpython-314.pyc +0 -0
  1119. package/lib/python3.14/idlelib/__pycache__/run.cpython-314.pyc +0 -0
  1120. package/lib/python3.14/idlelib/__pycache__/runscript.cpython-314.pyc +0 -0
  1121. package/lib/python3.14/idlelib/__pycache__/scrolledlist.cpython-314.pyc +0 -0
  1122. package/lib/python3.14/idlelib/__pycache__/search.cpython-314.pyc +0 -0
  1123. package/lib/python3.14/idlelib/__pycache__/searchbase.cpython-314.pyc +0 -0
  1124. package/lib/python3.14/idlelib/__pycache__/searchengine.cpython-314.pyc +0 -0
  1125. package/lib/python3.14/idlelib/__pycache__/sidebar.cpython-314.pyc +0 -0
  1126. package/lib/python3.14/idlelib/__pycache__/squeezer.cpython-314.pyc +0 -0
  1127. package/lib/python3.14/idlelib/__pycache__/stackviewer.cpython-314.pyc +0 -0
  1128. package/lib/python3.14/idlelib/__pycache__/statusbar.cpython-314.pyc +0 -0
  1129. package/lib/python3.14/idlelib/__pycache__/textview.cpython-314.pyc +0 -0
  1130. package/lib/python3.14/idlelib/__pycache__/tooltip.cpython-314.pyc +0 -0
  1131. package/lib/python3.14/idlelib/__pycache__/tree.cpython-314.pyc +0 -0
  1132. package/lib/python3.14/idlelib/__pycache__/undo.cpython-314.pyc +0 -0
  1133. package/lib/python3.14/idlelib/__pycache__/util.cpython-314.pyc +0 -0
  1134. package/lib/python3.14/idlelib/__pycache__/window.cpython-314.pyc +0 -0
  1135. package/lib/python3.14/idlelib/__pycache__/zoomheight.cpython-314.pyc +0 -0
  1136. package/lib/python3.14/idlelib/__pycache__/zzdummy.cpython-314.pyc +0 -0
  1137. package/lib/python3.14/idlelib/autocomplete.py +228 -0
  1138. package/lib/python3.14/idlelib/autocomplete_w.py +498 -0
  1139. package/lib/python3.14/idlelib/autoexpand.py +96 -0
  1140. package/lib/python3.14/idlelib/browser.py +260 -0
  1141. package/lib/python3.14/idlelib/calltip.py +205 -0
  1142. package/lib/python3.14/idlelib/calltip_w.py +202 -0
  1143. package/lib/python3.14/idlelib/codecontext.py +270 -0
  1144. package/lib/python3.14/idlelib/colorizer.py +384 -0
  1145. package/lib/python3.14/idlelib/config-extensions.def +62 -0
  1146. package/lib/python3.14/idlelib/config-highlight.def +105 -0
  1147. package/lib/python3.14/idlelib/config-keys.def +309 -0
  1148. package/lib/python3.14/idlelib/config-main.def +93 -0
  1149. package/lib/python3.14/idlelib/config.py +917 -0
  1150. package/lib/python3.14/idlelib/config_key.py +354 -0
  1151. package/lib/python3.14/idlelib/configdialog.py +2408 -0
  1152. package/lib/python3.14/idlelib/debugger.py +602 -0
  1153. package/lib/python3.14/idlelib/debugger_r.py +390 -0
  1154. package/lib/python3.14/idlelib/debugobj.py +146 -0
  1155. package/lib/python3.14/idlelib/debugobj_r.py +41 -0
  1156. package/lib/python3.14/idlelib/delegator.py +34 -0
  1157. package/lib/python3.14/idlelib/dynoption.py +57 -0
  1158. package/lib/python3.14/idlelib/editor.py +1734 -0
  1159. package/lib/python3.14/idlelib/extend.txt +83 -0
  1160. package/lib/python3.14/idlelib/filelist.py +132 -0
  1161. package/lib/python3.14/idlelib/format.py +426 -0
  1162. package/lib/python3.14/idlelib/grep.py +223 -0
  1163. package/lib/python3.14/idlelib/help.html +851 -0
  1164. package/lib/python3.14/idlelib/help.py +343 -0
  1165. package/lib/python3.14/idlelib/help_about.py +211 -0
  1166. package/lib/python3.14/idlelib/history.py +106 -0
  1167. package/lib/python3.14/idlelib/hyperparser.py +312 -0
  1168. package/lib/python3.14/idlelib/idle.bat +4 -0
  1169. package/lib/python3.14/idlelib/idle.py +14 -0
  1170. package/lib/python3.14/idlelib/idle.pyw +17 -0
  1171. package/lib/python3.14/idlelib/iomenu.py +441 -0
  1172. package/lib/python3.14/idlelib/macosx.py +278 -0
  1173. package/lib/python3.14/idlelib/mainmenu.py +126 -0
  1174. package/lib/python3.14/idlelib/multicall.py +451 -0
  1175. package/lib/python3.14/idlelib/outwin.py +188 -0
  1176. package/lib/python3.14/idlelib/parenmatch.py +183 -0
  1177. package/lib/python3.14/idlelib/pathbrowser.py +107 -0
  1178. package/lib/python3.14/idlelib/percolator.py +120 -0
  1179. package/lib/python3.14/idlelib/pyparse.py +589 -0
  1180. package/lib/python3.14/idlelib/pyshell.py +1699 -0
  1181. package/lib/python3.14/idlelib/query.py +392 -0
  1182. package/lib/python3.14/idlelib/redirector.py +174 -0
  1183. package/lib/python3.14/idlelib/replace.py +299 -0
  1184. package/lib/python3.14/idlelib/rpc.py +635 -0
  1185. package/lib/python3.14/idlelib/run.py +653 -0
  1186. package/lib/python3.14/idlelib/runscript.py +213 -0
  1187. package/lib/python3.14/idlelib/scrolledlist.py +151 -0
  1188. package/lib/python3.14/idlelib/search.py +165 -0
  1189. package/lib/python3.14/idlelib/searchbase.py +210 -0
  1190. package/lib/python3.14/idlelib/searchengine.py +234 -0
  1191. package/lib/python3.14/idlelib/sidebar.py +543 -0
  1192. package/lib/python3.14/idlelib/squeezer.py +345 -0
  1193. package/lib/python3.14/idlelib/stackviewer.py +134 -0
  1194. package/lib/python3.14/idlelib/statusbar.py +52 -0
  1195. package/lib/python3.14/idlelib/textview.py +193 -0
  1196. package/lib/python3.14/idlelib/tooltip.py +190 -0
  1197. package/lib/python3.14/idlelib/tree.py +509 -0
  1198. package/lib/python3.14/idlelib/undo.py +367 -0
  1199. package/lib/python3.14/idlelib/util.py +37 -0
  1200. package/lib/python3.14/idlelib/window.py +98 -0
  1201. package/lib/python3.14/idlelib/zoomheight.py +124 -0
  1202. package/lib/python3.14/idlelib/zzdummy.py +73 -0
  1203. package/lib/python3.14/imaplib.py +1967 -0
  1204. package/lib/python3.14/importlib/__init__.py +136 -0
  1205. package/lib/python3.14/importlib/__pycache__/__init__.cpython-314.pyc +0 -0
  1206. package/lib/python3.14/importlib/__pycache__/_abc.cpython-314.pyc +0 -0
  1207. package/lib/python3.14/importlib/__pycache__/_bootstrap.cpython-314.pyc +0 -0
  1208. package/lib/python3.14/importlib/__pycache__/_bootstrap_external.cpython-314.pyc +0 -0
  1209. package/lib/python3.14/importlib/__pycache__/abc.cpython-314.pyc +0 -0
  1210. package/lib/python3.14/importlib/__pycache__/machinery.cpython-314.pyc +0 -0
  1211. package/lib/python3.14/importlib/__pycache__/readers.cpython-314.pyc +0 -0
  1212. package/lib/python3.14/importlib/__pycache__/simple.cpython-314.pyc +0 -0
  1213. package/lib/python3.14/importlib/__pycache__/util.cpython-314.pyc +0 -0
  1214. package/lib/python3.14/importlib/_abc.py +39 -0
  1215. package/lib/python3.14/importlib/_bootstrap.py +1562 -0
  1216. package/lib/python3.14/importlib/_bootstrap_external.py +1562 -0
  1217. package/lib/python3.14/importlib/abc.py +234 -0
  1218. package/lib/python3.14/importlib/machinery.py +50 -0
  1219. package/lib/python3.14/importlib/metadata/__init__.py +1093 -0
  1220. package/lib/python3.14/importlib/metadata/__pycache__/__init__.cpython-314.pyc +0 -0
  1221. package/lib/python3.14/importlib/metadata/__pycache__/_adapters.cpython-314.pyc +0 -0
  1222. package/lib/python3.14/importlib/metadata/__pycache__/_collections.cpython-314.pyc +0 -0
  1223. package/lib/python3.14/importlib/metadata/__pycache__/_functools.cpython-314.pyc +0 -0
  1224. package/lib/python3.14/importlib/metadata/__pycache__/_itertools.cpython-314.pyc +0 -0
  1225. package/lib/python3.14/importlib/metadata/__pycache__/_meta.cpython-314.pyc +0 -0
  1226. package/lib/python3.14/importlib/metadata/__pycache__/_text.cpython-314.pyc +0 -0
  1227. package/lib/python3.14/importlib/metadata/__pycache__/diagnose.cpython-314.pyc +0 -0
  1228. package/lib/python3.14/importlib/metadata/_adapters.py +89 -0
  1229. package/lib/python3.14/importlib/metadata/_collections.py +30 -0
  1230. package/lib/python3.14/importlib/metadata/_functools.py +104 -0
  1231. package/lib/python3.14/importlib/metadata/_itertools.py +73 -0
  1232. package/lib/python3.14/importlib/metadata/_meta.py +67 -0
  1233. package/lib/python3.14/importlib/metadata/_text.py +99 -0
  1234. package/lib/python3.14/importlib/metadata/diagnose.py +21 -0
  1235. package/lib/python3.14/importlib/readers.py +12 -0
  1236. package/lib/python3.14/importlib/resources/__init__.py +43 -0
  1237. package/lib/python3.14/importlib/resources/__pycache__/__init__.cpython-314.pyc +0 -0
  1238. package/lib/python3.14/importlib/resources/__pycache__/_adapters.cpython-314.pyc +0 -0
  1239. package/lib/python3.14/importlib/resources/__pycache__/_common.cpython-314.pyc +0 -0
  1240. package/lib/python3.14/importlib/resources/__pycache__/_functional.cpython-314.pyc +0 -0
  1241. package/lib/python3.14/importlib/resources/__pycache__/_itertools.cpython-314.pyc +0 -0
  1242. package/lib/python3.14/importlib/resources/__pycache__/abc.cpython-314.pyc +0 -0
  1243. package/lib/python3.14/importlib/resources/__pycache__/readers.cpython-314.pyc +0 -0
  1244. package/lib/python3.14/importlib/resources/__pycache__/simple.cpython-314.pyc +0 -0
  1245. package/lib/python3.14/importlib/resources/_adapters.py +168 -0
  1246. package/lib/python3.14/importlib/resources/_common.py +211 -0
  1247. package/lib/python3.14/importlib/resources/_functional.py +81 -0
  1248. package/lib/python3.14/importlib/resources/_itertools.py +38 -0
  1249. package/lib/python3.14/importlib/resources/abc.py +173 -0
  1250. package/lib/python3.14/importlib/resources/readers.py +203 -0
  1251. package/lib/python3.14/importlib/resources/simple.py +106 -0
  1252. package/lib/python3.14/importlib/simple.py +14 -0
  1253. package/lib/python3.14/importlib/util.py +279 -0
  1254. package/lib/python3.14/inspect.py +3407 -0
  1255. package/lib/python3.14/io.py +150 -0
  1256. package/lib/python3.14/ipaddress.py +2417 -0
  1257. package/lib/python3.14/json/__init__.py +365 -0
  1258. package/lib/python3.14/json/__main__.py +20 -0
  1259. package/lib/python3.14/json/__pycache__/__init__.cpython-314.pyc +0 -0
  1260. package/lib/python3.14/json/__pycache__/__main__.cpython-314.pyc +0 -0
  1261. package/lib/python3.14/json/__pycache__/decoder.cpython-314.pyc +0 -0
  1262. package/lib/python3.14/json/__pycache__/encoder.cpython-314.pyc +0 -0
  1263. package/lib/python3.14/json/__pycache__/scanner.cpython-314.pyc +0 -0
  1264. package/lib/python3.14/json/__pycache__/tool.cpython-314.pyc +0 -0
  1265. package/lib/python3.14/json/decoder.py +364 -0
  1266. package/lib/python3.14/json/encoder.py +461 -0
  1267. package/lib/python3.14/json/scanner.py +73 -0
  1268. package/lib/python3.14/json/tool.py +121 -0
  1269. package/lib/python3.14/keyword.py +64 -0
  1270. package/lib/python3.14/linecache.py +251 -0
  1271. package/lib/python3.14/locale.py +1783 -0
  1272. package/lib/python3.14/logging/__init__.py +2326 -0
  1273. package/lib/python3.14/logging/__pycache__/__init__.cpython-314.pyc +0 -0
  1274. package/lib/python3.14/logging/__pycache__/config.cpython-314.pyc +0 -0
  1275. package/lib/python3.14/logging/__pycache__/handlers.cpython-314.pyc +0 -0
  1276. package/lib/python3.14/logging/config.py +1077 -0
  1277. package/lib/python3.14/logging/handlers.py +1641 -0
  1278. package/lib/python3.14/lzma.py +364 -0
  1279. package/lib/python3.14/mailbox.py +2223 -0
  1280. package/lib/python3.14/mimetypes.py +747 -0
  1281. package/lib/python3.14/modulefinder.py +671 -0
  1282. package/lib/python3.14/multiprocessing/__init__.py +37 -0
  1283. package/lib/python3.14/multiprocessing/__pycache__/__init__.cpython-314.pyc +0 -0
  1284. package/lib/python3.14/multiprocessing/__pycache__/connection.cpython-314.pyc +0 -0
  1285. package/lib/python3.14/multiprocessing/__pycache__/context.cpython-314.pyc +0 -0
  1286. package/lib/python3.14/multiprocessing/__pycache__/forkserver.cpython-314.pyc +0 -0
  1287. package/lib/python3.14/multiprocessing/__pycache__/heap.cpython-314.pyc +0 -0
  1288. package/lib/python3.14/multiprocessing/__pycache__/managers.cpython-314.pyc +0 -0
  1289. package/lib/python3.14/multiprocessing/__pycache__/pool.cpython-314.pyc +0 -0
  1290. package/lib/python3.14/multiprocessing/__pycache__/popen_fork.cpython-314.pyc +0 -0
  1291. package/lib/python3.14/multiprocessing/__pycache__/popen_forkserver.cpython-314.pyc +0 -0
  1292. package/lib/python3.14/multiprocessing/__pycache__/popen_spawn_posix.cpython-314.pyc +0 -0
  1293. package/lib/python3.14/multiprocessing/__pycache__/popen_spawn_win32.cpython-314.pyc +0 -0
  1294. package/lib/python3.14/multiprocessing/__pycache__/process.cpython-314.pyc +0 -0
  1295. package/lib/python3.14/multiprocessing/__pycache__/queues.cpython-314.pyc +0 -0
  1296. package/lib/python3.14/multiprocessing/__pycache__/reduction.cpython-314.pyc +0 -0
  1297. package/lib/python3.14/multiprocessing/__pycache__/resource_sharer.cpython-314.pyc +0 -0
  1298. package/lib/python3.14/multiprocessing/__pycache__/resource_tracker.cpython-314.pyc +0 -0
  1299. package/lib/python3.14/multiprocessing/__pycache__/shared_memory.cpython-314.pyc +0 -0
  1300. package/lib/python3.14/multiprocessing/__pycache__/sharedctypes.cpython-314.pyc +0 -0
  1301. package/lib/python3.14/multiprocessing/__pycache__/spawn.cpython-314.pyc +0 -0
  1302. package/lib/python3.14/multiprocessing/__pycache__/synchronize.cpython-314.pyc +0 -0
  1303. package/lib/python3.14/multiprocessing/__pycache__/util.cpython-314.pyc +0 -0
  1304. package/lib/python3.14/multiprocessing/connection.py +1207 -0
  1305. package/lib/python3.14/multiprocessing/context.py +377 -0
  1306. package/lib/python3.14/multiprocessing/dummy/__init__.py +126 -0
  1307. package/lib/python3.14/multiprocessing/dummy/__pycache__/__init__.cpython-314.pyc +0 -0
  1308. package/lib/python3.14/multiprocessing/dummy/__pycache__/connection.cpython-314.pyc +0 -0
  1309. package/lib/python3.14/multiprocessing/dummy/connection.py +75 -0
  1310. package/lib/python3.14/multiprocessing/forkserver.py +416 -0
  1311. package/lib/python3.14/multiprocessing/heap.py +337 -0
  1312. package/lib/python3.14/multiprocessing/managers.py +1438 -0
  1313. package/lib/python3.14/multiprocessing/pool.py +957 -0
  1314. package/lib/python3.14/multiprocessing/popen_fork.py +90 -0
  1315. package/lib/python3.14/multiprocessing/popen_forkserver.py +74 -0
  1316. package/lib/python3.14/multiprocessing/popen_spawn_posix.py +76 -0
  1317. package/lib/python3.14/multiprocessing/popen_spawn_win32.py +147 -0
  1318. package/lib/python3.14/multiprocessing/process.py +443 -0
  1319. package/lib/python3.14/multiprocessing/queues.py +399 -0
  1320. package/lib/python3.14/multiprocessing/reduction.py +281 -0
  1321. package/lib/python3.14/multiprocessing/resource_sharer.py +154 -0
  1322. package/lib/python3.14/multiprocessing/resource_tracker.py +416 -0
  1323. package/lib/python3.14/multiprocessing/shared_memory.py +544 -0
  1324. package/lib/python3.14/multiprocessing/sharedctypes.py +240 -0
  1325. package/lib/python3.14/multiprocessing/spawn.py +307 -0
  1326. package/lib/python3.14/multiprocessing/synchronize.py +411 -0
  1327. package/lib/python3.14/multiprocessing/util.py +560 -0
  1328. package/lib/python3.14/netrc.py +199 -0
  1329. package/lib/python3.14/ntpath.py +870 -0
  1330. package/lib/python3.14/nturl2path.py +74 -0
  1331. package/lib/python3.14/numbers.py +427 -0
  1332. package/lib/python3.14/opcode.py +122 -0
  1333. package/lib/python3.14/operator.py +475 -0
  1334. package/lib/python3.14/optparse.py +1671 -0
  1335. package/lib/python3.14/os.py +1191 -0
  1336. package/lib/python3.14/pathlib/__init__.py +1307 -0
  1337. package/lib/python3.14/pathlib/__pycache__/__init__.cpython-314.pyc +0 -0
  1338. package/lib/python3.14/pathlib/__pycache__/_local.cpython-314.pyc +0 -0
  1339. package/lib/python3.14/pathlib/__pycache__/_os.cpython-314.pyc +0 -0
  1340. package/lib/python3.14/pathlib/__pycache__/types.cpython-314.pyc +0 -0
  1341. package/lib/python3.14/pathlib/_local.py +12 -0
  1342. package/lib/python3.14/pathlib/_os.py +530 -0
  1343. package/lib/python3.14/pathlib/types.py +430 -0
  1344. package/lib/python3.14/pdb.py +3660 -0
  1345. package/lib/python3.14/pickle.py +1931 -0
  1346. package/lib/python3.14/pickletools.py +2887 -0
  1347. package/lib/python3.14/pkgutil.py +474 -0
  1348. package/lib/python3.14/platform.py +1515 -0
  1349. package/lib/python3.14/plistlib.py +948 -0
  1350. package/lib/python3.14/poplib.py +477 -0
  1351. package/lib/python3.14/posixpath.py +592 -0
  1352. package/lib/python3.14/pprint.py +675 -0
  1353. package/lib/python3.14/profile.py +615 -0
  1354. package/lib/python3.14/pstats.py +777 -0
  1355. package/lib/python3.14/pty.py +182 -0
  1356. package/lib/python3.14/py_compile.py +212 -0
  1357. package/lib/python3.14/pyclbr.py +314 -0
  1358. package/lib/python3.14/pydoc.py +2876 -0
  1359. package/lib/python3.14/pydoc_data/__init__.py +0 -0
  1360. package/lib/python3.14/pydoc_data/__pycache__/__init__.cpython-314.pyc +0 -0
  1361. package/lib/python3.14/pydoc_data/__pycache__/topics.cpython-314.pyc +0 -0
  1362. package/lib/python3.14/pydoc_data/_pydoc.css +112 -0
  1363. package/lib/python3.14/pydoc_data/topics.py +14103 -0
  1364. package/lib/python3.14/queue.py +383 -0
  1365. package/lib/python3.14/quopri.py +235 -0
  1366. package/lib/python3.14/random.py +1078 -0
  1367. package/lib/python3.14/re/__init__.py +428 -0
  1368. package/lib/python3.14/re/__pycache__/__init__.cpython-314.pyc +0 -0
  1369. package/lib/python3.14/re/__pycache__/_casefix.cpython-314.pyc +0 -0
  1370. package/lib/python3.14/re/__pycache__/_compiler.cpython-314.pyc +0 -0
  1371. package/lib/python3.14/re/__pycache__/_constants.cpython-314.pyc +0 -0
  1372. package/lib/python3.14/re/__pycache__/_parser.cpython-314.pyc +0 -0
  1373. package/lib/python3.14/re/_casefix.py +106 -0
  1374. package/lib/python3.14/re/_compiler.py +782 -0
  1375. package/lib/python3.14/re/_constants.py +224 -0
  1376. package/lib/python3.14/re/_parser.py +1066 -0
  1377. package/lib/python3.14/reprlib.py +230 -0
  1378. package/lib/python3.14/rlcompleter.py +221 -0
  1379. package/lib/python3.14/runpy.py +319 -0
  1380. package/lib/python3.14/sched.py +167 -0
  1381. package/lib/python3.14/secrets.py +71 -0
  1382. package/lib/python3.14/selectors.py +603 -0
  1383. package/lib/python3.14/shelve.py +250 -0
  1384. package/lib/python3.14/shlex.py +351 -0
  1385. package/lib/python3.14/shutil.py +1667 -0
  1386. package/lib/python3.14/signal.py +94 -0
  1387. package/lib/python3.14/site-packages/README.txt +2 -0
  1388. package/lib/python3.14/site-packages/pip/__init__.py +13 -0
  1389. package/lib/python3.14/site-packages/pip/__main__.py +24 -0
  1390. package/lib/python3.14/site-packages/pip/__pip-runner__.py +50 -0
  1391. package/lib/python3.14/site-packages/pip/__pycache__/__init__.cpython-314.pyc +0 -0
  1392. package/lib/python3.14/site-packages/pip/__pycache__/__main__.cpython-314.pyc +0 -0
  1393. package/lib/python3.14/site-packages/pip/__pycache__/__pip-runner__.cpython-314.pyc +0 -0
  1394. package/lib/python3.14/site-packages/pip/_internal/__init__.py +18 -0
  1395. package/lib/python3.14/site-packages/pip/_internal/__pycache__/__init__.cpython-314.pyc +0 -0
  1396. package/lib/python3.14/site-packages/pip/_internal/__pycache__/build_env.cpython-314.pyc +0 -0
  1397. package/lib/python3.14/site-packages/pip/_internal/__pycache__/cache.cpython-314.pyc +0 -0
  1398. package/lib/python3.14/site-packages/pip/_internal/__pycache__/configuration.cpython-314.pyc +0 -0
  1399. package/lib/python3.14/site-packages/pip/_internal/__pycache__/exceptions.cpython-314.pyc +0 -0
  1400. package/lib/python3.14/site-packages/pip/_internal/__pycache__/main.cpython-314.pyc +0 -0
  1401. package/lib/python3.14/site-packages/pip/_internal/__pycache__/pyproject.cpython-314.pyc +0 -0
  1402. package/lib/python3.14/site-packages/pip/_internal/__pycache__/self_outdated_check.cpython-314.pyc +0 -0
  1403. package/lib/python3.14/site-packages/pip/_internal/__pycache__/wheel_builder.cpython-314.pyc +0 -0
  1404. package/lib/python3.14/site-packages/pip/_internal/build_env.py +417 -0
  1405. package/lib/python3.14/site-packages/pip/_internal/cache.py +291 -0
  1406. package/lib/python3.14/site-packages/pip/_internal/cli/__init__.py +3 -0
  1407. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/__init__.cpython-314.pyc +0 -0
  1408. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/autocompletion.cpython-314.pyc +0 -0
  1409. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/base_command.cpython-314.pyc +0 -0
  1410. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/cmdoptions.cpython-314.pyc +0 -0
  1411. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/command_context.cpython-314.pyc +0 -0
  1412. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/index_command.cpython-314.pyc +0 -0
  1413. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/main.cpython-314.pyc +0 -0
  1414. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/main_parser.cpython-314.pyc +0 -0
  1415. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/parser.cpython-314.pyc +0 -0
  1416. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/progress_bars.cpython-314.pyc +0 -0
  1417. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/req_command.cpython-314.pyc +0 -0
  1418. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/spinners.cpython-314.pyc +0 -0
  1419. package/lib/python3.14/site-packages/pip/_internal/cli/__pycache__/status_codes.cpython-314.pyc +0 -0
  1420. package/lib/python3.14/site-packages/pip/_internal/cli/autocompletion.py +184 -0
  1421. package/lib/python3.14/site-packages/pip/_internal/cli/base_command.py +244 -0
  1422. package/lib/python3.14/site-packages/pip/_internal/cli/cmdoptions.py +1110 -0
  1423. package/lib/python3.14/site-packages/pip/_internal/cli/command_context.py +28 -0
  1424. package/lib/python3.14/site-packages/pip/_internal/cli/index_command.py +175 -0
  1425. package/lib/python3.14/site-packages/pip/_internal/cli/main.py +80 -0
  1426. package/lib/python3.14/site-packages/pip/_internal/cli/main_parser.py +134 -0
  1427. package/lib/python3.14/site-packages/pip/_internal/cli/parser.py +298 -0
  1428. package/lib/python3.14/site-packages/pip/_internal/cli/progress_bars.py +151 -0
  1429. package/lib/python3.14/site-packages/pip/_internal/cli/req_command.py +371 -0
  1430. package/lib/python3.14/site-packages/pip/_internal/cli/spinners.py +235 -0
  1431. package/lib/python3.14/site-packages/pip/_internal/cli/status_codes.py +6 -0
  1432. package/lib/python3.14/site-packages/pip/_internal/commands/__init__.py +139 -0
  1433. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/__init__.cpython-314.pyc +0 -0
  1434. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/cache.cpython-314.pyc +0 -0
  1435. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/check.cpython-314.pyc +0 -0
  1436. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/completion.cpython-314.pyc +0 -0
  1437. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/configuration.cpython-314.pyc +0 -0
  1438. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/debug.cpython-314.pyc +0 -0
  1439. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/download.cpython-314.pyc +0 -0
  1440. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/freeze.cpython-314.pyc +0 -0
  1441. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/hash.cpython-314.pyc +0 -0
  1442. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/help.cpython-314.pyc +0 -0
  1443. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/index.cpython-314.pyc +0 -0
  1444. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/inspect.cpython-314.pyc +0 -0
  1445. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/install.cpython-314.pyc +0 -0
  1446. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/list.cpython-314.pyc +0 -0
  1447. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/lock.cpython-314.pyc +0 -0
  1448. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/search.cpython-314.pyc +0 -0
  1449. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/show.cpython-314.pyc +0 -0
  1450. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/uninstall.cpython-314.pyc +0 -0
  1451. package/lib/python3.14/site-packages/pip/_internal/commands/__pycache__/wheel.cpython-314.pyc +0 -0
  1452. package/lib/python3.14/site-packages/pip/_internal/commands/cache.py +231 -0
  1453. package/lib/python3.14/site-packages/pip/_internal/commands/check.py +66 -0
  1454. package/lib/python3.14/site-packages/pip/_internal/commands/completion.py +135 -0
  1455. package/lib/python3.14/site-packages/pip/_internal/commands/configuration.py +288 -0
  1456. package/lib/python3.14/site-packages/pip/_internal/commands/debug.py +203 -0
  1457. package/lib/python3.14/site-packages/pip/_internal/commands/download.py +142 -0
  1458. package/lib/python3.14/site-packages/pip/_internal/commands/freeze.py +107 -0
  1459. package/lib/python3.14/site-packages/pip/_internal/commands/hash.py +58 -0
  1460. package/lib/python3.14/site-packages/pip/_internal/commands/help.py +40 -0
  1461. package/lib/python3.14/site-packages/pip/_internal/commands/index.py +159 -0
  1462. package/lib/python3.14/site-packages/pip/_internal/commands/inspect.py +92 -0
  1463. package/lib/python3.14/site-packages/pip/_internal/commands/install.py +803 -0
  1464. package/lib/python3.14/site-packages/pip/_internal/commands/list.py +400 -0
  1465. package/lib/python3.14/site-packages/pip/_internal/commands/lock.py +167 -0
  1466. package/lib/python3.14/site-packages/pip/_internal/commands/search.py +178 -0
  1467. package/lib/python3.14/site-packages/pip/_internal/commands/show.py +231 -0
  1468. package/lib/python3.14/site-packages/pip/_internal/commands/uninstall.py +113 -0
  1469. package/lib/python3.14/site-packages/pip/_internal/commands/wheel.py +176 -0
  1470. package/lib/python3.14/site-packages/pip/_internal/configuration.py +396 -0
  1471. package/lib/python3.14/site-packages/pip/_internal/distributions/__init__.py +21 -0
  1472. package/lib/python3.14/site-packages/pip/_internal/distributions/__pycache__/__init__.cpython-314.pyc +0 -0
  1473. package/lib/python3.14/site-packages/pip/_internal/distributions/__pycache__/base.cpython-314.pyc +0 -0
  1474. package/lib/python3.14/site-packages/pip/_internal/distributions/__pycache__/installed.cpython-314.pyc +0 -0
  1475. package/lib/python3.14/site-packages/pip/_internal/distributions/__pycache__/sdist.cpython-314.pyc +0 -0
  1476. package/lib/python3.14/site-packages/pip/_internal/distributions/__pycache__/wheel.cpython-314.pyc +0 -0
  1477. package/lib/python3.14/site-packages/pip/_internal/distributions/base.py +55 -0
  1478. package/lib/python3.14/site-packages/pip/_internal/distributions/installed.py +33 -0
  1479. package/lib/python3.14/site-packages/pip/_internal/distributions/sdist.py +164 -0
  1480. package/lib/python3.14/site-packages/pip/_internal/distributions/wheel.py +44 -0
  1481. package/lib/python3.14/site-packages/pip/_internal/exceptions.py +898 -0
  1482. package/lib/python3.14/site-packages/pip/_internal/index/__init__.py +1 -0
  1483. package/lib/python3.14/site-packages/pip/_internal/index/__pycache__/__init__.cpython-314.pyc +0 -0
  1484. package/lib/python3.14/site-packages/pip/_internal/index/__pycache__/collector.cpython-314.pyc +0 -0
  1485. package/lib/python3.14/site-packages/pip/_internal/index/__pycache__/package_finder.cpython-314.pyc +0 -0
  1486. package/lib/python3.14/site-packages/pip/_internal/index/__pycache__/sources.cpython-314.pyc +0 -0
  1487. package/lib/python3.14/site-packages/pip/_internal/index/collector.py +489 -0
  1488. package/lib/python3.14/site-packages/pip/_internal/index/package_finder.py +1059 -0
  1489. package/lib/python3.14/site-packages/pip/_internal/index/sources.py +287 -0
  1490. package/lib/python3.14/site-packages/pip/_internal/locations/__init__.py +441 -0
  1491. package/lib/python3.14/site-packages/pip/_internal/locations/__pycache__/__init__.cpython-314.pyc +0 -0
  1492. package/lib/python3.14/site-packages/pip/_internal/locations/__pycache__/_distutils.cpython-314.pyc +0 -0
  1493. package/lib/python3.14/site-packages/pip/_internal/locations/__pycache__/_sysconfig.cpython-314.pyc +0 -0
  1494. package/lib/python3.14/site-packages/pip/_internal/locations/__pycache__/base.cpython-314.pyc +0 -0
  1495. package/lib/python3.14/site-packages/pip/_internal/locations/_distutils.py +173 -0
  1496. package/lib/python3.14/site-packages/pip/_internal/locations/_sysconfig.py +215 -0
  1497. package/lib/python3.14/site-packages/pip/_internal/locations/base.py +82 -0
  1498. package/lib/python3.14/site-packages/pip/_internal/main.py +12 -0
  1499. package/lib/python3.14/site-packages/pip/_internal/metadata/__init__.py +169 -0
  1500. package/lib/python3.14/site-packages/pip/_internal/metadata/__pycache__/__init__.cpython-314.pyc +0 -0
  1501. package/lib/python3.14/site-packages/pip/_internal/metadata/__pycache__/_json.cpython-314.pyc +0 -0
  1502. package/lib/python3.14/site-packages/pip/_internal/metadata/__pycache__/base.cpython-314.pyc +0 -0
  1503. package/lib/python3.14/site-packages/pip/_internal/metadata/__pycache__/pkg_resources.cpython-314.pyc +0 -0
  1504. package/lib/python3.14/site-packages/pip/_internal/metadata/_json.py +87 -0
  1505. package/lib/python3.14/site-packages/pip/_internal/metadata/base.py +685 -0
  1506. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/__init__.py +6 -0
  1507. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/__pycache__/__init__.cpython-314.pyc +0 -0
  1508. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/__pycache__/_compat.cpython-314.pyc +0 -0
  1509. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/__pycache__/_dists.cpython-314.pyc +0 -0
  1510. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/__pycache__/_envs.cpython-314.pyc +0 -0
  1511. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/_compat.py +87 -0
  1512. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/_dists.py +229 -0
  1513. package/lib/python3.14/site-packages/pip/_internal/metadata/importlib/_envs.py +143 -0
  1514. package/lib/python3.14/site-packages/pip/_internal/metadata/pkg_resources.py +298 -0
  1515. package/lib/python3.14/site-packages/pip/_internal/models/__init__.py +1 -0
  1516. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/__init__.cpython-314.pyc +0 -0
  1517. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/candidate.cpython-314.pyc +0 -0
  1518. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/direct_url.cpython-314.pyc +0 -0
  1519. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/format_control.cpython-314.pyc +0 -0
  1520. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/index.cpython-314.pyc +0 -0
  1521. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/installation_report.cpython-314.pyc +0 -0
  1522. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/link.cpython-314.pyc +0 -0
  1523. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/pylock.cpython-314.pyc +0 -0
  1524. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/scheme.cpython-314.pyc +0 -0
  1525. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/search_scope.cpython-314.pyc +0 -0
  1526. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/selection_prefs.cpython-314.pyc +0 -0
  1527. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/target_python.cpython-314.pyc +0 -0
  1528. package/lib/python3.14/site-packages/pip/_internal/models/__pycache__/wheel.cpython-314.pyc +0 -0
  1529. package/lib/python3.14/site-packages/pip/_internal/models/candidate.py +25 -0
  1530. package/lib/python3.14/site-packages/pip/_internal/models/direct_url.py +227 -0
  1531. package/lib/python3.14/site-packages/pip/_internal/models/format_control.py +78 -0
  1532. package/lib/python3.14/site-packages/pip/_internal/models/index.py +28 -0
  1533. package/lib/python3.14/site-packages/pip/_internal/models/installation_report.py +57 -0
  1534. package/lib/python3.14/site-packages/pip/_internal/models/link.py +613 -0
  1535. package/lib/python3.14/site-packages/pip/_internal/models/pylock.py +188 -0
  1536. package/lib/python3.14/site-packages/pip/_internal/models/scheme.py +25 -0
  1537. package/lib/python3.14/site-packages/pip/_internal/models/search_scope.py +126 -0
  1538. package/lib/python3.14/site-packages/pip/_internal/models/selection_prefs.py +53 -0
  1539. package/lib/python3.14/site-packages/pip/_internal/models/target_python.py +122 -0
  1540. package/lib/python3.14/site-packages/pip/_internal/models/wheel.py +80 -0
  1541. package/lib/python3.14/site-packages/pip/_internal/network/__init__.py +1 -0
  1542. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/__init__.cpython-314.pyc +0 -0
  1543. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/auth.cpython-314.pyc +0 -0
  1544. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/cache.cpython-314.pyc +0 -0
  1545. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/download.cpython-314.pyc +0 -0
  1546. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/lazy_wheel.cpython-314.pyc +0 -0
  1547. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/session.cpython-314.pyc +0 -0
  1548. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/utils.cpython-314.pyc +0 -0
  1549. package/lib/python3.14/site-packages/pip/_internal/network/__pycache__/xmlrpc.cpython-314.pyc +0 -0
  1550. package/lib/python3.14/site-packages/pip/_internal/network/auth.py +564 -0
  1551. package/lib/python3.14/site-packages/pip/_internal/network/cache.py +128 -0
  1552. package/lib/python3.14/site-packages/pip/_internal/network/download.py +342 -0
  1553. package/lib/python3.14/site-packages/pip/_internal/network/lazy_wheel.py +215 -0
  1554. package/lib/python3.14/site-packages/pip/_internal/network/session.py +528 -0
  1555. package/lib/python3.14/site-packages/pip/_internal/network/utils.py +98 -0
  1556. package/lib/python3.14/site-packages/pip/_internal/network/xmlrpc.py +61 -0
  1557. package/lib/python3.14/site-packages/pip/_internal/operations/__init__.py +0 -0
  1558. package/lib/python3.14/site-packages/pip/_internal/operations/__pycache__/__init__.cpython-314.pyc +0 -0
  1559. package/lib/python3.14/site-packages/pip/_internal/operations/__pycache__/check.cpython-314.pyc +0 -0
  1560. package/lib/python3.14/site-packages/pip/_internal/operations/__pycache__/freeze.cpython-314.pyc +0 -0
  1561. package/lib/python3.14/site-packages/pip/_internal/operations/__pycache__/prepare.cpython-314.pyc +0 -0
  1562. package/lib/python3.14/site-packages/pip/_internal/operations/build/__init__.py +0 -0
  1563. package/lib/python3.14/site-packages/pip/_internal/operations/build/__pycache__/__init__.cpython-314.pyc +0 -0
  1564. package/lib/python3.14/site-packages/pip/_internal/operations/build/__pycache__/build_tracker.cpython-314.pyc +0 -0
  1565. package/lib/python3.14/site-packages/pip/_internal/operations/build/__pycache__/metadata.cpython-314.pyc +0 -0
  1566. package/lib/python3.14/site-packages/pip/_internal/operations/build/__pycache__/metadata_editable.cpython-314.pyc +0 -0
  1567. package/lib/python3.14/site-packages/pip/_internal/operations/build/__pycache__/wheel.cpython-314.pyc +0 -0
  1568. package/lib/python3.14/site-packages/pip/_internal/operations/build/__pycache__/wheel_editable.cpython-314.pyc +0 -0
  1569. package/lib/python3.14/site-packages/pip/_internal/operations/build/build_tracker.py +140 -0
  1570. package/lib/python3.14/site-packages/pip/_internal/operations/build/metadata.py +38 -0
  1571. package/lib/python3.14/site-packages/pip/_internal/operations/build/metadata_editable.py +41 -0
  1572. package/lib/python3.14/site-packages/pip/_internal/operations/build/wheel.py +38 -0
  1573. package/lib/python3.14/site-packages/pip/_internal/operations/build/wheel_editable.py +47 -0
  1574. package/lib/python3.14/site-packages/pip/_internal/operations/check.py +175 -0
  1575. package/lib/python3.14/site-packages/pip/_internal/operations/freeze.py +259 -0
  1576. package/lib/python3.14/site-packages/pip/_internal/operations/install/__init__.py +1 -0
  1577. package/lib/python3.14/site-packages/pip/_internal/operations/install/__pycache__/__init__.cpython-314.pyc +0 -0
  1578. package/lib/python3.14/site-packages/pip/_internal/operations/install/__pycache__/wheel.cpython-314.pyc +0 -0
  1579. package/lib/python3.14/site-packages/pip/_internal/operations/install/wheel.py +746 -0
  1580. package/lib/python3.14/site-packages/pip/_internal/operations/prepare.py +748 -0
  1581. package/lib/python3.14/site-packages/pip/_internal/pyproject.py +123 -0
  1582. package/lib/python3.14/site-packages/pip/_internal/req/__init__.py +103 -0
  1583. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/__init__.cpython-314.pyc +0 -0
  1584. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/constructors.cpython-314.pyc +0 -0
  1585. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/req_dependency_group.cpython-314.pyc +0 -0
  1586. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/req_file.cpython-314.pyc +0 -0
  1587. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/req_install.cpython-314.pyc +0 -0
  1588. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/req_set.cpython-314.pyc +0 -0
  1589. package/lib/python3.14/site-packages/pip/_internal/req/__pycache__/req_uninstall.cpython-314.pyc +0 -0
  1590. package/lib/python3.14/site-packages/pip/_internal/req/constructors.py +566 -0
  1591. package/lib/python3.14/site-packages/pip/_internal/req/req_dependency_group.py +75 -0
  1592. package/lib/python3.14/site-packages/pip/_internal/req/req_file.py +619 -0
  1593. package/lib/python3.14/site-packages/pip/_internal/req/req_install.py +828 -0
  1594. package/lib/python3.14/site-packages/pip/_internal/req/req_set.py +81 -0
  1595. package/lib/python3.14/site-packages/pip/_internal/req/req_uninstall.py +639 -0
  1596. package/lib/python3.14/site-packages/pip/_internal/resolution/__init__.py +0 -0
  1597. package/lib/python3.14/site-packages/pip/_internal/resolution/__pycache__/__init__.cpython-314.pyc +0 -0
  1598. package/lib/python3.14/site-packages/pip/_internal/resolution/__pycache__/base.cpython-314.pyc +0 -0
  1599. package/lib/python3.14/site-packages/pip/_internal/resolution/base.py +20 -0
  1600. package/lib/python3.14/site-packages/pip/_internal/resolution/legacy/__init__.py +0 -0
  1601. package/lib/python3.14/site-packages/pip/_internal/resolution/legacy/__pycache__/__init__.cpython-314.pyc +0 -0
  1602. package/lib/python3.14/site-packages/pip/_internal/resolution/legacy/__pycache__/resolver.cpython-314.pyc +0 -0
  1603. package/lib/python3.14/site-packages/pip/_internal/resolution/legacy/resolver.py +598 -0
  1604. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__init__.py +0 -0
  1605. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/__init__.cpython-314.pyc +0 -0
  1606. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/base.cpython-314.pyc +0 -0
  1607. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/candidates.cpython-314.pyc +0 -0
  1608. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/factory.cpython-314.pyc +0 -0
  1609. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/found_candidates.cpython-314.pyc +0 -0
  1610. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/provider.cpython-314.pyc +0 -0
  1611. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/reporter.cpython-314.pyc +0 -0
  1612. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/requirements.cpython-314.pyc +0 -0
  1613. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/__pycache__/resolver.cpython-314.pyc +0 -0
  1614. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/base.py +142 -0
  1615. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/candidates.py +591 -0
  1616. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/factory.py +845 -0
  1617. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py +166 -0
  1618. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/provider.py +285 -0
  1619. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/reporter.py +98 -0
  1620. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/requirements.py +247 -0
  1621. package/lib/python3.14/site-packages/pip/_internal/resolution/resolvelib/resolver.py +332 -0
  1622. package/lib/python3.14/site-packages/pip/_internal/self_outdated_check.py +262 -0
  1623. package/lib/python3.14/site-packages/pip/_internal/utils/__init__.py +0 -0
  1624. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/__init__.cpython-314.pyc +0 -0
  1625. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/_jaraco_text.cpython-314.pyc +0 -0
  1626. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/_log.cpython-314.pyc +0 -0
  1627. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/appdirs.cpython-314.pyc +0 -0
  1628. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/compat.cpython-314.pyc +0 -0
  1629. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/compatibility_tags.cpython-314.pyc +0 -0
  1630. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/datetime.cpython-314.pyc +0 -0
  1631. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/deprecation.cpython-314.pyc +0 -0
  1632. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/direct_url_helpers.cpython-314.pyc +0 -0
  1633. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/egg_link.cpython-314.pyc +0 -0
  1634. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/entrypoints.cpython-314.pyc +0 -0
  1635. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/filesystem.cpython-314.pyc +0 -0
  1636. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/filetypes.cpython-314.pyc +0 -0
  1637. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/glibc.cpython-314.pyc +0 -0
  1638. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/hashes.cpython-314.pyc +0 -0
  1639. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/logging.cpython-314.pyc +0 -0
  1640. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/misc.cpython-314.pyc +0 -0
  1641. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/packaging.cpython-314.pyc +0 -0
  1642. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/retry.cpython-314.pyc +0 -0
  1643. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/subprocess.cpython-314.pyc +0 -0
  1644. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/temp_dir.cpython-314.pyc +0 -0
  1645. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/unpacking.cpython-314.pyc +0 -0
  1646. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/urls.cpython-314.pyc +0 -0
  1647. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/virtualenv.cpython-314.pyc +0 -0
  1648. package/lib/python3.14/site-packages/pip/_internal/utils/__pycache__/wheel.cpython-314.pyc +0 -0
  1649. package/lib/python3.14/site-packages/pip/_internal/utils/_jaraco_text.py +109 -0
  1650. package/lib/python3.14/site-packages/pip/_internal/utils/_log.py +38 -0
  1651. package/lib/python3.14/site-packages/pip/_internal/utils/appdirs.py +52 -0
  1652. package/lib/python3.14/site-packages/pip/_internal/utils/compat.py +85 -0
  1653. package/lib/python3.14/site-packages/pip/_internal/utils/compatibility_tags.py +201 -0
  1654. package/lib/python3.14/site-packages/pip/_internal/utils/datetime.py +10 -0
  1655. package/lib/python3.14/site-packages/pip/_internal/utils/deprecation.py +126 -0
  1656. package/lib/python3.14/site-packages/pip/_internal/utils/direct_url_helpers.py +87 -0
  1657. package/lib/python3.14/site-packages/pip/_internal/utils/egg_link.py +81 -0
  1658. package/lib/python3.14/site-packages/pip/_internal/utils/entrypoints.py +88 -0
  1659. package/lib/python3.14/site-packages/pip/_internal/utils/filesystem.py +164 -0
  1660. package/lib/python3.14/site-packages/pip/_internal/utils/filetypes.py +24 -0
  1661. package/lib/python3.14/site-packages/pip/_internal/utils/glibc.py +102 -0
  1662. package/lib/python3.14/site-packages/pip/_internal/utils/hashes.py +150 -0
  1663. package/lib/python3.14/site-packages/pip/_internal/utils/logging.py +364 -0
  1664. package/lib/python3.14/site-packages/pip/_internal/utils/misc.py +765 -0
  1665. package/lib/python3.14/site-packages/pip/_internal/utils/packaging.py +44 -0
  1666. package/lib/python3.14/site-packages/pip/_internal/utils/retry.py +45 -0
  1667. package/lib/python3.14/site-packages/pip/_internal/utils/subprocess.py +248 -0
  1668. package/lib/python3.14/site-packages/pip/_internal/utils/temp_dir.py +294 -0
  1669. package/lib/python3.14/site-packages/pip/_internal/utils/unpacking.py +362 -0
  1670. package/lib/python3.14/site-packages/pip/_internal/utils/urls.py +55 -0
  1671. package/lib/python3.14/site-packages/pip/_internal/utils/virtualenv.py +105 -0
  1672. package/lib/python3.14/site-packages/pip/_internal/utils/wheel.py +132 -0
  1673. package/lib/python3.14/site-packages/pip/_internal/vcs/__init__.py +15 -0
  1674. package/lib/python3.14/site-packages/pip/_internal/vcs/__pycache__/__init__.cpython-314.pyc +0 -0
  1675. package/lib/python3.14/site-packages/pip/_internal/vcs/__pycache__/bazaar.cpython-314.pyc +0 -0
  1676. package/lib/python3.14/site-packages/pip/_internal/vcs/__pycache__/git.cpython-314.pyc +0 -0
  1677. package/lib/python3.14/site-packages/pip/_internal/vcs/__pycache__/mercurial.cpython-314.pyc +0 -0
  1678. package/lib/python3.14/site-packages/pip/_internal/vcs/__pycache__/subversion.cpython-314.pyc +0 -0
  1679. package/lib/python3.14/site-packages/pip/_internal/vcs/__pycache__/versioncontrol.cpython-314.pyc +0 -0
  1680. package/lib/python3.14/site-packages/pip/_internal/vcs/bazaar.py +130 -0
  1681. package/lib/python3.14/site-packages/pip/_internal/vcs/git.py +571 -0
  1682. package/lib/python3.14/site-packages/pip/_internal/vcs/mercurial.py +186 -0
  1683. package/lib/python3.14/site-packages/pip/_internal/vcs/subversion.py +335 -0
  1684. package/lib/python3.14/site-packages/pip/_internal/vcs/versioncontrol.py +693 -0
  1685. package/lib/python3.14/site-packages/pip/_internal/wheel_builder.py +261 -0
  1686. package/lib/python3.14/site-packages/pip/_vendor/README.rst +180 -0
  1687. package/lib/python3.14/site-packages/pip/_vendor/__init__.py +117 -0
  1688. package/lib/python3.14/site-packages/pip/_vendor/__pycache__/__init__.cpython-314.pyc +0 -0
  1689. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/LICENSE.txt +13 -0
  1690. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__init__.py +29 -0
  1691. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/__init__.cpython-314.pyc +0 -0
  1692. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/_cmd.cpython-314.pyc +0 -0
  1693. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/adapter.cpython-314.pyc +0 -0
  1694. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/cache.cpython-314.pyc +0 -0
  1695. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/controller.cpython-314.pyc +0 -0
  1696. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/filewrapper.cpython-314.pyc +0 -0
  1697. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/heuristics.cpython-314.pyc +0 -0
  1698. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/serialize.cpython-314.pyc +0 -0
  1699. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/__pycache__/wrapper.cpython-314.pyc +0 -0
  1700. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/_cmd.py +70 -0
  1701. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/adapter.py +168 -0
  1702. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/cache.py +75 -0
  1703. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +8 -0
  1704. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/__init__.cpython-314.pyc +0 -0
  1705. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/file_cache.cpython-314.pyc +0 -0
  1706. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/redis_cache.cpython-314.pyc +0 -0
  1707. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +145 -0
  1708. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +48 -0
  1709. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/controller.py +511 -0
  1710. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/filewrapper.py +119 -0
  1711. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/heuristics.py +157 -0
  1712. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/py.typed +0 -0
  1713. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/serialize.py +146 -0
  1714. package/lib/python3.14/site-packages/pip/_vendor/cachecontrol/wrapper.py +43 -0
  1715. package/lib/python3.14/site-packages/pip/_vendor/certifi/LICENSE +20 -0
  1716. package/lib/python3.14/site-packages/pip/_vendor/certifi/__init__.py +4 -0
  1717. package/lib/python3.14/site-packages/pip/_vendor/certifi/__main__.py +12 -0
  1718. package/lib/python3.14/site-packages/pip/_vendor/certifi/__pycache__/__init__.cpython-314.pyc +0 -0
  1719. package/lib/python3.14/site-packages/pip/_vendor/certifi/__pycache__/__main__.cpython-314.pyc +0 -0
  1720. package/lib/python3.14/site-packages/pip/_vendor/certifi/__pycache__/core.cpython-314.pyc +0 -0
  1721. package/lib/python3.14/site-packages/pip/_vendor/certifi/cacert.pem +4800 -0
  1722. package/lib/python3.14/site-packages/pip/_vendor/certifi/core.py +83 -0
  1723. package/lib/python3.14/site-packages/pip/_vendor/certifi/py.typed +0 -0
  1724. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/LICENSE.txt +9 -0
  1725. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__init__.py +13 -0
  1726. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__main__.py +65 -0
  1727. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__pycache__/__init__.cpython-314.pyc +0 -0
  1728. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__pycache__/__main__.cpython-314.pyc +0 -0
  1729. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__pycache__/_implementation.cpython-314.pyc +0 -0
  1730. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__pycache__/_lint_dependency_groups.cpython-314.pyc +0 -0
  1731. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__pycache__/_pip_wrapper.cpython-314.pyc +0 -0
  1732. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/__pycache__/_toml_compat.cpython-314.pyc +0 -0
  1733. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/_implementation.py +209 -0
  1734. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/_lint_dependency_groups.py +59 -0
  1735. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/_pip_wrapper.py +62 -0
  1736. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/_toml_compat.py +9 -0
  1737. package/lib/python3.14/site-packages/pip/_vendor/dependency_groups/py.typed +0 -0
  1738. package/lib/python3.14/site-packages/pip/_vendor/distlib/LICENSE.txt +284 -0
  1739. package/lib/python3.14/site-packages/pip/_vendor/distlib/__init__.py +33 -0
  1740. package/lib/python3.14/site-packages/pip/_vendor/distlib/__pycache__/__init__.cpython-314.pyc +0 -0
  1741. package/lib/python3.14/site-packages/pip/_vendor/distlib/__pycache__/compat.cpython-314.pyc +0 -0
  1742. package/lib/python3.14/site-packages/pip/_vendor/distlib/__pycache__/resources.cpython-314.pyc +0 -0
  1743. package/lib/python3.14/site-packages/pip/_vendor/distlib/__pycache__/scripts.cpython-314.pyc +0 -0
  1744. package/lib/python3.14/site-packages/pip/_vendor/distlib/__pycache__/util.cpython-314.pyc +0 -0
  1745. package/lib/python3.14/site-packages/pip/_vendor/distlib/compat.py +1137 -0
  1746. package/lib/python3.14/site-packages/pip/_vendor/distlib/resources.py +358 -0
  1747. package/lib/python3.14/site-packages/pip/_vendor/distlib/scripts.py +447 -0
  1748. package/lib/python3.14/site-packages/pip/_vendor/distlib/t32.exe +0 -0
  1749. package/lib/python3.14/site-packages/pip/_vendor/distlib/t64-arm.exe +0 -0
  1750. package/lib/python3.14/site-packages/pip/_vendor/distlib/t64.exe +0 -0
  1751. package/lib/python3.14/site-packages/pip/_vendor/distlib/util.py +1984 -0
  1752. package/lib/python3.14/site-packages/pip/_vendor/distlib/w32.exe +0 -0
  1753. package/lib/python3.14/site-packages/pip/_vendor/distlib/w64-arm.exe +0 -0
  1754. package/lib/python3.14/site-packages/pip/_vendor/distlib/w64.exe +0 -0
  1755. package/lib/python3.14/site-packages/pip/_vendor/distro/LICENSE +202 -0
  1756. package/lib/python3.14/site-packages/pip/_vendor/distro/__init__.py +54 -0
  1757. package/lib/python3.14/site-packages/pip/_vendor/distro/__main__.py +4 -0
  1758. package/lib/python3.14/site-packages/pip/_vendor/distro/__pycache__/__init__.cpython-314.pyc +0 -0
  1759. package/lib/python3.14/site-packages/pip/_vendor/distro/__pycache__/__main__.cpython-314.pyc +0 -0
  1760. package/lib/python3.14/site-packages/pip/_vendor/distro/__pycache__/distro.cpython-314.pyc +0 -0
  1761. package/lib/python3.14/site-packages/pip/_vendor/distro/distro.py +1403 -0
  1762. package/lib/python3.14/site-packages/pip/_vendor/distro/py.typed +0 -0
  1763. package/lib/python3.14/site-packages/pip/_vendor/idna/LICENSE.md +31 -0
  1764. package/lib/python3.14/site-packages/pip/_vendor/idna/__init__.py +45 -0
  1765. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/__init__.cpython-314.pyc +0 -0
  1766. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/codec.cpython-314.pyc +0 -0
  1767. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/compat.cpython-314.pyc +0 -0
  1768. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/core.cpython-314.pyc +0 -0
  1769. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/idnadata.cpython-314.pyc +0 -0
  1770. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/intranges.cpython-314.pyc +0 -0
  1771. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/package_data.cpython-314.pyc +0 -0
  1772. package/lib/python3.14/site-packages/pip/_vendor/idna/__pycache__/uts46data.cpython-314.pyc +0 -0
  1773. package/lib/python3.14/site-packages/pip/_vendor/idna/codec.py +122 -0
  1774. package/lib/python3.14/site-packages/pip/_vendor/idna/compat.py +15 -0
  1775. package/lib/python3.14/site-packages/pip/_vendor/idna/core.py +437 -0
  1776. package/lib/python3.14/site-packages/pip/_vendor/idna/idnadata.py +4243 -0
  1777. package/lib/python3.14/site-packages/pip/_vendor/idna/intranges.py +57 -0
  1778. package/lib/python3.14/site-packages/pip/_vendor/idna/package_data.py +1 -0
  1779. package/lib/python3.14/site-packages/pip/_vendor/idna/py.typed +0 -0
  1780. package/lib/python3.14/site-packages/pip/_vendor/idna/uts46data.py +8681 -0
  1781. package/lib/python3.14/site-packages/pip/_vendor/msgpack/COPYING +14 -0
  1782. package/lib/python3.14/site-packages/pip/_vendor/msgpack/__init__.py +55 -0
  1783. package/lib/python3.14/site-packages/pip/_vendor/msgpack/__pycache__/__init__.cpython-314.pyc +0 -0
  1784. package/lib/python3.14/site-packages/pip/_vendor/msgpack/__pycache__/exceptions.cpython-314.pyc +0 -0
  1785. package/lib/python3.14/site-packages/pip/_vendor/msgpack/__pycache__/ext.cpython-314.pyc +0 -0
  1786. package/lib/python3.14/site-packages/pip/_vendor/msgpack/__pycache__/fallback.cpython-314.pyc +0 -0
  1787. package/lib/python3.14/site-packages/pip/_vendor/msgpack/exceptions.py +48 -0
  1788. package/lib/python3.14/site-packages/pip/_vendor/msgpack/ext.py +170 -0
  1789. package/lib/python3.14/site-packages/pip/_vendor/msgpack/fallback.py +929 -0
  1790. package/lib/python3.14/site-packages/pip/_vendor/packaging/LICENSE +3 -0
  1791. package/lib/python3.14/site-packages/pip/_vendor/packaging/LICENSE.APACHE +177 -0
  1792. package/lib/python3.14/site-packages/pip/_vendor/packaging/LICENSE.BSD +23 -0
  1793. package/lib/python3.14/site-packages/pip/_vendor/packaging/__init__.py +15 -0
  1794. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/__init__.cpython-314.pyc +0 -0
  1795. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/_elffile.cpython-314.pyc +0 -0
  1796. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/_manylinux.cpython-314.pyc +0 -0
  1797. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/_musllinux.cpython-314.pyc +0 -0
  1798. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/_parser.cpython-314.pyc +0 -0
  1799. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/_structures.cpython-314.pyc +0 -0
  1800. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/_tokenizer.cpython-314.pyc +0 -0
  1801. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/markers.cpython-314.pyc +0 -0
  1802. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/metadata.cpython-314.pyc +0 -0
  1803. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/requirements.cpython-314.pyc +0 -0
  1804. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/specifiers.cpython-314.pyc +0 -0
  1805. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/tags.cpython-314.pyc +0 -0
  1806. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/utils.cpython-314.pyc +0 -0
  1807. package/lib/python3.14/site-packages/pip/_vendor/packaging/__pycache__/version.cpython-314.pyc +0 -0
  1808. package/lib/python3.14/site-packages/pip/_vendor/packaging/_elffile.py +109 -0
  1809. package/lib/python3.14/site-packages/pip/_vendor/packaging/_manylinux.py +262 -0
  1810. package/lib/python3.14/site-packages/pip/_vendor/packaging/_musllinux.py +85 -0
  1811. package/lib/python3.14/site-packages/pip/_vendor/packaging/_parser.py +353 -0
  1812. package/lib/python3.14/site-packages/pip/_vendor/packaging/_structures.py +61 -0
  1813. package/lib/python3.14/site-packages/pip/_vendor/packaging/_tokenizer.py +195 -0
  1814. package/lib/python3.14/site-packages/pip/_vendor/packaging/licenses/__init__.py +145 -0
  1815. package/lib/python3.14/site-packages/pip/_vendor/packaging/licenses/__pycache__/__init__.cpython-314.pyc +0 -0
  1816. package/lib/python3.14/site-packages/pip/_vendor/packaging/licenses/__pycache__/_spdx.cpython-314.pyc +0 -0
  1817. package/lib/python3.14/site-packages/pip/_vendor/packaging/licenses/_spdx.py +759 -0
  1818. package/lib/python3.14/site-packages/pip/_vendor/packaging/markers.py +362 -0
  1819. package/lib/python3.14/site-packages/pip/_vendor/packaging/metadata.py +862 -0
  1820. package/lib/python3.14/site-packages/pip/_vendor/packaging/py.typed +0 -0
  1821. package/lib/python3.14/site-packages/pip/_vendor/packaging/requirements.py +91 -0
  1822. package/lib/python3.14/site-packages/pip/_vendor/packaging/specifiers.py +1019 -0
  1823. package/lib/python3.14/site-packages/pip/_vendor/packaging/tags.py +656 -0
  1824. package/lib/python3.14/site-packages/pip/_vendor/packaging/utils.py +163 -0
  1825. package/lib/python3.14/site-packages/pip/_vendor/packaging/version.py +582 -0
  1826. package/lib/python3.14/site-packages/pip/_vendor/pkg_resources/LICENSE +17 -0
  1827. package/lib/python3.14/site-packages/pip/_vendor/pkg_resources/__init__.py +3676 -0
  1828. package/lib/python3.14/site-packages/pip/_vendor/pkg_resources/__pycache__/__init__.cpython-314.pyc +0 -0
  1829. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/LICENSE +21 -0
  1830. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__init__.py +631 -0
  1831. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__main__.py +55 -0
  1832. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/__init__.cpython-314.pyc +0 -0
  1833. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/__main__.cpython-314.pyc +0 -0
  1834. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/android.cpython-314.pyc +0 -0
  1835. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/api.cpython-314.pyc +0 -0
  1836. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/macos.cpython-314.pyc +0 -0
  1837. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/unix.cpython-314.pyc +0 -0
  1838. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/version.cpython-314.pyc +0 -0
  1839. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/__pycache__/windows.cpython-314.pyc +0 -0
  1840. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/android.py +249 -0
  1841. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/api.py +299 -0
  1842. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/macos.py +146 -0
  1843. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/py.typed +0 -0
  1844. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/unix.py +272 -0
  1845. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/version.py +34 -0
  1846. package/lib/python3.14/site-packages/pip/_vendor/platformdirs/windows.py +272 -0
  1847. package/lib/python3.14/site-packages/pip/_vendor/pygments/LICENSE +25 -0
  1848. package/lib/python3.14/site-packages/pip/_vendor/pygments/__init__.py +82 -0
  1849. package/lib/python3.14/site-packages/pip/_vendor/pygments/__main__.py +17 -0
  1850. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/__init__.cpython-314.pyc +0 -0
  1851. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/__main__.cpython-314.pyc +0 -0
  1852. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/console.cpython-314.pyc +0 -0
  1853. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/filter.cpython-314.pyc +0 -0
  1854. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/formatter.cpython-314.pyc +0 -0
  1855. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/lexer.cpython-314.pyc +0 -0
  1856. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/modeline.cpython-314.pyc +0 -0
  1857. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/plugin.cpython-314.pyc +0 -0
  1858. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/regexopt.cpython-314.pyc +0 -0
  1859. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/scanner.cpython-314.pyc +0 -0
  1860. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/sphinxext.cpython-314.pyc +0 -0
  1861. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/style.cpython-314.pyc +0 -0
  1862. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/token.cpython-314.pyc +0 -0
  1863. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/unistring.cpython-314.pyc +0 -0
  1864. package/lib/python3.14/site-packages/pip/_vendor/pygments/__pycache__/util.cpython-314.pyc +0 -0
  1865. package/lib/python3.14/site-packages/pip/_vendor/pygments/console.py +70 -0
  1866. package/lib/python3.14/site-packages/pip/_vendor/pygments/filter.py +70 -0
  1867. package/lib/python3.14/site-packages/pip/_vendor/pygments/filters/__init__.py +940 -0
  1868. package/lib/python3.14/site-packages/pip/_vendor/pygments/filters/__pycache__/__init__.cpython-314.pyc +0 -0
  1869. package/lib/python3.14/site-packages/pip/_vendor/pygments/formatter.py +129 -0
  1870. package/lib/python3.14/site-packages/pip/_vendor/pygments/formatters/__init__.py +157 -0
  1871. package/lib/python3.14/site-packages/pip/_vendor/pygments/formatters/__pycache__/__init__.cpython-314.pyc +0 -0
  1872. package/lib/python3.14/site-packages/pip/_vendor/pygments/formatters/__pycache__/_mapping.cpython-314.pyc +0 -0
  1873. package/lib/python3.14/site-packages/pip/_vendor/pygments/formatters/_mapping.py +23 -0
  1874. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexer.py +963 -0
  1875. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexers/__init__.py +362 -0
  1876. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexers/__pycache__/__init__.cpython-314.pyc +0 -0
  1877. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexers/__pycache__/_mapping.cpython-314.pyc +0 -0
  1878. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexers/__pycache__/python.cpython-314.pyc +0 -0
  1879. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexers/_mapping.py +602 -0
  1880. package/lib/python3.14/site-packages/pip/_vendor/pygments/lexers/python.py +1201 -0
  1881. package/lib/python3.14/site-packages/pip/_vendor/pygments/modeline.py +43 -0
  1882. package/lib/python3.14/site-packages/pip/_vendor/pygments/plugin.py +72 -0
  1883. package/lib/python3.14/site-packages/pip/_vendor/pygments/regexopt.py +91 -0
  1884. package/lib/python3.14/site-packages/pip/_vendor/pygments/scanner.py +104 -0
  1885. package/lib/python3.14/site-packages/pip/_vendor/pygments/sphinxext.py +247 -0
  1886. package/lib/python3.14/site-packages/pip/_vendor/pygments/style.py +203 -0
  1887. package/lib/python3.14/site-packages/pip/_vendor/pygments/styles/__init__.py +61 -0
  1888. package/lib/python3.14/site-packages/pip/_vendor/pygments/styles/__pycache__/__init__.cpython-314.pyc +0 -0
  1889. package/lib/python3.14/site-packages/pip/_vendor/pygments/styles/__pycache__/_mapping.cpython-314.pyc +0 -0
  1890. package/lib/python3.14/site-packages/pip/_vendor/pygments/styles/_mapping.py +54 -0
  1891. package/lib/python3.14/site-packages/pip/_vendor/pygments/token.py +214 -0
  1892. package/lib/python3.14/site-packages/pip/_vendor/pygments/unistring.py +153 -0
  1893. package/lib/python3.14/site-packages/pip/_vendor/pygments/util.py +324 -0
  1894. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/LICENSE +21 -0
  1895. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/__init__.py +31 -0
  1896. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/__pycache__/__init__.cpython-314.pyc +0 -0
  1897. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/__pycache__/_impl.cpython-314.pyc +0 -0
  1898. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_impl.py +410 -0
  1899. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/__init__.py +21 -0
  1900. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/__pycache__/__init__.cpython-314.pyc +0 -0
  1901. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/__pycache__/_in_process.cpython-314.pyc +0 -0
  1902. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py +389 -0
  1903. package/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/py.typed +0 -0
  1904. package/lib/python3.14/site-packages/pip/_vendor/requests/LICENSE +175 -0
  1905. package/lib/python3.14/site-packages/pip/_vendor/requests/__init__.py +179 -0
  1906. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/__init__.cpython-314.pyc +0 -0
  1907. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/__version__.cpython-314.pyc +0 -0
  1908. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/_internal_utils.cpython-314.pyc +0 -0
  1909. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/adapters.cpython-314.pyc +0 -0
  1910. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/api.cpython-314.pyc +0 -0
  1911. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/auth.cpython-314.pyc +0 -0
  1912. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/certs.cpython-314.pyc +0 -0
  1913. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/compat.cpython-314.pyc +0 -0
  1914. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/cookies.cpython-314.pyc +0 -0
  1915. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/exceptions.cpython-314.pyc +0 -0
  1916. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/help.cpython-314.pyc +0 -0
  1917. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/hooks.cpython-314.pyc +0 -0
  1918. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/models.cpython-314.pyc +0 -0
  1919. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/packages.cpython-314.pyc +0 -0
  1920. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/sessions.cpython-314.pyc +0 -0
  1921. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/status_codes.cpython-314.pyc +0 -0
  1922. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/structures.cpython-314.pyc +0 -0
  1923. package/lib/python3.14/site-packages/pip/_vendor/requests/__pycache__/utils.cpython-314.pyc +0 -0
  1924. package/lib/python3.14/site-packages/pip/_vendor/requests/__version__.py +14 -0
  1925. package/lib/python3.14/site-packages/pip/_vendor/requests/_internal_utils.py +50 -0
  1926. package/lib/python3.14/site-packages/pip/_vendor/requests/adapters.py +696 -0
  1927. package/lib/python3.14/site-packages/pip/_vendor/requests/api.py +157 -0
  1928. package/lib/python3.14/site-packages/pip/_vendor/requests/auth.py +314 -0
  1929. package/lib/python3.14/site-packages/pip/_vendor/requests/certs.py +17 -0
  1930. package/lib/python3.14/site-packages/pip/_vendor/requests/compat.py +90 -0
  1931. package/lib/python3.14/site-packages/pip/_vendor/requests/cookies.py +561 -0
  1932. package/lib/python3.14/site-packages/pip/_vendor/requests/exceptions.py +151 -0
  1933. package/lib/python3.14/site-packages/pip/_vendor/requests/help.py +127 -0
  1934. package/lib/python3.14/site-packages/pip/_vendor/requests/hooks.py +33 -0
  1935. package/lib/python3.14/site-packages/pip/_vendor/requests/models.py +1039 -0
  1936. package/lib/python3.14/site-packages/pip/_vendor/requests/packages.py +25 -0
  1937. package/lib/python3.14/site-packages/pip/_vendor/requests/sessions.py +831 -0
  1938. package/lib/python3.14/site-packages/pip/_vendor/requests/status_codes.py +128 -0
  1939. package/lib/python3.14/site-packages/pip/_vendor/requests/structures.py +99 -0
  1940. package/lib/python3.14/site-packages/pip/_vendor/requests/utils.py +1086 -0
  1941. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/LICENSE +13 -0
  1942. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/__init__.py +27 -0
  1943. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/__pycache__/__init__.cpython-314.pyc +0 -0
  1944. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/__pycache__/providers.cpython-314.pyc +0 -0
  1945. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/__pycache__/reporters.cpython-314.pyc +0 -0
  1946. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/__pycache__/structs.cpython-314.pyc +0 -0
  1947. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/providers.py +196 -0
  1948. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/py.typed +0 -0
  1949. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/reporters.py +55 -0
  1950. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/__init__.py +27 -0
  1951. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/__pycache__/__init__.cpython-314.pyc +0 -0
  1952. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/__pycache__/abstract.cpython-314.pyc +0 -0
  1953. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/__pycache__/criterion.cpython-314.pyc +0 -0
  1954. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/__pycache__/exceptions.cpython-314.pyc +0 -0
  1955. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/__pycache__/resolution.cpython-314.pyc +0 -0
  1956. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/abstract.py +47 -0
  1957. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/criterion.py +48 -0
  1958. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/exceptions.py +57 -0
  1959. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/resolvers/resolution.py +627 -0
  1960. package/lib/python3.14/site-packages/pip/_vendor/resolvelib/structs.py +209 -0
  1961. package/lib/python3.14/site-packages/pip/_vendor/rich/LICENSE +19 -0
  1962. package/lib/python3.14/site-packages/pip/_vendor/rich/__init__.py +177 -0
  1963. package/lib/python3.14/site-packages/pip/_vendor/rich/__main__.py +245 -0
  1964. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/__init__.cpython-314.pyc +0 -0
  1965. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/__main__.cpython-314.pyc +0 -0
  1966. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_cell_widths.cpython-314.pyc +0 -0
  1967. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_emoji_codes.cpython-314.pyc +0 -0
  1968. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_emoji_replace.cpython-314.pyc +0 -0
  1969. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_export_format.cpython-314.pyc +0 -0
  1970. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_extension.cpython-314.pyc +0 -0
  1971. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_fileno.cpython-314.pyc +0 -0
  1972. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_inspect.cpython-314.pyc +0 -0
  1973. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_log_render.cpython-314.pyc +0 -0
  1974. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_loop.cpython-314.pyc +0 -0
  1975. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_null_file.cpython-314.pyc +0 -0
  1976. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_palettes.cpython-314.pyc +0 -0
  1977. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_pick.cpython-314.pyc +0 -0
  1978. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_ratio.cpython-314.pyc +0 -0
  1979. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_spinners.cpython-314.pyc +0 -0
  1980. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_stack.cpython-314.pyc +0 -0
  1981. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_timer.cpython-314.pyc +0 -0
  1982. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_win32_console.cpython-314.pyc +0 -0
  1983. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_windows.cpython-314.pyc +0 -0
  1984. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_windows_renderer.cpython-314.pyc +0 -0
  1985. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/_wrap.cpython-314.pyc +0 -0
  1986. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/abc.cpython-314.pyc +0 -0
  1987. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/align.cpython-314.pyc +0 -0
  1988. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/ansi.cpython-314.pyc +0 -0
  1989. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/bar.cpython-314.pyc +0 -0
  1990. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/box.cpython-314.pyc +0 -0
  1991. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/cells.cpython-314.pyc +0 -0
  1992. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/color.cpython-314.pyc +0 -0
  1993. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/color_triplet.cpython-314.pyc +0 -0
  1994. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/columns.cpython-314.pyc +0 -0
  1995. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/console.cpython-314.pyc +0 -0
  1996. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/constrain.cpython-314.pyc +0 -0
  1997. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/containers.cpython-314.pyc +0 -0
  1998. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/control.cpython-314.pyc +0 -0
  1999. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/default_styles.cpython-314.pyc +0 -0
  2000. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/diagnose.cpython-314.pyc +0 -0
  2001. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/emoji.cpython-314.pyc +0 -0
  2002. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/errors.cpython-314.pyc +0 -0
  2003. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/file_proxy.cpython-314.pyc +0 -0
  2004. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/filesize.cpython-314.pyc +0 -0
  2005. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/highlighter.cpython-314.pyc +0 -0
  2006. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/json.cpython-314.pyc +0 -0
  2007. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/jupyter.cpython-314.pyc +0 -0
  2008. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/layout.cpython-314.pyc +0 -0
  2009. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/live.cpython-314.pyc +0 -0
  2010. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/live_render.cpython-314.pyc +0 -0
  2011. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/logging.cpython-314.pyc +0 -0
  2012. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/markup.cpython-314.pyc +0 -0
  2013. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/measure.cpython-314.pyc +0 -0
  2014. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/padding.cpython-314.pyc +0 -0
  2015. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/pager.cpython-314.pyc +0 -0
  2016. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/palette.cpython-314.pyc +0 -0
  2017. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/panel.cpython-314.pyc +0 -0
  2018. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/pretty.cpython-314.pyc +0 -0
  2019. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/progress.cpython-314.pyc +0 -0
  2020. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/progress_bar.cpython-314.pyc +0 -0
  2021. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/prompt.cpython-314.pyc +0 -0
  2022. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/protocol.cpython-314.pyc +0 -0
  2023. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/region.cpython-314.pyc +0 -0
  2024. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/repr.cpython-314.pyc +0 -0
  2025. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/rule.cpython-314.pyc +0 -0
  2026. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/scope.cpython-314.pyc +0 -0
  2027. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/screen.cpython-314.pyc +0 -0
  2028. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/segment.cpython-314.pyc +0 -0
  2029. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/spinner.cpython-314.pyc +0 -0
  2030. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/status.cpython-314.pyc +0 -0
  2031. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/style.cpython-314.pyc +0 -0
  2032. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/styled.cpython-314.pyc +0 -0
  2033. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/syntax.cpython-314.pyc +0 -0
  2034. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/table.cpython-314.pyc +0 -0
  2035. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/terminal_theme.cpython-314.pyc +0 -0
  2036. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/text.cpython-314.pyc +0 -0
  2037. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/theme.cpython-314.pyc +0 -0
  2038. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/themes.cpython-314.pyc +0 -0
  2039. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/traceback.cpython-314.pyc +0 -0
  2040. package/lib/python3.14/site-packages/pip/_vendor/rich/__pycache__/tree.cpython-314.pyc +0 -0
  2041. package/lib/python3.14/site-packages/pip/_vendor/rich/_cell_widths.py +454 -0
  2042. package/lib/python3.14/site-packages/pip/_vendor/rich/_emoji_codes.py +3610 -0
  2043. package/lib/python3.14/site-packages/pip/_vendor/rich/_emoji_replace.py +32 -0
  2044. package/lib/python3.14/site-packages/pip/_vendor/rich/_export_format.py +76 -0
  2045. package/lib/python3.14/site-packages/pip/_vendor/rich/_extension.py +10 -0
  2046. package/lib/python3.14/site-packages/pip/_vendor/rich/_fileno.py +24 -0
  2047. package/lib/python3.14/site-packages/pip/_vendor/rich/_inspect.py +268 -0
  2048. package/lib/python3.14/site-packages/pip/_vendor/rich/_log_render.py +94 -0
  2049. package/lib/python3.14/site-packages/pip/_vendor/rich/_loop.py +43 -0
  2050. package/lib/python3.14/site-packages/pip/_vendor/rich/_null_file.py +69 -0
  2051. package/lib/python3.14/site-packages/pip/_vendor/rich/_palettes.py +309 -0
  2052. package/lib/python3.14/site-packages/pip/_vendor/rich/_pick.py +17 -0
  2053. package/lib/python3.14/site-packages/pip/_vendor/rich/_ratio.py +153 -0
  2054. package/lib/python3.14/site-packages/pip/_vendor/rich/_spinners.py +482 -0
  2055. package/lib/python3.14/site-packages/pip/_vendor/rich/_stack.py +16 -0
  2056. package/lib/python3.14/site-packages/pip/_vendor/rich/_timer.py +19 -0
  2057. package/lib/python3.14/site-packages/pip/_vendor/rich/_win32_console.py +661 -0
  2058. package/lib/python3.14/site-packages/pip/_vendor/rich/_windows.py +71 -0
  2059. package/lib/python3.14/site-packages/pip/_vendor/rich/_windows_renderer.py +56 -0
  2060. package/lib/python3.14/site-packages/pip/_vendor/rich/_wrap.py +93 -0
  2061. package/lib/python3.14/site-packages/pip/_vendor/rich/abc.py +33 -0
  2062. package/lib/python3.14/site-packages/pip/_vendor/rich/align.py +306 -0
  2063. package/lib/python3.14/site-packages/pip/_vendor/rich/ansi.py +241 -0
  2064. package/lib/python3.14/site-packages/pip/_vendor/rich/bar.py +93 -0
  2065. package/lib/python3.14/site-packages/pip/_vendor/rich/box.py +474 -0
  2066. package/lib/python3.14/site-packages/pip/_vendor/rich/cells.py +174 -0
  2067. package/lib/python3.14/site-packages/pip/_vendor/rich/color.py +621 -0
  2068. package/lib/python3.14/site-packages/pip/_vendor/rich/color_triplet.py +38 -0
  2069. package/lib/python3.14/site-packages/pip/_vendor/rich/columns.py +187 -0
  2070. package/lib/python3.14/site-packages/pip/_vendor/rich/console.py +2680 -0
  2071. package/lib/python3.14/site-packages/pip/_vendor/rich/constrain.py +37 -0
  2072. package/lib/python3.14/site-packages/pip/_vendor/rich/containers.py +167 -0
  2073. package/lib/python3.14/site-packages/pip/_vendor/rich/control.py +219 -0
  2074. package/lib/python3.14/site-packages/pip/_vendor/rich/default_styles.py +193 -0
  2075. package/lib/python3.14/site-packages/pip/_vendor/rich/diagnose.py +39 -0
  2076. package/lib/python3.14/site-packages/pip/_vendor/rich/emoji.py +91 -0
  2077. package/lib/python3.14/site-packages/pip/_vendor/rich/errors.py +34 -0
  2078. package/lib/python3.14/site-packages/pip/_vendor/rich/file_proxy.py +57 -0
  2079. package/lib/python3.14/site-packages/pip/_vendor/rich/filesize.py +88 -0
  2080. package/lib/python3.14/site-packages/pip/_vendor/rich/highlighter.py +232 -0
  2081. package/lib/python3.14/site-packages/pip/_vendor/rich/json.py +139 -0
  2082. package/lib/python3.14/site-packages/pip/_vendor/rich/jupyter.py +101 -0
  2083. package/lib/python3.14/site-packages/pip/_vendor/rich/layout.py +442 -0
  2084. package/lib/python3.14/site-packages/pip/_vendor/rich/live.py +400 -0
  2085. package/lib/python3.14/site-packages/pip/_vendor/rich/live_render.py +106 -0
  2086. package/lib/python3.14/site-packages/pip/_vendor/rich/logging.py +297 -0
  2087. package/lib/python3.14/site-packages/pip/_vendor/rich/markup.py +251 -0
  2088. package/lib/python3.14/site-packages/pip/_vendor/rich/measure.py +151 -0
  2089. package/lib/python3.14/site-packages/pip/_vendor/rich/padding.py +141 -0
  2090. package/lib/python3.14/site-packages/pip/_vendor/rich/pager.py +34 -0
  2091. package/lib/python3.14/site-packages/pip/_vendor/rich/palette.py +100 -0
  2092. package/lib/python3.14/site-packages/pip/_vendor/rich/panel.py +317 -0
  2093. package/lib/python3.14/site-packages/pip/_vendor/rich/pretty.py +1016 -0
  2094. package/lib/python3.14/site-packages/pip/_vendor/rich/progress.py +1715 -0
  2095. package/lib/python3.14/site-packages/pip/_vendor/rich/progress_bar.py +223 -0
  2096. package/lib/python3.14/site-packages/pip/_vendor/rich/prompt.py +400 -0
  2097. package/lib/python3.14/site-packages/pip/_vendor/rich/protocol.py +42 -0
  2098. package/lib/python3.14/site-packages/pip/_vendor/rich/py.typed +0 -0
  2099. package/lib/python3.14/site-packages/pip/_vendor/rich/region.py +10 -0
  2100. package/lib/python3.14/site-packages/pip/_vendor/rich/repr.py +149 -0
  2101. package/lib/python3.14/site-packages/pip/_vendor/rich/rule.py +130 -0
  2102. package/lib/python3.14/site-packages/pip/_vendor/rich/scope.py +86 -0
  2103. package/lib/python3.14/site-packages/pip/_vendor/rich/screen.py +54 -0
  2104. package/lib/python3.14/site-packages/pip/_vendor/rich/segment.py +752 -0
  2105. package/lib/python3.14/site-packages/pip/_vendor/rich/spinner.py +132 -0
  2106. package/lib/python3.14/site-packages/pip/_vendor/rich/status.py +131 -0
  2107. package/lib/python3.14/site-packages/pip/_vendor/rich/style.py +792 -0
  2108. package/lib/python3.14/site-packages/pip/_vendor/rich/styled.py +42 -0
  2109. package/lib/python3.14/site-packages/pip/_vendor/rich/syntax.py +985 -0
  2110. package/lib/python3.14/site-packages/pip/_vendor/rich/table.py +1006 -0
  2111. package/lib/python3.14/site-packages/pip/_vendor/rich/terminal_theme.py +153 -0
  2112. package/lib/python3.14/site-packages/pip/_vendor/rich/text.py +1361 -0
  2113. package/lib/python3.14/site-packages/pip/_vendor/rich/theme.py +115 -0
  2114. package/lib/python3.14/site-packages/pip/_vendor/rich/themes.py +5 -0
  2115. package/lib/python3.14/site-packages/pip/_vendor/rich/traceback.py +899 -0
  2116. package/lib/python3.14/site-packages/pip/_vendor/rich/tree.py +257 -0
  2117. package/lib/python3.14/site-packages/pip/_vendor/tomli/LICENSE +21 -0
  2118. package/lib/python3.14/site-packages/pip/_vendor/tomli/__init__.py +8 -0
  2119. package/lib/python3.14/site-packages/pip/_vendor/tomli/__pycache__/__init__.cpython-314.pyc +0 -0
  2120. package/lib/python3.14/site-packages/pip/_vendor/tomli/__pycache__/_parser.cpython-314.pyc +0 -0
  2121. package/lib/python3.14/site-packages/pip/_vendor/tomli/__pycache__/_re.cpython-314.pyc +0 -0
  2122. package/lib/python3.14/site-packages/pip/_vendor/tomli/__pycache__/_types.cpython-314.pyc +0 -0
  2123. package/lib/python3.14/site-packages/pip/_vendor/tomli/_parser.py +777 -0
  2124. package/lib/python3.14/site-packages/pip/_vendor/tomli/_re.py +115 -0
  2125. package/lib/python3.14/site-packages/pip/_vendor/tomli/_types.py +10 -0
  2126. package/lib/python3.14/site-packages/pip/_vendor/tomli/py.typed +1 -0
  2127. package/lib/python3.14/site-packages/pip/_vendor/tomli_w/LICENSE +21 -0
  2128. package/lib/python3.14/site-packages/pip/_vendor/tomli_w/__init__.py +4 -0
  2129. package/lib/python3.14/site-packages/pip/_vendor/tomli_w/__pycache__/__init__.cpython-314.pyc +0 -0
  2130. package/lib/python3.14/site-packages/pip/_vendor/tomli_w/__pycache__/_writer.cpython-314.pyc +0 -0
  2131. package/lib/python3.14/site-packages/pip/_vendor/tomli_w/_writer.py +229 -0
  2132. package/lib/python3.14/site-packages/pip/_vendor/tomli_w/py.typed +1 -0
  2133. package/lib/python3.14/site-packages/pip/_vendor/truststore/LICENSE +21 -0
  2134. package/lib/python3.14/site-packages/pip/_vendor/truststore/__init__.py +36 -0
  2135. package/lib/python3.14/site-packages/pip/_vendor/truststore/__pycache__/__init__.cpython-314.pyc +0 -0
  2136. package/lib/python3.14/site-packages/pip/_vendor/truststore/__pycache__/_api.cpython-314.pyc +0 -0
  2137. package/lib/python3.14/site-packages/pip/_vendor/truststore/__pycache__/_macos.cpython-314.pyc +0 -0
  2138. package/lib/python3.14/site-packages/pip/_vendor/truststore/__pycache__/_openssl.cpython-314.pyc +0 -0
  2139. package/lib/python3.14/site-packages/pip/_vendor/truststore/__pycache__/_ssl_constants.cpython-314.pyc +0 -0
  2140. package/lib/python3.14/site-packages/pip/_vendor/truststore/__pycache__/_windows.cpython-314.pyc +0 -0
  2141. package/lib/python3.14/site-packages/pip/_vendor/truststore/_api.py +341 -0
  2142. package/lib/python3.14/site-packages/pip/_vendor/truststore/_macos.py +571 -0
  2143. package/lib/python3.14/site-packages/pip/_vendor/truststore/_openssl.py +68 -0
  2144. package/lib/python3.14/site-packages/pip/_vendor/truststore/_ssl_constants.py +31 -0
  2145. package/lib/python3.14/site-packages/pip/_vendor/truststore/_windows.py +567 -0
  2146. package/lib/python3.14/site-packages/pip/_vendor/truststore/py.typed +0 -0
  2147. package/lib/python3.14/site-packages/pip/_vendor/urllib3/LICENSE.txt +21 -0
  2148. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__init__.py +102 -0
  2149. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/__init__.cpython-314.pyc +0 -0
  2150. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/_collections.cpython-314.pyc +0 -0
  2151. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/_version.cpython-314.pyc +0 -0
  2152. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/connection.cpython-314.pyc +0 -0
  2153. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/connectionpool.cpython-314.pyc +0 -0
  2154. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/exceptions.cpython-314.pyc +0 -0
  2155. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/fields.cpython-314.pyc +0 -0
  2156. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/filepost.cpython-314.pyc +0 -0
  2157. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/poolmanager.cpython-314.pyc +0 -0
  2158. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/request.cpython-314.pyc +0 -0
  2159. package/lib/python3.14/site-packages/pip/_vendor/urllib3/__pycache__/response.cpython-314.pyc +0 -0
  2160. package/lib/python3.14/site-packages/pip/_vendor/urllib3/_collections.py +355 -0
  2161. package/lib/python3.14/site-packages/pip/_vendor/urllib3/_version.py +2 -0
  2162. package/lib/python3.14/site-packages/pip/_vendor/urllib3/connection.py +572 -0
  2163. package/lib/python3.14/site-packages/pip/_vendor/urllib3/connectionpool.py +1140 -0
  2164. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
  2165. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/__init__.cpython-314.pyc +0 -0
  2166. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/_appengine_environ.cpython-314.pyc +0 -0
  2167. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/appengine.cpython-314.pyc +0 -0
  2168. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/ntlmpool.cpython-314.pyc +0 -0
  2169. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/pyopenssl.cpython-314.pyc +0 -0
  2170. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/securetransport.cpython-314.pyc +0 -0
  2171. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/__pycache__/socks.cpython-314.pyc +0 -0
  2172. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_appengine_environ.py +36 -0
  2173. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
  2174. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__pycache__/__init__.cpython-314.pyc +0 -0
  2175. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__pycache__/bindings.cpython-314.pyc +0 -0
  2176. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__pycache__/low_level.cpython-314.pyc +0 -0
  2177. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +519 -0
  2178. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +397 -0
  2179. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/appengine.py +314 -0
  2180. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/ntlmpool.py +130 -0
  2181. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +518 -0
  2182. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +920 -0
  2183. package/lib/python3.14/site-packages/pip/_vendor/urllib3/contrib/socks.py +216 -0
  2184. package/lib/python3.14/site-packages/pip/_vendor/urllib3/exceptions.py +323 -0
  2185. package/lib/python3.14/site-packages/pip/_vendor/urllib3/fields.py +274 -0
  2186. package/lib/python3.14/site-packages/pip/_vendor/urllib3/filepost.py +98 -0
  2187. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/__init__.py +0 -0
  2188. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/__pycache__/__init__.cpython-314.pyc +0 -0
  2189. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/__pycache__/six.cpython-314.pyc +0 -0
  2190. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
  2191. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/backports/__pycache__/__init__.cpython-314.pyc +0 -0
  2192. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/backports/__pycache__/makefile.cpython-314.pyc +0 -0
  2193. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/backports/__pycache__/weakref_finalize.cpython-314.pyc +0 -0
  2194. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +51 -0
  2195. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/backports/weakref_finalize.py +155 -0
  2196. package/lib/python3.14/site-packages/pip/_vendor/urllib3/packages/six.py +1076 -0
  2197. package/lib/python3.14/site-packages/pip/_vendor/urllib3/poolmanager.py +540 -0
  2198. package/lib/python3.14/site-packages/pip/_vendor/urllib3/request.py +191 -0
  2199. package/lib/python3.14/site-packages/pip/_vendor/urllib3/response.py +879 -0
  2200. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__init__.py +49 -0
  2201. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/__init__.cpython-314.pyc +0 -0
  2202. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/connection.cpython-314.pyc +0 -0
  2203. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/proxy.cpython-314.pyc +0 -0
  2204. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/queue.cpython-314.pyc +0 -0
  2205. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/request.cpython-314.pyc +0 -0
  2206. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/response.cpython-314.pyc +0 -0
  2207. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/retry.cpython-314.pyc +0 -0
  2208. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/ssl_.cpython-314.pyc +0 -0
  2209. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/ssl_match_hostname.cpython-314.pyc +0 -0
  2210. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/ssltransport.cpython-314.pyc +0 -0
  2211. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/timeout.cpython-314.pyc +0 -0
  2212. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/url.cpython-314.pyc +0 -0
  2213. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/__pycache__/wait.cpython-314.pyc +0 -0
  2214. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/connection.py +149 -0
  2215. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/proxy.py +57 -0
  2216. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/queue.py +22 -0
  2217. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/request.py +137 -0
  2218. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/response.py +107 -0
  2219. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/retry.py +622 -0
  2220. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/ssl_.py +504 -0
  2221. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/ssl_match_hostname.py +159 -0
  2222. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/ssltransport.py +221 -0
  2223. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/timeout.py +271 -0
  2224. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/url.py +435 -0
  2225. package/lib/python3.14/site-packages/pip/_vendor/urllib3/util/wait.py +152 -0
  2226. package/lib/python3.14/site-packages/pip/_vendor/vendor.txt +19 -0
  2227. package/lib/python3.14/site-packages/pip/py.typed +4 -0
  2228. package/lib/python3.14/site-packages/pip-25.3.dist-info/METADATA +111 -0
  2229. package/lib/python3.14/site-packages/pip-25.3.dist-info/RECORD +469 -0
  2230. package/lib/python3.14/site-packages/pip-25.3.dist-info/WHEEL +4 -0
  2231. package/lib/python3.14/site-packages/pip-25.3.dist-info/entry_points.txt +4 -0
  2232. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/AUTHORS.txt +842 -0
  2233. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/LICENSE.txt +20 -0
  2234. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/cachecontrol/LICENSE.txt +13 -0
  2235. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/certifi/LICENSE +20 -0
  2236. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/dependency_groups/LICENSE.txt +9 -0
  2237. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/distlib/LICENSE.txt +284 -0
  2238. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/distro/LICENSE +202 -0
  2239. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/idna/LICENSE.md +31 -0
  2240. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/msgpack/COPYING +14 -0
  2241. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/packaging/LICENSE +3 -0
  2242. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/packaging/LICENSE.APACHE +177 -0
  2243. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/packaging/LICENSE.BSD +23 -0
  2244. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/pkg_resources/LICENSE +17 -0
  2245. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/platformdirs/LICENSE +21 -0
  2246. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/pygments/LICENSE +25 -0
  2247. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/pyproject_hooks/LICENSE +21 -0
  2248. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/requests/LICENSE +175 -0
  2249. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/resolvelib/LICENSE +13 -0
  2250. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/rich/LICENSE +19 -0
  2251. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/tomli/LICENSE +21 -0
  2252. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/tomli_w/LICENSE +21 -0
  2253. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/truststore/LICENSE +21 -0
  2254. package/lib/python3.14/site-packages/pip-25.3.dist-info/licenses/src/pip/_vendor/urllib3/LICENSE.txt +21 -0
  2255. package/lib/python3.14/site.py +787 -0
  2256. package/lib/python3.14/smtplib.py +1121 -0
  2257. package/lib/python3.14/socket.py +988 -0
  2258. package/lib/python3.14/socketserver.py +863 -0
  2259. package/lib/python3.14/sqlite3/__init__.py +57 -0
  2260. package/lib/python3.14/sqlite3/__main__.py +139 -0
  2261. package/lib/python3.14/sqlite3/__pycache__/__init__.cpython-314.pyc +0 -0
  2262. package/lib/python3.14/sqlite3/__pycache__/__main__.cpython-314.pyc +0 -0
  2263. package/lib/python3.14/sqlite3/__pycache__/dbapi2.cpython-314.pyc +0 -0
  2264. package/lib/python3.14/sqlite3/__pycache__/dump.cpython-314.pyc +0 -0
  2265. package/lib/python3.14/sqlite3/dbapi2.py +96 -0
  2266. package/lib/python3.14/sqlite3/dump.py +113 -0
  2267. package/lib/python3.14/sre_compile.py +7 -0
  2268. package/lib/python3.14/sre_constants.py +7 -0
  2269. package/lib/python3.14/sre_parse.py +7 -0
  2270. package/lib/python3.14/ssl.py +1529 -0
  2271. package/lib/python3.14/stat.py +207 -0
  2272. package/lib/python3.14/statistics.py +1879 -0
  2273. package/lib/python3.14/string/__init__.py +325 -0
  2274. package/lib/python3.14/string/__pycache__/__init__.cpython-314.pyc +0 -0
  2275. package/lib/python3.14/string/__pycache__/templatelib.cpython-314.pyc +0 -0
  2276. package/lib/python3.14/string/templatelib.py +33 -0
  2277. package/lib/python3.14/stringprep.py +272 -0
  2278. package/lib/python3.14/struct.py +15 -0
  2279. package/lib/python3.14/subprocess.py +2198 -0
  2280. package/lib/python3.14/symtable.py +451 -0
  2281. package/lib/python3.14/sysconfig/__init__.py +790 -0
  2282. package/lib/python3.14/sysconfig/__main__.py +276 -0
  2283. package/lib/python3.14/sysconfig/__pycache__/__init__.cpython-314.pyc +0 -0
  2284. package/lib/python3.14/sysconfig/__pycache__/__main__.cpython-314.pyc +0 -0
  2285. package/lib/python3.14/tabnanny.py +338 -0
  2286. package/lib/python3.14/tarfile.py +3136 -0
  2287. package/lib/python3.14/tempfile.py +977 -0
  2288. package/lib/python3.14/textwrap.py +475 -0
  2289. package/lib/python3.14/this.py +28 -0
  2290. package/lib/python3.14/threading.py +1642 -0
  2291. package/lib/python3.14/timeit.py +378 -0
  2292. package/lib/python3.14/tkinter/__init__.py +5005 -0
  2293. package/lib/python3.14/tkinter/__main__.py +7 -0
  2294. package/lib/python3.14/tkinter/__pycache__/__init__.cpython-314.pyc +0 -0
  2295. package/lib/python3.14/tkinter/__pycache__/__main__.cpython-314.pyc +0 -0
  2296. package/lib/python3.14/tkinter/__pycache__/colorchooser.cpython-314.pyc +0 -0
  2297. package/lib/python3.14/tkinter/__pycache__/commondialog.cpython-314.pyc +0 -0
  2298. package/lib/python3.14/tkinter/__pycache__/constants.cpython-314.pyc +0 -0
  2299. package/lib/python3.14/tkinter/__pycache__/dialog.cpython-314.pyc +0 -0
  2300. package/lib/python3.14/tkinter/__pycache__/dnd.cpython-314.pyc +0 -0
  2301. package/lib/python3.14/tkinter/__pycache__/filedialog.cpython-314.pyc +0 -0
  2302. package/lib/python3.14/tkinter/__pycache__/font.cpython-314.pyc +0 -0
  2303. package/lib/python3.14/tkinter/__pycache__/messagebox.cpython-314.pyc +0 -0
  2304. package/lib/python3.14/tkinter/__pycache__/scrolledtext.cpython-314.pyc +0 -0
  2305. package/lib/python3.14/tkinter/__pycache__/simpledialog.cpython-314.pyc +0 -0
  2306. package/lib/python3.14/tkinter/__pycache__/ttk.cpython-314.pyc +0 -0
  2307. package/lib/python3.14/tkinter/colorchooser.py +86 -0
  2308. package/lib/python3.14/tkinter/commondialog.py +53 -0
  2309. package/lib/python3.14/tkinter/constants.py +110 -0
  2310. package/lib/python3.14/tkinter/dialog.py +49 -0
  2311. package/lib/python3.14/tkinter/dnd.py +324 -0
  2312. package/lib/python3.14/tkinter/filedialog.py +492 -0
  2313. package/lib/python3.14/tkinter/font.py +239 -0
  2314. package/lib/python3.14/tkinter/messagebox.py +146 -0
  2315. package/lib/python3.14/tkinter/scrolledtext.py +56 -0
  2316. package/lib/python3.14/tkinter/simpledialog.py +441 -0
  2317. package/lib/python3.14/tkinter/ttk.py +1650 -0
  2318. package/lib/python3.14/token.py +144 -0
  2319. package/lib/python3.14/tokenize.py +598 -0
  2320. package/lib/python3.14/tomllib/__init__.py +10 -0
  2321. package/lib/python3.14/tomllib/__pycache__/__init__.cpython-314.pyc +0 -0
  2322. package/lib/python3.14/tomllib/__pycache__/_parser.cpython-314.pyc +0 -0
  2323. package/lib/python3.14/tomllib/__pycache__/_re.cpython-314.pyc +0 -0
  2324. package/lib/python3.14/tomllib/__pycache__/_types.cpython-314.pyc +0 -0
  2325. package/lib/python3.14/tomllib/_parser.py +753 -0
  2326. package/lib/python3.14/tomllib/_re.py +113 -0
  2327. package/lib/python3.14/tomllib/_types.py +10 -0
  2328. package/lib/python3.14/tomllib/mypy.ini +17 -0
  2329. package/lib/python3.14/trace.py +751 -0
  2330. package/lib/python3.14/traceback.py +1743 -0
  2331. package/lib/python3.14/tracemalloc.py +560 -0
  2332. package/lib/python3.14/tty.py +73 -0
  2333. package/lib/python3.14/turtle.py +4291 -0
  2334. package/lib/python3.14/turtledemo/__init__.py +14 -0
  2335. package/lib/python3.14/turtledemo/__main__.py +399 -0
  2336. package/lib/python3.14/turtledemo/__pycache__/__init__.cpython-314.pyc +0 -0
  2337. package/lib/python3.14/turtledemo/__pycache__/__main__.cpython-314.pyc +0 -0
  2338. package/lib/python3.14/turtledemo/__pycache__/bytedesign.cpython-314.pyc +0 -0
  2339. package/lib/python3.14/turtledemo/__pycache__/chaos.cpython-314.pyc +0 -0
  2340. package/lib/python3.14/turtledemo/__pycache__/clock.cpython-314.pyc +0 -0
  2341. package/lib/python3.14/turtledemo/__pycache__/colormixer.cpython-314.pyc +0 -0
  2342. package/lib/python3.14/turtledemo/__pycache__/forest.cpython-314.pyc +0 -0
  2343. package/lib/python3.14/turtledemo/__pycache__/fractalcurves.cpython-314.pyc +0 -0
  2344. package/lib/python3.14/turtledemo/__pycache__/lindenmayer.cpython-314.pyc +0 -0
  2345. package/lib/python3.14/turtledemo/__pycache__/minimal_hanoi.cpython-314.pyc +0 -0
  2346. package/lib/python3.14/turtledemo/__pycache__/nim.cpython-314.pyc +0 -0
  2347. package/lib/python3.14/turtledemo/__pycache__/paint.cpython-314.pyc +0 -0
  2348. package/lib/python3.14/turtledemo/__pycache__/peace.cpython-314.pyc +0 -0
  2349. package/lib/python3.14/turtledemo/__pycache__/penrose.cpython-314.pyc +0 -0
  2350. package/lib/python3.14/turtledemo/__pycache__/planet_and_moon.cpython-314.pyc +0 -0
  2351. package/lib/python3.14/turtledemo/__pycache__/rosette.cpython-314.pyc +0 -0
  2352. package/lib/python3.14/turtledemo/__pycache__/round_dance.cpython-314.pyc +0 -0
  2353. package/lib/python3.14/turtledemo/__pycache__/sorting_animate.cpython-314.pyc +0 -0
  2354. package/lib/python3.14/turtledemo/__pycache__/tree.cpython-314.pyc +0 -0
  2355. package/lib/python3.14/turtledemo/__pycache__/two_canvases.cpython-314.pyc +0 -0
  2356. package/lib/python3.14/turtledemo/__pycache__/yinyang.cpython-314.pyc +0 -0
  2357. package/lib/python3.14/turtledemo/bytedesign.py +158 -0
  2358. package/lib/python3.14/turtledemo/chaos.py +57 -0
  2359. package/lib/python3.14/turtledemo/clock.py +132 -0
  2360. package/lib/python3.14/turtledemo/colormixer.py +57 -0
  2361. package/lib/python3.14/turtledemo/forest.py +104 -0
  2362. package/lib/python3.14/turtledemo/fractalcurves.py +135 -0
  2363. package/lib/python3.14/turtledemo/lindenmayer.py +116 -0
  2364. package/lib/python3.14/turtledemo/minimal_hanoi.py +73 -0
  2365. package/lib/python3.14/turtledemo/nim.py +224 -0
  2366. package/lib/python3.14/turtledemo/paint.py +48 -0
  2367. package/lib/python3.14/turtledemo/peace.py +58 -0
  2368. package/lib/python3.14/turtledemo/penrose.py +172 -0
  2369. package/lib/python3.14/turtledemo/planet_and_moon.py +108 -0
  2370. package/lib/python3.14/turtledemo/rosette.py +63 -0
  2371. package/lib/python3.14/turtledemo/round_dance.py +81 -0
  2372. package/lib/python3.14/turtledemo/sorting_animate.py +198 -0
  2373. package/lib/python3.14/turtledemo/tree.py +59 -0
  2374. package/lib/python3.14/turtledemo/turtle.cfg +10 -0
  2375. package/lib/python3.14/turtledemo/two_canvases.py +54 -0
  2376. package/lib/python3.14/turtledemo/yinyang.py +46 -0
  2377. package/lib/python3.14/types.py +340 -0
  2378. package/lib/python3.14/typing.py +3854 -0
  2379. package/lib/python3.14/unittest/__init__.py +80 -0
  2380. package/lib/python3.14/unittest/__main__.py +18 -0
  2381. package/lib/python3.14/unittest/__pycache__/__init__.cpython-314.pyc +0 -0
  2382. package/lib/python3.14/unittest/__pycache__/__main__.cpython-314.pyc +0 -0
  2383. package/lib/python3.14/unittest/__pycache__/_log.cpython-314.pyc +0 -0
  2384. package/lib/python3.14/unittest/__pycache__/async_case.cpython-314.pyc +0 -0
  2385. package/lib/python3.14/unittest/__pycache__/case.cpython-314.pyc +0 -0
  2386. package/lib/python3.14/unittest/__pycache__/loader.cpython-314.pyc +0 -0
  2387. package/lib/python3.14/unittest/__pycache__/main.cpython-314.pyc +0 -0
  2388. package/lib/python3.14/unittest/__pycache__/mock.cpython-314.pyc +0 -0
  2389. package/lib/python3.14/unittest/__pycache__/result.cpython-314.pyc +0 -0
  2390. package/lib/python3.14/unittest/__pycache__/runner.cpython-314.pyc +0 -0
  2391. package/lib/python3.14/unittest/__pycache__/signals.cpython-314.pyc +0 -0
  2392. package/lib/python3.14/unittest/__pycache__/suite.cpython-314.pyc +0 -0
  2393. package/lib/python3.14/unittest/__pycache__/util.cpython-314.pyc +0 -0
  2394. package/lib/python3.14/unittest/_log.py +86 -0
  2395. package/lib/python3.14/unittest/async_case.py +158 -0
  2396. package/lib/python3.14/unittest/case.py +1628 -0
  2397. package/lib/python3.14/unittest/loader.py +484 -0
  2398. package/lib/python3.14/unittest/main.py +280 -0
  2399. package/lib/python3.14/unittest/mock.py +3197 -0
  2400. package/lib/python3.14/unittest/result.py +259 -0
  2401. package/lib/python3.14/unittest/runner.py +313 -0
  2402. package/lib/python3.14/unittest/signals.py +71 -0
  2403. package/lib/python3.14/unittest/suite.py +379 -0
  2404. package/lib/python3.14/unittest/util.py +170 -0
  2405. package/lib/python3.14/urllib/__init__.py +0 -0
  2406. package/lib/python3.14/urllib/__pycache__/__init__.cpython-314.pyc +0 -0
  2407. package/lib/python3.14/urllib/__pycache__/error.cpython-314.pyc +0 -0
  2408. package/lib/python3.14/urllib/__pycache__/parse.cpython-314.pyc +0 -0
  2409. package/lib/python3.14/urllib/__pycache__/request.cpython-314.pyc +0 -0
  2410. package/lib/python3.14/urllib/__pycache__/response.cpython-314.pyc +0 -0
  2411. package/lib/python3.14/urllib/__pycache__/robotparser.cpython-314.pyc +0 -0
  2412. package/lib/python3.14/urllib/error.py +74 -0
  2413. package/lib/python3.14/urllib/parse.py +1287 -0
  2414. package/lib/python3.14/urllib/request.py +2158 -0
  2415. package/lib/python3.14/urllib/response.py +84 -0
  2416. package/lib/python3.14/urllib/robotparser.py +288 -0
  2417. package/lib/python3.14/uuid.py +1007 -0
  2418. package/lib/python3.14/venv/__init__.py +700 -0
  2419. package/lib/python3.14/venv/__main__.py +10 -0
  2420. package/lib/python3.14/venv/__pycache__/__init__.cpython-314.pyc +0 -0
  2421. package/lib/python3.14/venv/__pycache__/__main__.cpython-314.pyc +0 -0
  2422. package/lib/python3.14/venv/scripts/common/Activate.ps1 +248 -0
  2423. package/lib/python3.14/venv/scripts/common/activate +76 -0
  2424. package/lib/python3.14/venv/scripts/common/activate.fish +69 -0
  2425. package/lib/python3.14/venv/scripts/posix/activate.csh +27 -0
  2426. package/lib/python3.14/warnings.py +99 -0
  2427. package/lib/python3.14/wave.py +665 -0
  2428. package/lib/python3.14/weakref.py +574 -0
  2429. package/lib/python3.14/webbrowser.py +749 -0
  2430. package/lib/python3.14/wsgiref/__init__.py +25 -0
  2431. package/lib/python3.14/wsgiref/__pycache__/__init__.cpython-314.pyc +0 -0
  2432. package/lib/python3.14/wsgiref/__pycache__/handlers.cpython-314.pyc +0 -0
  2433. package/lib/python3.14/wsgiref/__pycache__/headers.cpython-314.pyc +0 -0
  2434. package/lib/python3.14/wsgiref/__pycache__/simple_server.cpython-314.pyc +0 -0
  2435. package/lib/python3.14/wsgiref/__pycache__/types.cpython-314.pyc +0 -0
  2436. package/lib/python3.14/wsgiref/__pycache__/util.cpython-314.pyc +0 -0
  2437. package/lib/python3.14/wsgiref/__pycache__/validate.cpython-314.pyc +0 -0
  2438. package/lib/python3.14/wsgiref/handlers.py +573 -0
  2439. package/lib/python3.14/wsgiref/headers.py +184 -0
  2440. package/lib/python3.14/wsgiref/simple_server.py +161 -0
  2441. package/lib/python3.14/wsgiref/types.py +54 -0
  2442. package/lib/python3.14/wsgiref/util.py +159 -0
  2443. package/lib/python3.14/wsgiref/validate.py +438 -0
  2444. package/lib/python3.14/xml/__init__.py +20 -0
  2445. package/lib/python3.14/xml/__pycache__/__init__.cpython-314.pyc +0 -0
  2446. package/lib/python3.14/xml/dom/NodeFilter.py +27 -0
  2447. package/lib/python3.14/xml/dom/__init__.py +140 -0
  2448. package/lib/python3.14/xml/dom/__pycache__/NodeFilter.cpython-314.pyc +0 -0
  2449. package/lib/python3.14/xml/dom/__pycache__/__init__.cpython-314.pyc +0 -0
  2450. package/lib/python3.14/xml/dom/__pycache__/domreg.cpython-314.pyc +0 -0
  2451. package/lib/python3.14/xml/dom/__pycache__/expatbuilder.cpython-314.pyc +0 -0
  2452. package/lib/python3.14/xml/dom/__pycache__/minicompat.cpython-314.pyc +0 -0
  2453. package/lib/python3.14/xml/dom/__pycache__/minidom.cpython-314.pyc +0 -0
  2454. package/lib/python3.14/xml/dom/__pycache__/pulldom.cpython-314.pyc +0 -0
  2455. package/lib/python3.14/xml/dom/__pycache__/xmlbuilder.cpython-314.pyc +0 -0
  2456. package/lib/python3.14/xml/dom/domreg.py +99 -0
  2457. package/lib/python3.14/xml/dom/expatbuilder.py +962 -0
  2458. package/lib/python3.14/xml/dom/minicompat.py +109 -0
  2459. package/lib/python3.14/xml/dom/minidom.py +2022 -0
  2460. package/lib/python3.14/xml/dom/pulldom.py +336 -0
  2461. package/lib/python3.14/xml/dom/xmlbuilder.py +389 -0
  2462. package/lib/python3.14/xml/etree/ElementInclude.py +186 -0
  2463. package/lib/python3.14/xml/etree/ElementPath.py +423 -0
  2464. package/lib/python3.14/xml/etree/ElementTree.py +2102 -0
  2465. package/lib/python3.14/xml/etree/__init__.py +33 -0
  2466. package/lib/python3.14/xml/etree/__pycache__/ElementInclude.cpython-314.pyc +0 -0
  2467. package/lib/python3.14/xml/etree/__pycache__/ElementPath.cpython-314.pyc +0 -0
  2468. package/lib/python3.14/xml/etree/__pycache__/ElementTree.cpython-314.pyc +0 -0
  2469. package/lib/python3.14/xml/etree/__pycache__/__init__.cpython-314.pyc +0 -0
  2470. package/lib/python3.14/xml/etree/__pycache__/cElementTree.cpython-314.pyc +0 -0
  2471. package/lib/python3.14/xml/etree/cElementTree.py +3 -0
  2472. package/lib/python3.14/xml/parsers/__init__.py +8 -0
  2473. package/lib/python3.14/xml/parsers/__pycache__/__init__.cpython-314.pyc +0 -0
  2474. package/lib/python3.14/xml/parsers/__pycache__/expat.cpython-314.pyc +0 -0
  2475. package/lib/python3.14/xml/parsers/expat.py +8 -0
  2476. package/lib/python3.14/xml/sax/__init__.py +100 -0
  2477. package/lib/python3.14/xml/sax/__pycache__/__init__.cpython-314.pyc +0 -0
  2478. package/lib/python3.14/xml/sax/__pycache__/_exceptions.cpython-314.pyc +0 -0
  2479. package/lib/python3.14/xml/sax/__pycache__/expatreader.cpython-314.pyc +0 -0
  2480. package/lib/python3.14/xml/sax/__pycache__/handler.cpython-314.pyc +0 -0
  2481. package/lib/python3.14/xml/sax/__pycache__/saxutils.cpython-314.pyc +0 -0
  2482. package/lib/python3.14/xml/sax/__pycache__/xmlreader.cpython-314.pyc +0 -0
  2483. package/lib/python3.14/xml/sax/_exceptions.py +127 -0
  2484. package/lib/python3.14/xml/sax/expatreader.py +454 -0
  2485. package/lib/python3.14/xml/sax/handler.py +387 -0
  2486. package/lib/python3.14/xml/sax/saxutils.py +369 -0
  2487. package/lib/python3.14/xml/sax/xmlreader.py +378 -0
  2488. package/lib/python3.14/xmlrpc/__init__.py +1 -0
  2489. package/lib/python3.14/xmlrpc/__pycache__/__init__.cpython-314.pyc +0 -0
  2490. package/lib/python3.14/xmlrpc/__pycache__/client.cpython-314.pyc +0 -0
  2491. package/lib/python3.14/xmlrpc/__pycache__/server.cpython-314.pyc +0 -0
  2492. package/lib/python3.14/xmlrpc/client.py +1503 -0
  2493. package/lib/python3.14/xmlrpc/server.py +1003 -0
  2494. package/lib/python3.14/zipapp.py +231 -0
  2495. package/lib/python3.14/zipfile/__init__.py +2435 -0
  2496. package/lib/python3.14/zipfile/__main__.py +4 -0
  2497. package/lib/python3.14/zipfile/__pycache__/__init__.cpython-314.pyc +0 -0
  2498. package/lib/python3.14/zipfile/__pycache__/__main__.cpython-314.pyc +0 -0
  2499. package/lib/python3.14/zipfile/_path/__init__.py +452 -0
  2500. package/lib/python3.14/zipfile/_path/__pycache__/__init__.cpython-314.pyc +0 -0
  2501. package/lib/python3.14/zipfile/_path/__pycache__/glob.cpython-314.pyc +0 -0
  2502. package/lib/python3.14/zipfile/_path/glob.py +113 -0
  2503. package/lib/python3.14/zipimport.py +822 -0
  2504. package/lib/python3.14/zoneinfo/__init__.py +34 -0
  2505. package/lib/python3.14/zoneinfo/__pycache__/__init__.cpython-314.pyc +0 -0
  2506. package/lib/python3.14/zoneinfo/__pycache__/_common.cpython-314.pyc +0 -0
  2507. package/lib/python3.14/zoneinfo/__pycache__/_tzpath.cpython-314.pyc +0 -0
  2508. package/lib/python3.14/zoneinfo/__pycache__/_zoneinfo.cpython-314.pyc +0 -0
  2509. package/lib/python3.14/zoneinfo/_common.py +169 -0
  2510. package/lib/python3.14/zoneinfo/_tzpath.py +189 -0
  2511. package/lib/python3.14/zoneinfo/_zoneinfo.py +772 -0
  2512. package/package.json +62 -0
@@ -0,0 +1,3854 @@
1
+ """
2
+ The typing module: Support for gradual typing as defined by PEP 484 and subsequent PEPs.
3
+
4
+ Among other things, the module includes the following:
5
+ * Generic, Protocol, and internal machinery to support generic aliases.
6
+ All subscripted types like X[int], Union[int, str] are generic aliases.
7
+ * Various "special forms" that have unique meanings in type annotations:
8
+ NoReturn, Never, ClassVar, Self, Concatenate, Unpack, and others.
9
+ * Classes whose instances can be type arguments to generic classes and functions:
10
+ TypeVar, ParamSpec, TypeVarTuple.
11
+ * Public helper functions: get_type_hints, overload, cast, final, and others.
12
+ * Several protocols to support duck-typing:
13
+ SupportsFloat, SupportsIndex, SupportsAbs, and others.
14
+ * Special types: NewType, NamedTuple, TypedDict.
15
+ * Deprecated aliases for builtin types and collections.abc ABCs.
16
+
17
+ Any name not present in __all__ is an implementation detail
18
+ that may be changed without notice. Use at your own risk!
19
+ """
20
+
21
+ from abc import abstractmethod, ABCMeta
22
+ import collections
23
+ from collections import defaultdict
24
+ import collections.abc
25
+ import copyreg
26
+ import functools
27
+ import operator
28
+ import sys
29
+ import types
30
+ from types import GenericAlias
31
+
32
+ from _typing import (
33
+ _idfunc,
34
+ TypeVar,
35
+ ParamSpec,
36
+ TypeVarTuple,
37
+ ParamSpecArgs,
38
+ ParamSpecKwargs,
39
+ TypeAliasType,
40
+ Generic,
41
+ Union,
42
+ NoDefault,
43
+ )
44
+
45
+ # Please keep __all__ alphabetized within each category.
46
+ __all__ = [
47
+ # Super-special typing primitives.
48
+ 'Annotated',
49
+ 'Any',
50
+ 'Callable',
51
+ 'ClassVar',
52
+ 'Concatenate',
53
+ 'Final',
54
+ 'ForwardRef',
55
+ 'Generic',
56
+ 'Literal',
57
+ 'Optional',
58
+ 'ParamSpec',
59
+ 'Protocol',
60
+ 'Tuple',
61
+ 'Type',
62
+ 'TypeVar',
63
+ 'TypeVarTuple',
64
+ 'Union',
65
+
66
+ # ABCs (from collections.abc).
67
+ 'AbstractSet', # collections.abc.Set.
68
+ 'ByteString',
69
+ 'Container',
70
+ 'ContextManager',
71
+ 'Hashable',
72
+ 'ItemsView',
73
+ 'Iterable',
74
+ 'Iterator',
75
+ 'KeysView',
76
+ 'Mapping',
77
+ 'MappingView',
78
+ 'MutableMapping',
79
+ 'MutableSequence',
80
+ 'MutableSet',
81
+ 'Sequence',
82
+ 'Sized',
83
+ 'ValuesView',
84
+ 'Awaitable',
85
+ 'AsyncIterator',
86
+ 'AsyncIterable',
87
+ 'Coroutine',
88
+ 'Collection',
89
+ 'AsyncGenerator',
90
+ 'AsyncContextManager',
91
+
92
+ # Structural checks, a.k.a. protocols.
93
+ 'Reversible',
94
+ 'SupportsAbs',
95
+ 'SupportsBytes',
96
+ 'SupportsComplex',
97
+ 'SupportsFloat',
98
+ 'SupportsIndex',
99
+ 'SupportsInt',
100
+ 'SupportsRound',
101
+
102
+ # Concrete collection types.
103
+ 'ChainMap',
104
+ 'Counter',
105
+ 'Deque',
106
+ 'Dict',
107
+ 'DefaultDict',
108
+ 'List',
109
+ 'OrderedDict',
110
+ 'Set',
111
+ 'FrozenSet',
112
+ 'NamedTuple', # Not really a type.
113
+ 'TypedDict', # Not really a type.
114
+ 'Generator',
115
+
116
+ # Other concrete types.
117
+ 'BinaryIO',
118
+ 'IO',
119
+ 'Match',
120
+ 'Pattern',
121
+ 'TextIO',
122
+
123
+ # One-off things.
124
+ 'AnyStr',
125
+ 'assert_type',
126
+ 'assert_never',
127
+ 'cast',
128
+ 'clear_overloads',
129
+ 'dataclass_transform',
130
+ 'evaluate_forward_ref',
131
+ 'final',
132
+ 'get_args',
133
+ 'get_origin',
134
+ 'get_overloads',
135
+ 'get_protocol_members',
136
+ 'get_type_hints',
137
+ 'is_protocol',
138
+ 'is_typeddict',
139
+ 'LiteralString',
140
+ 'Never',
141
+ 'NewType',
142
+ 'no_type_check',
143
+ 'no_type_check_decorator',
144
+ 'NoDefault',
145
+ 'NoReturn',
146
+ 'NotRequired',
147
+ 'overload',
148
+ 'override',
149
+ 'ParamSpecArgs',
150
+ 'ParamSpecKwargs',
151
+ 'ReadOnly',
152
+ 'Required',
153
+ 'reveal_type',
154
+ 'runtime_checkable',
155
+ 'Self',
156
+ 'Text',
157
+ 'TYPE_CHECKING',
158
+ 'TypeAlias',
159
+ 'TypeGuard',
160
+ 'TypeIs',
161
+ 'TypeAliasType',
162
+ 'Unpack',
163
+ ]
164
+
165
+ class _LazyAnnotationLib:
166
+ def __getattr__(self, attr):
167
+ global _lazy_annotationlib
168
+ import annotationlib
169
+ _lazy_annotationlib = annotationlib
170
+ return getattr(annotationlib, attr)
171
+
172
+ _lazy_annotationlib = _LazyAnnotationLib()
173
+
174
+
175
+ def _type_convert(arg, module=None, *, allow_special_forms=False, owner=None):
176
+ """For converting None to type(None), and strings to ForwardRef."""
177
+ if arg is None:
178
+ return type(None)
179
+ if isinstance(arg, str):
180
+ return _make_forward_ref(arg, module=module, is_class=allow_special_forms, owner=owner)
181
+ return arg
182
+
183
+
184
+ def _type_check(arg, msg, is_argument=True, module=None, *, allow_special_forms=False, owner=None):
185
+ """Check that the argument is a type, and return it (internal helper).
186
+
187
+ As a special case, accept None and return type(None) instead. Also wrap strings
188
+ into ForwardRef instances. Consider several corner cases, for example plain
189
+ special forms like Union are not valid, while Union[int, str] is OK, etc.
190
+ The msg argument is a human-readable error message, e.g.::
191
+
192
+ "Union[arg, ...]: arg should be a type."
193
+
194
+ We append the repr() of the actual value (truncated to 100 chars).
195
+ """
196
+ invalid_generic_forms = (Generic, Protocol)
197
+ if not allow_special_forms:
198
+ invalid_generic_forms += (ClassVar,)
199
+ if is_argument:
200
+ invalid_generic_forms += (Final,)
201
+
202
+ arg = _type_convert(arg, module=module, allow_special_forms=allow_special_forms, owner=owner)
203
+ if (isinstance(arg, _GenericAlias) and
204
+ arg.__origin__ in invalid_generic_forms):
205
+ raise TypeError(f"{arg} is not valid as type argument")
206
+ if arg in (Any, LiteralString, NoReturn, Never, Self, TypeAlias):
207
+ return arg
208
+ if allow_special_forms and arg in (ClassVar, Final):
209
+ return arg
210
+ if isinstance(arg, _SpecialForm) or arg in (Generic, Protocol):
211
+ raise TypeError(f"Plain {arg} is not valid as type argument")
212
+ if type(arg) is tuple:
213
+ raise TypeError(f"{msg} Got {arg!r:.100}.")
214
+ return arg
215
+
216
+
217
+ def _is_param_expr(arg):
218
+ return arg is ... or isinstance(arg,
219
+ (tuple, list, ParamSpec, _ConcatenateGenericAlias))
220
+
221
+
222
+ def _should_unflatten_callable_args(typ, args):
223
+ """Internal helper for munging collections.abc.Callable's __args__.
224
+
225
+ The canonical representation for a Callable's __args__ flattens the
226
+ argument types, see https://github.com/python/cpython/issues/86361.
227
+
228
+ For example::
229
+
230
+ >>> import collections.abc
231
+ >>> P = ParamSpec('P')
232
+ >>> collections.abc.Callable[[int, int], str].__args__ == (int, int, str)
233
+ True
234
+ >>> collections.abc.Callable[P, str].__args__ == (P, str)
235
+ True
236
+
237
+ As a result, if we need to reconstruct the Callable from its __args__,
238
+ we need to unflatten it.
239
+ """
240
+ return (
241
+ typ.__origin__ is collections.abc.Callable
242
+ and not (len(args) == 2 and _is_param_expr(args[0]))
243
+ )
244
+
245
+
246
+ def _type_repr(obj):
247
+ """Return the repr() of an object, special-casing types (internal helper).
248
+
249
+ If obj is a type, we return a shorter version than the default
250
+ type.__repr__, based on the module and qualified name, which is
251
+ typically enough to uniquely identify a type. For everything
252
+ else, we fall back on repr(obj).
253
+ """
254
+ if isinstance(obj, tuple):
255
+ # Special case for `repr` of types with `ParamSpec`:
256
+ return '[' + ', '.join(_type_repr(t) for t in obj) + ']'
257
+ return _lazy_annotationlib.type_repr(obj)
258
+
259
+
260
+ def _collect_type_parameters(args, *, enforce_default_ordering: bool = True):
261
+ """Collect all type parameters in args
262
+ in order of first appearance (lexicographic order).
263
+
264
+ For example::
265
+
266
+ >>> P = ParamSpec('P')
267
+ >>> T = TypeVar('T')
268
+ >>> _collect_type_parameters((T, Callable[P, T]))
269
+ (~T, ~P)
270
+ """
271
+ # required type parameter cannot appear after parameter with default
272
+ default_encountered = False
273
+ # or after TypeVarTuple
274
+ type_var_tuple_encountered = False
275
+ parameters = []
276
+ for t in args:
277
+ if isinstance(t, type):
278
+ # We don't want __parameters__ descriptor of a bare Python class.
279
+ pass
280
+ elif isinstance(t, tuple):
281
+ # `t` might be a tuple, when `ParamSpec` is substituted with
282
+ # `[T, int]`, or `[int, *Ts]`, etc.
283
+ for x in t:
284
+ for collected in _collect_type_parameters([x]):
285
+ if collected not in parameters:
286
+ parameters.append(collected)
287
+ elif hasattr(t, '__typing_subst__'):
288
+ if t not in parameters:
289
+ if enforce_default_ordering:
290
+ if type_var_tuple_encountered and t.has_default():
291
+ raise TypeError('Type parameter with a default'
292
+ ' follows TypeVarTuple')
293
+
294
+ if t.has_default():
295
+ default_encountered = True
296
+ elif default_encountered:
297
+ raise TypeError(f'Type parameter {t!r} without a default'
298
+ ' follows type parameter with a default')
299
+
300
+ parameters.append(t)
301
+ else:
302
+ if _is_unpacked_typevartuple(t):
303
+ type_var_tuple_encountered = True
304
+ for x in getattr(t, '__parameters__', ()):
305
+ if x not in parameters:
306
+ parameters.append(x)
307
+ return tuple(parameters)
308
+
309
+
310
+ def _check_generic_specialization(cls, arguments):
311
+ """Check correct count for parameters of a generic cls (internal helper).
312
+
313
+ This gives a nice error message in case of count mismatch.
314
+ """
315
+ expected_len = len(cls.__parameters__)
316
+ if not expected_len:
317
+ raise TypeError(f"{cls} is not a generic class")
318
+ actual_len = len(arguments)
319
+ if actual_len != expected_len:
320
+ # deal with defaults
321
+ if actual_len < expected_len:
322
+ # If the parameter at index `actual_len` in the parameters list
323
+ # has a default, then all parameters after it must also have
324
+ # one, because we validated as much in _collect_type_parameters().
325
+ # That means that no error needs to be raised here, despite
326
+ # the number of arguments being passed not matching the number
327
+ # of parameters: all parameters that aren't explicitly
328
+ # specialized in this call are parameters with default values.
329
+ if cls.__parameters__[actual_len].has_default():
330
+ return
331
+
332
+ expected_len -= sum(p.has_default() for p in cls.__parameters__)
333
+ expect_val = f"at least {expected_len}"
334
+ else:
335
+ expect_val = expected_len
336
+
337
+ raise TypeError(f"Too {'many' if actual_len > expected_len else 'few'} arguments"
338
+ f" for {cls}; actual {actual_len}, expected {expect_val}")
339
+
340
+
341
+ def _unpack_args(*args):
342
+ newargs = []
343
+ for arg in args:
344
+ subargs = getattr(arg, '__typing_unpacked_tuple_args__', None)
345
+ if subargs is not None and not (subargs and subargs[-1] is ...):
346
+ newargs.extend(subargs)
347
+ else:
348
+ newargs.append(arg)
349
+ return newargs
350
+
351
+ def _deduplicate(params, *, unhashable_fallback=False):
352
+ # Weed out strict duplicates, preserving the first of each occurrence.
353
+ try:
354
+ return dict.fromkeys(params)
355
+ except TypeError:
356
+ if not unhashable_fallback:
357
+ raise
358
+ # Happens for cases like `Annotated[dict, {'x': IntValidator()}]`
359
+ new_unhashable = []
360
+ for t in params:
361
+ if t not in new_unhashable:
362
+ new_unhashable.append(t)
363
+ return new_unhashable
364
+
365
+ def _flatten_literal_params(parameters):
366
+ """Internal helper for Literal creation: flatten Literals among parameters."""
367
+ params = []
368
+ for p in parameters:
369
+ if isinstance(p, _LiteralGenericAlias):
370
+ params.extend(p.__args__)
371
+ else:
372
+ params.append(p)
373
+ return tuple(params)
374
+
375
+
376
+ _cleanups = []
377
+ _caches = {}
378
+
379
+
380
+ def _tp_cache(func=None, /, *, typed=False):
381
+ """Internal wrapper caching __getitem__ of generic types.
382
+
383
+ For non-hashable arguments, the original function is used as a fallback.
384
+ """
385
+ def decorator(func):
386
+ # The callback 'inner' references the newly created lru_cache
387
+ # indirectly by performing a lookup in the global '_caches' dictionary.
388
+ # This breaks a reference that can be problematic when combined with
389
+ # C API extensions that leak references to types. See GH-98253.
390
+
391
+ cache = functools.lru_cache(typed=typed)(func)
392
+ _caches[func] = cache
393
+ _cleanups.append(cache.cache_clear)
394
+ del cache
395
+
396
+ @functools.wraps(func)
397
+ def inner(*args, **kwds):
398
+ try:
399
+ return _caches[func](*args, **kwds)
400
+ except TypeError:
401
+ pass # All real errors (not unhashable args) are raised below.
402
+ return func(*args, **kwds)
403
+ return inner
404
+
405
+ if func is not None:
406
+ return decorator(func)
407
+
408
+ return decorator
409
+
410
+
411
+ def _deprecation_warning_for_no_type_params_passed(funcname: str) -> None:
412
+ import warnings
413
+
414
+ depr_message = (
415
+ f"Failing to pass a value to the 'type_params' parameter "
416
+ f"of {funcname!r} is deprecated, as it leads to incorrect behaviour "
417
+ f"when calling {funcname} on a stringified annotation "
418
+ f"that references a PEP 695 type parameter. "
419
+ f"It will be disallowed in Python 3.15."
420
+ )
421
+ warnings.warn(depr_message, category=DeprecationWarning, stacklevel=3)
422
+
423
+
424
+ class _Sentinel:
425
+ __slots__ = ()
426
+ def __repr__(self):
427
+ return '<sentinel>'
428
+
429
+
430
+ _sentinel = _Sentinel()
431
+
432
+
433
+ def _eval_type(t, globalns, localns, type_params=_sentinel, *, recursive_guard=frozenset(),
434
+ format=None, owner=None, parent_fwdref=None, prefer_fwd_module=False):
435
+ """Evaluate all forward references in the given type t.
436
+
437
+ For use of globalns and localns see the docstring for get_type_hints().
438
+ recursive_guard is used to prevent infinite recursion with a recursive
439
+ ForwardRef.
440
+ """
441
+ if type_params is _sentinel:
442
+ _deprecation_warning_for_no_type_params_passed("typing._eval_type")
443
+ type_params = ()
444
+ if isinstance(t, _lazy_annotationlib.ForwardRef):
445
+ # If the forward_ref has __forward_module__ set, evaluate() infers the globals
446
+ # from the module, and it will probably pick better than the globals we have here.
447
+ # We do this only for calls from get_type_hints() (which opts in through the
448
+ # prefer_fwd_module flag), so that the default behavior remains more straightforward.
449
+ if prefer_fwd_module and t.__forward_module__ is not None:
450
+ globalns = None
451
+ # If there are type params on the owner, we need to add them back, because
452
+ # annotationlib won't.
453
+ if owner_type_params := getattr(owner, "__type_params__", None):
454
+ globalns = getattr(
455
+ sys.modules.get(t.__forward_module__, None), "__dict__", None
456
+ )
457
+ if globalns is not None:
458
+ globalns = dict(globalns)
459
+ for type_param in owner_type_params:
460
+ globalns[type_param.__name__] = type_param
461
+ return evaluate_forward_ref(t, globals=globalns, locals=localns,
462
+ type_params=type_params, owner=owner,
463
+ _recursive_guard=recursive_guard, format=format)
464
+ if isinstance(t, (_GenericAlias, GenericAlias, Union)):
465
+ if isinstance(t, GenericAlias):
466
+ args = tuple(
467
+ _make_forward_ref(arg, parent_fwdref=parent_fwdref) if isinstance(arg, str) else arg
468
+ for arg in t.__args__
469
+ )
470
+ is_unpacked = t.__unpacked__
471
+ if _should_unflatten_callable_args(t, args):
472
+ t = t.__origin__[(args[:-1], args[-1])]
473
+ else:
474
+ t = t.__origin__[args]
475
+ if is_unpacked:
476
+ t = Unpack[t]
477
+
478
+ ev_args = tuple(
479
+ _eval_type(
480
+ a, globalns, localns, type_params, recursive_guard=recursive_guard,
481
+ format=format, owner=owner, prefer_fwd_module=prefer_fwd_module,
482
+ )
483
+ for a in t.__args__
484
+ )
485
+ if ev_args == t.__args__:
486
+ return t
487
+ if isinstance(t, GenericAlias):
488
+ return GenericAlias(t.__origin__, ev_args)
489
+ if isinstance(t, Union):
490
+ return functools.reduce(operator.or_, ev_args)
491
+ else:
492
+ return t.copy_with(ev_args)
493
+ return t
494
+
495
+
496
+ class _Final:
497
+ """Mixin to prohibit subclassing."""
498
+
499
+ __slots__ = ('__weakref__',)
500
+
501
+ def __init_subclass__(cls, /, *args, **kwds):
502
+ if '_root' not in kwds:
503
+ raise TypeError("Cannot subclass special typing classes")
504
+
505
+
506
+ class _NotIterable:
507
+ """Mixin to prevent iteration, without being compatible with Iterable.
508
+
509
+ That is, we could do::
510
+
511
+ def __iter__(self): raise TypeError()
512
+
513
+ But this would make users of this mixin duck type-compatible with
514
+ collections.abc.Iterable - isinstance(foo, Iterable) would be True.
515
+
516
+ Luckily, we can instead prevent iteration by setting __iter__ to None, which
517
+ is treated specially.
518
+ """
519
+
520
+ __slots__ = ()
521
+ __iter__ = None
522
+
523
+
524
+ # Internal indicator of special typing constructs.
525
+ # See __doc__ instance attribute for specific docs.
526
+ class _SpecialForm(_Final, _NotIterable, _root=True):
527
+ __slots__ = ('_name', '__doc__', '_getitem')
528
+
529
+ def __init__(self, getitem):
530
+ self._getitem = getitem
531
+ self._name = getitem.__name__
532
+ self.__doc__ = getitem.__doc__
533
+
534
+ def __getattr__(self, item):
535
+ if item in {'__name__', '__qualname__'}:
536
+ return self._name
537
+
538
+ raise AttributeError(item)
539
+
540
+ def __mro_entries__(self, bases):
541
+ raise TypeError(f"Cannot subclass {self!r}")
542
+
543
+ def __repr__(self):
544
+ return 'typing.' + self._name
545
+
546
+ def __reduce__(self):
547
+ return self._name
548
+
549
+ def __call__(self, *args, **kwds):
550
+ raise TypeError(f"Cannot instantiate {self!r}")
551
+
552
+ def __or__(self, other):
553
+ return Union[self, other]
554
+
555
+ def __ror__(self, other):
556
+ return Union[other, self]
557
+
558
+ def __instancecheck__(self, obj):
559
+ raise TypeError(f"{self} cannot be used with isinstance()")
560
+
561
+ def __subclasscheck__(self, cls):
562
+ raise TypeError(f"{self} cannot be used with issubclass()")
563
+
564
+ @_tp_cache
565
+ def __getitem__(self, parameters):
566
+ return self._getitem(self, parameters)
567
+
568
+
569
+ class _TypedCacheSpecialForm(_SpecialForm, _root=True):
570
+ def __getitem__(self, parameters):
571
+ if not isinstance(parameters, tuple):
572
+ parameters = (parameters,)
573
+ return self._getitem(self, *parameters)
574
+
575
+
576
+ class _AnyMeta(type):
577
+ def __instancecheck__(self, obj):
578
+ if self is Any:
579
+ raise TypeError("typing.Any cannot be used with isinstance()")
580
+ return super().__instancecheck__(obj)
581
+
582
+ def __repr__(self):
583
+ if self is Any:
584
+ return "typing.Any"
585
+ return super().__repr__() # respect to subclasses
586
+
587
+
588
+ class Any(metaclass=_AnyMeta):
589
+ """Special type indicating an unconstrained type.
590
+
591
+ - Any is compatible with every type.
592
+ - Any assumed to have all methods.
593
+ - All values assumed to be instances of Any.
594
+
595
+ Note that all the above statements are true from the point of view of
596
+ static type checkers. At runtime, Any should not be used with instance
597
+ checks.
598
+ """
599
+
600
+ def __new__(cls, *args, **kwargs):
601
+ if cls is Any:
602
+ raise TypeError("Any cannot be instantiated")
603
+ return super().__new__(cls)
604
+
605
+
606
+ @_SpecialForm
607
+ def NoReturn(self, parameters):
608
+ """Special type indicating functions that never return.
609
+
610
+ Example::
611
+
612
+ from typing import NoReturn
613
+
614
+ def stop() -> NoReturn:
615
+ raise Exception('no way')
616
+
617
+ NoReturn can also be used as a bottom type, a type that
618
+ has no values. Starting in Python 3.11, the Never type should
619
+ be used for this concept instead. Type checkers should treat the two
620
+ equivalently.
621
+ """
622
+ raise TypeError(f"{self} is not subscriptable")
623
+
624
+ # This is semantically identical to NoReturn, but it is implemented
625
+ # separately so that type checkers can distinguish between the two
626
+ # if they want.
627
+ @_SpecialForm
628
+ def Never(self, parameters):
629
+ """The bottom type, a type that has no members.
630
+
631
+ This can be used to define a function that should never be
632
+ called, or a function that never returns::
633
+
634
+ from typing import Never
635
+
636
+ def never_call_me(arg: Never) -> None:
637
+ pass
638
+
639
+ def int_or_str(arg: int | str) -> None:
640
+ never_call_me(arg) # type checker error
641
+ match arg:
642
+ case int():
643
+ print("It's an int")
644
+ case str():
645
+ print("It's a str")
646
+ case _:
647
+ never_call_me(arg) # OK, arg is of type Never
648
+ """
649
+ raise TypeError(f"{self} is not subscriptable")
650
+
651
+
652
+ @_SpecialForm
653
+ def Self(self, parameters):
654
+ """Used to spell the type of "self" in classes.
655
+
656
+ Example::
657
+
658
+ from typing import Self
659
+
660
+ class Foo:
661
+ def return_self(self) -> Self:
662
+ ...
663
+ return self
664
+
665
+ This is especially useful for:
666
+ - classmethods that are used as alternative constructors
667
+ - annotating an `__enter__` method which returns self
668
+ """
669
+ raise TypeError(f"{self} is not subscriptable")
670
+
671
+
672
+ @_SpecialForm
673
+ def LiteralString(self, parameters):
674
+ """Represents an arbitrary literal string.
675
+
676
+ Example::
677
+
678
+ from typing import LiteralString
679
+
680
+ def run_query(sql: LiteralString) -> None:
681
+ ...
682
+
683
+ def caller(arbitrary_string: str, literal_string: LiteralString) -> None:
684
+ run_query("SELECT * FROM students") # OK
685
+ run_query(literal_string) # OK
686
+ run_query("SELECT * FROM " + literal_string) # OK
687
+ run_query(arbitrary_string) # type checker error
688
+ run_query( # type checker error
689
+ f"SELECT * FROM students WHERE name = {arbitrary_string}"
690
+ )
691
+
692
+ Only string literals and other LiteralStrings are compatible
693
+ with LiteralString. This provides a tool to help prevent
694
+ security issues such as SQL injection.
695
+ """
696
+ raise TypeError(f"{self} is not subscriptable")
697
+
698
+
699
+ @_SpecialForm
700
+ def ClassVar(self, parameters):
701
+ """Special type construct to mark class variables.
702
+
703
+ An annotation wrapped in ClassVar indicates that a given
704
+ attribute is intended to be used as a class variable and
705
+ should not be set on instances of that class.
706
+
707
+ Usage::
708
+
709
+ class Starship:
710
+ stats: ClassVar[dict[str, int]] = {} # class variable
711
+ damage: int = 10 # instance variable
712
+
713
+ ClassVar accepts only types and cannot be further subscribed.
714
+
715
+ Note that ClassVar is not a class itself, and should not
716
+ be used with isinstance() or issubclass().
717
+ """
718
+ item = _type_check(parameters, f'{self} accepts only single type.', allow_special_forms=True)
719
+ return _GenericAlias(self, (item,))
720
+
721
+ @_SpecialForm
722
+ def Final(self, parameters):
723
+ """Special typing construct to indicate final names to type checkers.
724
+
725
+ A final name cannot be re-assigned or overridden in a subclass.
726
+
727
+ For example::
728
+
729
+ MAX_SIZE: Final = 9000
730
+ MAX_SIZE += 1 # Error reported by type checker
731
+
732
+ class Connection:
733
+ TIMEOUT: Final[int] = 10
734
+
735
+ class FastConnector(Connection):
736
+ TIMEOUT = 1 # Error reported by type checker
737
+
738
+ There is no runtime checking of these properties.
739
+ """
740
+ item = _type_check(parameters, f'{self} accepts only single type.', allow_special_forms=True)
741
+ return _GenericAlias(self, (item,))
742
+
743
+ @_SpecialForm
744
+ def Optional(self, parameters):
745
+ """Optional[X] is equivalent to Union[X, None]."""
746
+ arg = _type_check(parameters, f"{self} requires a single type.")
747
+ return Union[arg, type(None)]
748
+
749
+ @_TypedCacheSpecialForm
750
+ @_tp_cache(typed=True)
751
+ def Literal(self, *parameters):
752
+ """Special typing form to define literal types (a.k.a. value types).
753
+
754
+ This form can be used to indicate to type checkers that the corresponding
755
+ variable or function parameter has a value equivalent to the provided
756
+ literal (or one of several literals)::
757
+
758
+ def validate_simple(data: Any) -> Literal[True]: # always returns True
759
+ ...
760
+
761
+ MODE = Literal['r', 'rb', 'w', 'wb']
762
+ def open_helper(file: str, mode: MODE) -> str:
763
+ ...
764
+
765
+ open_helper('/some/path', 'r') # Passes type check
766
+ open_helper('/other/path', 'typo') # Error in type checker
767
+
768
+ Literal[...] cannot be subclassed. At runtime, an arbitrary value
769
+ is allowed as type argument to Literal[...], but type checkers may
770
+ impose restrictions.
771
+ """
772
+ # There is no '_type_check' call because arguments to Literal[...] are
773
+ # values, not types.
774
+ parameters = _flatten_literal_params(parameters)
775
+
776
+ try:
777
+ parameters = tuple(p for p, _ in _deduplicate(list(_value_and_type_iter(parameters))))
778
+ except TypeError: # unhashable parameters
779
+ pass
780
+
781
+ return _LiteralGenericAlias(self, parameters)
782
+
783
+
784
+ @_SpecialForm
785
+ def TypeAlias(self, parameters):
786
+ """Special form for marking type aliases.
787
+
788
+ Use TypeAlias to indicate that an assignment should
789
+ be recognized as a proper type alias definition by type
790
+ checkers.
791
+
792
+ For example::
793
+
794
+ Predicate: TypeAlias = Callable[..., bool]
795
+
796
+ It's invalid when used anywhere except as in the example above.
797
+ """
798
+ raise TypeError(f"{self} is not subscriptable")
799
+
800
+
801
+ @_SpecialForm
802
+ def Concatenate(self, parameters):
803
+ """Special form for annotating higher-order functions.
804
+
805
+ ``Concatenate`` can be used in conjunction with ``ParamSpec`` and
806
+ ``Callable`` to represent a higher-order function which adds, removes or
807
+ transforms the parameters of a callable.
808
+
809
+ For example::
810
+
811
+ Callable[Concatenate[int, P], int]
812
+
813
+ See PEP 612 for detailed information.
814
+ """
815
+ if parameters == ():
816
+ raise TypeError("Cannot take a Concatenate of no types.")
817
+ if not isinstance(parameters, tuple):
818
+ parameters = (parameters,)
819
+ if not (parameters[-1] is ... or isinstance(parameters[-1], ParamSpec)):
820
+ raise TypeError("The last parameter to Concatenate should be a "
821
+ "ParamSpec variable or ellipsis.")
822
+ msg = "Concatenate[arg, ...]: each arg must be a type."
823
+ parameters = (*(_type_check(p, msg) for p in parameters[:-1]), parameters[-1])
824
+ return _ConcatenateGenericAlias(self, parameters)
825
+
826
+
827
+ @_SpecialForm
828
+ def TypeGuard(self, parameters):
829
+ """Special typing construct for marking user-defined type predicate functions.
830
+
831
+ ``TypeGuard`` can be used to annotate the return type of a user-defined
832
+ type predicate function. ``TypeGuard`` only accepts a single type argument.
833
+ At runtime, functions marked this way should return a boolean.
834
+
835
+ ``TypeGuard`` aims to benefit *type narrowing* -- a technique used by static
836
+ type checkers to determine a more precise type of an expression within a
837
+ program's code flow. Usually type narrowing is done by analyzing
838
+ conditional code flow and applying the narrowing to a block of code. The
839
+ conditional expression here is sometimes referred to as a "type predicate".
840
+
841
+ Sometimes it would be convenient to use a user-defined boolean function
842
+ as a type predicate. Such a function should use ``TypeGuard[...]`` or
843
+ ``TypeIs[...]`` as its return type to alert static type checkers to
844
+ this intention. ``TypeGuard`` should be used over ``TypeIs`` when narrowing
845
+ from an incompatible type (e.g., ``list[object]`` to ``list[int]``) or when
846
+ the function does not return ``True`` for all instances of the narrowed type.
847
+
848
+ Using ``-> TypeGuard[NarrowedType]`` tells the static type checker that
849
+ for a given function:
850
+
851
+ 1. The return value is a boolean.
852
+ 2. If the return value is ``True``, the type of its argument
853
+ is ``NarrowedType``.
854
+
855
+ For example::
856
+
857
+ def is_str_list(val: list[object]) -> TypeGuard[list[str]]:
858
+ '''Determines whether all objects in the list are strings'''
859
+ return all(isinstance(x, str) for x in val)
860
+
861
+ def func1(val: list[object]):
862
+ if is_str_list(val):
863
+ # Type of ``val`` is narrowed to ``list[str]``.
864
+ print(" ".join(val))
865
+ else:
866
+ # Type of ``val`` remains as ``list[object]``.
867
+ print("Not a list of strings!")
868
+
869
+ Strict type narrowing is not enforced -- ``TypeB`` need not be a narrower
870
+ form of ``TypeA`` (it can even be a wider form) and this may lead to
871
+ type-unsafe results. The main reason is to allow for things like
872
+ narrowing ``list[object]`` to ``list[str]`` even though the latter is not
873
+ a subtype of the former, since ``list`` is invariant. The responsibility of
874
+ writing type-safe type predicates is left to the user.
875
+
876
+ ``TypeGuard`` also works with type variables. For more information, see
877
+ PEP 647 (User-Defined Type Guards).
878
+ """
879
+ item = _type_check(parameters, f'{self} accepts only single type.')
880
+ return _GenericAlias(self, (item,))
881
+
882
+
883
+ @_SpecialForm
884
+ def TypeIs(self, parameters):
885
+ """Special typing construct for marking user-defined type predicate functions.
886
+
887
+ ``TypeIs`` can be used to annotate the return type of a user-defined
888
+ type predicate function. ``TypeIs`` only accepts a single type argument.
889
+ At runtime, functions marked this way should return a boolean and accept
890
+ at least one argument.
891
+
892
+ ``TypeIs`` aims to benefit *type narrowing* -- a technique used by static
893
+ type checkers to determine a more precise type of an expression within a
894
+ program's code flow. Usually type narrowing is done by analyzing
895
+ conditional code flow and applying the narrowing to a block of code. The
896
+ conditional expression here is sometimes referred to as a "type predicate".
897
+
898
+ Sometimes it would be convenient to use a user-defined boolean function
899
+ as a type predicate. Such a function should use ``TypeIs[...]`` or
900
+ ``TypeGuard[...]`` as its return type to alert static type checkers to
901
+ this intention. ``TypeIs`` usually has more intuitive behavior than
902
+ ``TypeGuard``, but it cannot be used when the input and output types
903
+ are incompatible (e.g., ``list[object]`` to ``list[int]``) or when the
904
+ function does not return ``True`` for all instances of the narrowed type.
905
+
906
+ Using ``-> TypeIs[NarrowedType]`` tells the static type checker that for
907
+ a given function:
908
+
909
+ 1. The return value is a boolean.
910
+ 2. If the return value is ``True``, the type of its argument
911
+ is the intersection of the argument's original type and
912
+ ``NarrowedType``.
913
+ 3. If the return value is ``False``, the type of its argument
914
+ is narrowed to exclude ``NarrowedType``.
915
+
916
+ For example::
917
+
918
+ from typing import assert_type, final, TypeIs
919
+
920
+ class Parent: pass
921
+ class Child(Parent): pass
922
+ @final
923
+ class Unrelated: pass
924
+
925
+ def is_parent(val: object) -> TypeIs[Parent]:
926
+ return isinstance(val, Parent)
927
+
928
+ def run(arg: Child | Unrelated):
929
+ if is_parent(arg):
930
+ # Type of ``arg`` is narrowed to the intersection
931
+ # of ``Parent`` and ``Child``, which is equivalent to
932
+ # ``Child``.
933
+ assert_type(arg, Child)
934
+ else:
935
+ # Type of ``arg`` is narrowed to exclude ``Parent``,
936
+ # so only ``Unrelated`` is left.
937
+ assert_type(arg, Unrelated)
938
+
939
+ The type inside ``TypeIs`` must be consistent with the type of the
940
+ function's argument; if it is not, static type checkers will raise
941
+ an error. An incorrectly written ``TypeIs`` function can lead to
942
+ unsound behavior in the type system; it is the user's responsibility
943
+ to write such functions in a type-safe manner.
944
+
945
+ ``TypeIs`` also works with type variables. For more information, see
946
+ PEP 742 (Narrowing types with ``TypeIs``).
947
+ """
948
+ item = _type_check(parameters, f'{self} accepts only single type.')
949
+ return _GenericAlias(self, (item,))
950
+
951
+
952
+ def _make_forward_ref(code, *, parent_fwdref=None, **kwargs):
953
+ if parent_fwdref is not None:
954
+ if parent_fwdref.__forward_module__ is not None:
955
+ kwargs['module'] = parent_fwdref.__forward_module__
956
+ if parent_fwdref.__owner__ is not None:
957
+ kwargs['owner'] = parent_fwdref.__owner__
958
+ forward_ref = _lazy_annotationlib.ForwardRef(code, **kwargs)
959
+ # For compatibility, eagerly compile the forwardref's code.
960
+ forward_ref.__forward_code__
961
+ return forward_ref
962
+
963
+
964
+ def evaluate_forward_ref(
965
+ forward_ref,
966
+ *,
967
+ owner=None,
968
+ globals=None,
969
+ locals=None,
970
+ type_params=None,
971
+ format=None,
972
+ _recursive_guard=frozenset(),
973
+ ):
974
+ """Evaluate a forward reference as a type hint.
975
+
976
+ This is similar to calling the ForwardRef.evaluate() method,
977
+ but unlike that method, evaluate_forward_ref() also
978
+ recursively evaluates forward references nested within the type hint.
979
+
980
+ *forward_ref* must be an instance of ForwardRef. *owner*, if given,
981
+ should be the object that holds the annotations that the forward reference
982
+ derived from, such as a module, class object, or function. It is used to
983
+ infer the namespaces to use for looking up names. *globals* and *locals*
984
+ can also be explicitly given to provide the global and local namespaces.
985
+ *type_params* is a tuple of type parameters that are in scope when
986
+ evaluating the forward reference. This parameter should be provided (though
987
+ it may be an empty tuple) if *owner* is not given and the forward reference
988
+ does not already have an owner set. *format* specifies the format of the
989
+ annotation and is a member of the annotationlib.Format enum, defaulting to
990
+ VALUE.
991
+
992
+ """
993
+ if format == _lazy_annotationlib.Format.STRING:
994
+ return forward_ref.__forward_arg__
995
+ if forward_ref.__forward_arg__ in _recursive_guard:
996
+ return forward_ref
997
+
998
+ if format is None:
999
+ format = _lazy_annotationlib.Format.VALUE
1000
+ value = forward_ref.evaluate(globals=globals, locals=locals,
1001
+ type_params=type_params, owner=owner, format=format)
1002
+
1003
+ if (isinstance(value, _lazy_annotationlib.ForwardRef)
1004
+ and format == _lazy_annotationlib.Format.FORWARDREF):
1005
+ return value
1006
+
1007
+ if isinstance(value, str):
1008
+ value = _make_forward_ref(value, module=forward_ref.__forward_module__,
1009
+ owner=owner or forward_ref.__owner__,
1010
+ is_argument=forward_ref.__forward_is_argument__,
1011
+ is_class=forward_ref.__forward_is_class__)
1012
+ if owner is None:
1013
+ owner = forward_ref.__owner__
1014
+ return _eval_type(
1015
+ value,
1016
+ globals,
1017
+ locals,
1018
+ type_params,
1019
+ recursive_guard=_recursive_guard | {forward_ref.__forward_arg__},
1020
+ format=format,
1021
+ owner=owner,
1022
+ parent_fwdref=forward_ref,
1023
+ )
1024
+
1025
+
1026
+ def _is_unpacked_typevartuple(x: Any) -> bool:
1027
+ # Need to check 'is True' here
1028
+ # See: https://github.com/python/cpython/issues/137706
1029
+ return ((not isinstance(x, type)) and
1030
+ getattr(x, '__typing_is_unpacked_typevartuple__', False) is True)
1031
+
1032
+
1033
+ def _is_typevar_like(x: Any) -> bool:
1034
+ return isinstance(x, (TypeVar, ParamSpec)) or _is_unpacked_typevartuple(x)
1035
+
1036
+
1037
+ def _typevar_subst(self, arg):
1038
+ msg = "Parameters to generic types must be types."
1039
+ arg = _type_check(arg, msg, is_argument=True)
1040
+ if ((isinstance(arg, _GenericAlias) and arg.__origin__ is Unpack) or
1041
+ (isinstance(arg, GenericAlias) and getattr(arg, '__unpacked__', False))):
1042
+ raise TypeError(f"{arg} is not valid as type argument")
1043
+ return arg
1044
+
1045
+
1046
+ def _typevartuple_prepare_subst(self, alias, args):
1047
+ params = alias.__parameters__
1048
+ typevartuple_index = params.index(self)
1049
+ for param in params[typevartuple_index + 1:]:
1050
+ if isinstance(param, TypeVarTuple):
1051
+ raise TypeError(f"More than one TypeVarTuple parameter in {alias}")
1052
+
1053
+ alen = len(args)
1054
+ plen = len(params)
1055
+ left = typevartuple_index
1056
+ right = plen - typevartuple_index - 1
1057
+ var_tuple_index = None
1058
+ fillarg = None
1059
+ for k, arg in enumerate(args):
1060
+ if not isinstance(arg, type):
1061
+ subargs = getattr(arg, '__typing_unpacked_tuple_args__', None)
1062
+ if subargs and len(subargs) == 2 and subargs[-1] is ...:
1063
+ if var_tuple_index is not None:
1064
+ raise TypeError("More than one unpacked arbitrary-length tuple argument")
1065
+ var_tuple_index = k
1066
+ fillarg = subargs[0]
1067
+ if var_tuple_index is not None:
1068
+ left = min(left, var_tuple_index)
1069
+ right = min(right, alen - var_tuple_index - 1)
1070
+ elif left + right > alen:
1071
+ raise TypeError(f"Too few arguments for {alias};"
1072
+ f" actual {alen}, expected at least {plen-1}")
1073
+ if left == alen - right and self.has_default():
1074
+ replacement = _unpack_args(self.__default__)
1075
+ else:
1076
+ replacement = args[left: alen - right]
1077
+
1078
+ return (
1079
+ *args[:left],
1080
+ *([fillarg]*(typevartuple_index - left)),
1081
+ replacement,
1082
+ *([fillarg]*(plen - right - left - typevartuple_index - 1)),
1083
+ *args[alen - right:],
1084
+ )
1085
+
1086
+
1087
+ def _paramspec_subst(self, arg):
1088
+ if isinstance(arg, (list, tuple)):
1089
+ arg = tuple(_type_check(a, "Expected a type.") for a in arg)
1090
+ elif not _is_param_expr(arg):
1091
+ raise TypeError(f"Expected a list of types, an ellipsis, "
1092
+ f"ParamSpec, or Concatenate. Got {arg}")
1093
+ return arg
1094
+
1095
+
1096
+ def _paramspec_prepare_subst(self, alias, args):
1097
+ params = alias.__parameters__
1098
+ i = params.index(self)
1099
+ if i == len(args) and self.has_default():
1100
+ args = (*args, self.__default__)
1101
+ if i >= len(args):
1102
+ raise TypeError(f"Too few arguments for {alias}")
1103
+ # Special case where Z[[int, str, bool]] == Z[int, str, bool] in PEP 612.
1104
+ if len(params) == 1 and not _is_param_expr(args[0]):
1105
+ assert i == 0
1106
+ args = (args,)
1107
+ # Convert lists to tuples to help other libraries cache the results.
1108
+ elif isinstance(args[i], list):
1109
+ args = (*args[:i], tuple(args[i]), *args[i+1:])
1110
+ return args
1111
+
1112
+
1113
+ @_tp_cache
1114
+ def _generic_class_getitem(cls, args):
1115
+ """Parameterizes a generic class.
1116
+
1117
+ At least, parameterizing a generic class is the *main* thing this method
1118
+ does. For example, for some generic class `Foo`, this is called when we
1119
+ do `Foo[int]` - there, with `cls=Foo` and `args=int`.
1120
+
1121
+ However, note that this method is also called when defining generic
1122
+ classes in the first place with `class Foo(Generic[T]): ...`.
1123
+ """
1124
+ if not isinstance(args, tuple):
1125
+ args = (args,)
1126
+
1127
+ args = tuple(_type_convert(p) for p in args)
1128
+ is_generic_or_protocol = cls in (Generic, Protocol)
1129
+
1130
+ if is_generic_or_protocol:
1131
+ # Generic and Protocol can only be subscripted with unique type variables.
1132
+ if not args:
1133
+ raise TypeError(
1134
+ f"Parameter list to {cls.__qualname__}[...] cannot be empty"
1135
+ )
1136
+ if not all(_is_typevar_like(p) for p in args):
1137
+ raise TypeError(
1138
+ f"Parameters to {cls.__name__}[...] must all be type variables "
1139
+ f"or parameter specification variables.")
1140
+ if len(set(args)) != len(args):
1141
+ raise TypeError(
1142
+ f"Parameters to {cls.__name__}[...] must all be unique")
1143
+ else:
1144
+ # Subscripting a regular Generic subclass.
1145
+ try:
1146
+ parameters = cls.__parameters__
1147
+ except AttributeError as e:
1148
+ init_subclass = getattr(cls, '__init_subclass__', None)
1149
+ if init_subclass not in {None, Generic.__init_subclass__}:
1150
+ e.add_note(
1151
+ f"Note: this exception may have been caused by "
1152
+ f"{init_subclass.__qualname__!r} (or the "
1153
+ f"'__init_subclass__' method on a superclass) not "
1154
+ f"calling 'super().__init_subclass__()'"
1155
+ )
1156
+ raise
1157
+ for param in parameters:
1158
+ prepare = getattr(param, '__typing_prepare_subst__', None)
1159
+ if prepare is not None:
1160
+ args = prepare(cls, args)
1161
+ _check_generic_specialization(cls, args)
1162
+
1163
+ new_args = []
1164
+ for param, new_arg in zip(parameters, args):
1165
+ if isinstance(param, TypeVarTuple):
1166
+ new_args.extend(new_arg)
1167
+ else:
1168
+ new_args.append(new_arg)
1169
+ args = tuple(new_args)
1170
+
1171
+ return _GenericAlias(cls, args)
1172
+
1173
+
1174
+ def _generic_init_subclass(cls, *args, **kwargs):
1175
+ super(Generic, cls).__init_subclass__(*args, **kwargs)
1176
+ tvars = []
1177
+ if '__orig_bases__' in cls.__dict__:
1178
+ error = Generic in cls.__orig_bases__
1179
+ else:
1180
+ error = (Generic in cls.__bases__ and
1181
+ cls.__name__ != 'Protocol' and
1182
+ type(cls) != _TypedDictMeta)
1183
+ if error:
1184
+ raise TypeError("Cannot inherit from plain Generic")
1185
+ if '__orig_bases__' in cls.__dict__:
1186
+ tvars = _collect_type_parameters(cls.__orig_bases__)
1187
+ # Look for Generic[T1, ..., Tn].
1188
+ # If found, tvars must be a subset of it.
1189
+ # If not found, tvars is it.
1190
+ # Also check for and reject plain Generic,
1191
+ # and reject multiple Generic[...].
1192
+ gvars = None
1193
+ for base in cls.__orig_bases__:
1194
+ if (isinstance(base, _GenericAlias) and
1195
+ base.__origin__ is Generic):
1196
+ if gvars is not None:
1197
+ raise TypeError(
1198
+ "Cannot inherit from Generic[...] multiple times.")
1199
+ gvars = base.__parameters__
1200
+ if gvars is not None:
1201
+ tvarset = set(tvars)
1202
+ gvarset = set(gvars)
1203
+ if not tvarset <= gvarset:
1204
+ s_vars = ', '.join(str(t) for t in tvars if t not in gvarset)
1205
+ s_args = ', '.join(str(g) for g in gvars)
1206
+ raise TypeError(f"Some type variables ({s_vars}) are"
1207
+ f" not listed in Generic[{s_args}]")
1208
+ tvars = gvars
1209
+ cls.__parameters__ = tuple(tvars)
1210
+
1211
+
1212
+ def _is_dunder(attr):
1213
+ return attr.startswith('__') and attr.endswith('__')
1214
+
1215
+ class _BaseGenericAlias(_Final, _root=True):
1216
+ """The central part of the internal API.
1217
+
1218
+ This represents a generic version of type 'origin' with type arguments 'params'.
1219
+ There are two kind of these aliases: user defined and special. The special ones
1220
+ are wrappers around builtin collections and ABCs in collections.abc. These must
1221
+ have 'name' always set. If 'inst' is False, then the alias can't be instantiated;
1222
+ this is used by e.g. typing.List and typing.Dict.
1223
+ """
1224
+
1225
+ def __init__(self, origin, *, inst=True, name=None):
1226
+ self._inst = inst
1227
+ self._name = name
1228
+ self.__origin__ = origin
1229
+ self.__slots__ = None # This is not documented.
1230
+
1231
+ def __call__(self, *args, **kwargs):
1232
+ if not self._inst:
1233
+ raise TypeError(f"Type {self._name} cannot be instantiated; "
1234
+ f"use {self.__origin__.__name__}() instead")
1235
+ result = self.__origin__(*args, **kwargs)
1236
+ try:
1237
+ result.__orig_class__ = self
1238
+ # Some objects raise TypeError (or something even more exotic)
1239
+ # if you try to set attributes on them; we guard against that here
1240
+ except Exception:
1241
+ pass
1242
+ return result
1243
+
1244
+ def __mro_entries__(self, bases):
1245
+ res = []
1246
+ if self.__origin__ not in bases:
1247
+ res.append(self.__origin__)
1248
+
1249
+ # Check if any base that occurs after us in `bases` is either itself a
1250
+ # subclass of Generic, or something which will add a subclass of Generic
1251
+ # to `__bases__` via its `__mro_entries__`. If not, add Generic
1252
+ # ourselves. The goal is to ensure that Generic (or a subclass) will
1253
+ # appear exactly once in the final bases tuple. If we let it appear
1254
+ # multiple times, we risk "can't form a consistent MRO" errors.
1255
+ i = bases.index(self)
1256
+ for b in bases[i+1:]:
1257
+ if isinstance(b, _BaseGenericAlias):
1258
+ break
1259
+ if not isinstance(b, type):
1260
+ meth = getattr(b, "__mro_entries__", None)
1261
+ new_bases = meth(bases) if meth else None
1262
+ if (
1263
+ isinstance(new_bases, tuple) and
1264
+ any(
1265
+ isinstance(b2, type) and issubclass(b2, Generic)
1266
+ for b2 in new_bases
1267
+ )
1268
+ ):
1269
+ break
1270
+ elif issubclass(b, Generic):
1271
+ break
1272
+ else:
1273
+ res.append(Generic)
1274
+ return tuple(res)
1275
+
1276
+ def __getattr__(self, attr):
1277
+ if attr in {'__name__', '__qualname__'}:
1278
+ return self._name or self.__origin__.__name__
1279
+
1280
+ # We are careful for copy and pickle.
1281
+ # Also for simplicity we don't relay any dunder names
1282
+ if '__origin__' in self.__dict__ and not _is_dunder(attr):
1283
+ return getattr(self.__origin__, attr)
1284
+ raise AttributeError(attr)
1285
+
1286
+ def __setattr__(self, attr, val):
1287
+ if _is_dunder(attr) or attr in {'_name', '_inst', '_nparams', '_defaults'}:
1288
+ super().__setattr__(attr, val)
1289
+ else:
1290
+ setattr(self.__origin__, attr, val)
1291
+
1292
+ def __instancecheck__(self, obj):
1293
+ return self.__subclasscheck__(type(obj))
1294
+
1295
+ def __subclasscheck__(self, cls):
1296
+ raise TypeError("Subscripted generics cannot be used with"
1297
+ " class and instance checks")
1298
+
1299
+ def __dir__(self):
1300
+ return list(set(super().__dir__()
1301
+ + [attr for attr in dir(self.__origin__) if not _is_dunder(attr)]))
1302
+
1303
+
1304
+ # Special typing constructs Union, Optional, Generic, Callable and Tuple
1305
+ # use three special attributes for internal bookkeeping of generic types:
1306
+ # * __parameters__ is a tuple of unique free type parameters of a generic
1307
+ # type, for example, Dict[T, T].__parameters__ == (T,);
1308
+ # * __origin__ keeps a reference to a type that was subscripted,
1309
+ # e.g., Union[T, int].__origin__ == Union, or the non-generic version of
1310
+ # the type.
1311
+ # * __args__ is a tuple of all arguments used in subscripting,
1312
+ # e.g., Dict[T, int].__args__ == (T, int).
1313
+
1314
+
1315
+ class _GenericAlias(_BaseGenericAlias, _root=True):
1316
+ # The type of parameterized generics.
1317
+ #
1318
+ # That is, for example, `type(List[int])` is `_GenericAlias`.
1319
+ #
1320
+ # Objects which are instances of this class include:
1321
+ # * Parameterized container types, e.g. `Tuple[int]`, `List[int]`.
1322
+ # * Note that native container types, e.g. `tuple`, `list`, use
1323
+ # `types.GenericAlias` instead.
1324
+ # * Parameterized classes:
1325
+ # class C[T]: pass
1326
+ # # C[int] is a _GenericAlias
1327
+ # * `Callable` aliases, generic `Callable` aliases, and
1328
+ # parameterized `Callable` aliases:
1329
+ # T = TypeVar('T')
1330
+ # # _CallableGenericAlias inherits from _GenericAlias.
1331
+ # A = Callable[[], None] # _CallableGenericAlias
1332
+ # B = Callable[[T], None] # _CallableGenericAlias
1333
+ # C = B[int] # _CallableGenericAlias
1334
+ # * Parameterized `Final`, `ClassVar`, `TypeGuard`, and `TypeIs`:
1335
+ # # All _GenericAlias
1336
+ # Final[int]
1337
+ # ClassVar[float]
1338
+ # TypeGuard[bool]
1339
+ # TypeIs[range]
1340
+
1341
+ def __init__(self, origin, args, *, inst=True, name=None):
1342
+ super().__init__(origin, inst=inst, name=name)
1343
+ if not isinstance(args, tuple):
1344
+ args = (args,)
1345
+ self.__args__ = tuple(... if a is _TypingEllipsis else
1346
+ a for a in args)
1347
+ enforce_default_ordering = origin in (Generic, Protocol)
1348
+ self.__parameters__ = _collect_type_parameters(
1349
+ args,
1350
+ enforce_default_ordering=enforce_default_ordering,
1351
+ )
1352
+ if not name:
1353
+ self.__module__ = origin.__module__
1354
+
1355
+ def __eq__(self, other):
1356
+ if not isinstance(other, _GenericAlias):
1357
+ return NotImplemented
1358
+ return (self.__origin__ == other.__origin__
1359
+ and self.__args__ == other.__args__)
1360
+
1361
+ def __hash__(self):
1362
+ return hash((self.__origin__, self.__args__))
1363
+
1364
+ def __or__(self, right):
1365
+ return Union[self, right]
1366
+
1367
+ def __ror__(self, left):
1368
+ return Union[left, self]
1369
+
1370
+ @_tp_cache
1371
+ def __getitem__(self, args):
1372
+ # Parameterizes an already-parameterized object.
1373
+ #
1374
+ # For example, we arrive here doing something like:
1375
+ # T1 = TypeVar('T1')
1376
+ # T2 = TypeVar('T2')
1377
+ # T3 = TypeVar('T3')
1378
+ # class A(Generic[T1]): pass
1379
+ # B = A[T2] # B is a _GenericAlias
1380
+ # C = B[T3] # Invokes _GenericAlias.__getitem__
1381
+ #
1382
+ # We also arrive here when parameterizing a generic `Callable` alias:
1383
+ # T = TypeVar('T')
1384
+ # C = Callable[[T], None]
1385
+ # C[int] # Invokes _GenericAlias.__getitem__
1386
+
1387
+ if self.__origin__ in (Generic, Protocol):
1388
+ # Can't subscript Generic[...] or Protocol[...].
1389
+ raise TypeError(f"Cannot subscript already-subscripted {self}")
1390
+ if not self.__parameters__:
1391
+ raise TypeError(f"{self} is not a generic class")
1392
+
1393
+ # Preprocess `args`.
1394
+ if not isinstance(args, tuple):
1395
+ args = (args,)
1396
+ args = _unpack_args(*(_type_convert(p) for p in args))
1397
+ new_args = self._determine_new_args(args)
1398
+ r = self.copy_with(new_args)
1399
+ return r
1400
+
1401
+ def _determine_new_args(self, args):
1402
+ # Determines new __args__ for __getitem__.
1403
+ #
1404
+ # For example, suppose we had:
1405
+ # T1 = TypeVar('T1')
1406
+ # T2 = TypeVar('T2')
1407
+ # class A(Generic[T1, T2]): pass
1408
+ # T3 = TypeVar('T3')
1409
+ # B = A[int, T3]
1410
+ # C = B[str]
1411
+ # `B.__args__` is `(int, T3)`, so `C.__args__` should be `(int, str)`.
1412
+ # Unfortunately, this is harder than it looks, because if `T3` is
1413
+ # anything more exotic than a plain `TypeVar`, we need to consider
1414
+ # edge cases.
1415
+
1416
+ params = self.__parameters__
1417
+ # In the example above, this would be {T3: str}
1418
+ for param in params:
1419
+ prepare = getattr(param, '__typing_prepare_subst__', None)
1420
+ if prepare is not None:
1421
+ args = prepare(self, args)
1422
+ alen = len(args)
1423
+ plen = len(params)
1424
+ if alen != plen:
1425
+ raise TypeError(f"Too {'many' if alen > plen else 'few'} arguments for {self};"
1426
+ f" actual {alen}, expected {plen}")
1427
+ new_arg_by_param = dict(zip(params, args))
1428
+ return tuple(self._make_substitution(self.__args__, new_arg_by_param))
1429
+
1430
+ def _make_substitution(self, args, new_arg_by_param):
1431
+ """Create a list of new type arguments."""
1432
+ new_args = []
1433
+ for old_arg in args:
1434
+ if isinstance(old_arg, type):
1435
+ new_args.append(old_arg)
1436
+ continue
1437
+
1438
+ substfunc = getattr(old_arg, '__typing_subst__', None)
1439
+ if substfunc:
1440
+ new_arg = substfunc(new_arg_by_param[old_arg])
1441
+ else:
1442
+ subparams = getattr(old_arg, '__parameters__', ())
1443
+ if not subparams:
1444
+ new_arg = old_arg
1445
+ else:
1446
+ subargs = []
1447
+ for x in subparams:
1448
+ if isinstance(x, TypeVarTuple):
1449
+ subargs.extend(new_arg_by_param[x])
1450
+ else:
1451
+ subargs.append(new_arg_by_param[x])
1452
+ new_arg = old_arg[tuple(subargs)]
1453
+
1454
+ if self.__origin__ == collections.abc.Callable and isinstance(new_arg, tuple):
1455
+ # Consider the following `Callable`.
1456
+ # C = Callable[[int], str]
1457
+ # Here, `C.__args__` should be (int, str) - NOT ([int], str).
1458
+ # That means that if we had something like...
1459
+ # P = ParamSpec('P')
1460
+ # T = TypeVar('T')
1461
+ # C = Callable[P, T]
1462
+ # D = C[[int, str], float]
1463
+ # ...we need to be careful; `new_args` should end up as
1464
+ # `(int, str, float)` rather than `([int, str], float)`.
1465
+ new_args.extend(new_arg)
1466
+ elif _is_unpacked_typevartuple(old_arg):
1467
+ # Consider the following `_GenericAlias`, `B`:
1468
+ # class A(Generic[*Ts]): ...
1469
+ # B = A[T, *Ts]
1470
+ # If we then do:
1471
+ # B[float, int, str]
1472
+ # The `new_arg` corresponding to `T` will be `float`, and the
1473
+ # `new_arg` corresponding to `*Ts` will be `(int, str)`. We
1474
+ # should join all these types together in a flat list
1475
+ # `(float, int, str)` - so again, we should `extend`.
1476
+ new_args.extend(new_arg)
1477
+ elif isinstance(old_arg, tuple):
1478
+ # Corner case:
1479
+ # P = ParamSpec('P')
1480
+ # T = TypeVar('T')
1481
+ # class Base(Generic[P]): ...
1482
+ # Can be substituted like this:
1483
+ # X = Base[[int, T]]
1484
+ # In this case, `old_arg` will be a tuple:
1485
+ new_args.append(
1486
+ tuple(self._make_substitution(old_arg, new_arg_by_param)),
1487
+ )
1488
+ else:
1489
+ new_args.append(new_arg)
1490
+ return new_args
1491
+
1492
+ def copy_with(self, args):
1493
+ return self.__class__(self.__origin__, args, name=self._name, inst=self._inst)
1494
+
1495
+ def __repr__(self):
1496
+ if self._name:
1497
+ name = 'typing.' + self._name
1498
+ else:
1499
+ name = _type_repr(self.__origin__)
1500
+ if self.__args__:
1501
+ args = ", ".join([_type_repr(a) for a in self.__args__])
1502
+ else:
1503
+ # To ensure the repr is eval-able.
1504
+ args = "()"
1505
+ return f'{name}[{args}]'
1506
+
1507
+ def __reduce__(self):
1508
+ if self._name:
1509
+ origin = globals()[self._name]
1510
+ else:
1511
+ origin = self.__origin__
1512
+ args = tuple(self.__args__)
1513
+ if len(args) == 1 and not isinstance(args[0], tuple):
1514
+ args, = args
1515
+ return operator.getitem, (origin, args)
1516
+
1517
+ def __mro_entries__(self, bases):
1518
+ if isinstance(self.__origin__, _SpecialForm):
1519
+ raise TypeError(f"Cannot subclass {self!r}")
1520
+
1521
+ if self._name: # generic version of an ABC or built-in class
1522
+ return super().__mro_entries__(bases)
1523
+ if self.__origin__ is Generic:
1524
+ if Protocol in bases:
1525
+ return ()
1526
+ i = bases.index(self)
1527
+ for b in bases[i+1:]:
1528
+ if isinstance(b, _BaseGenericAlias) and b is not self:
1529
+ return ()
1530
+ return (self.__origin__,)
1531
+
1532
+ def __iter__(self):
1533
+ yield Unpack[self]
1534
+
1535
+
1536
+ # _nparams is the number of accepted parameters, e.g. 0 for Hashable,
1537
+ # 1 for List and 2 for Dict. It may be -1 if variable number of
1538
+ # parameters are accepted (needs custom __getitem__).
1539
+
1540
+ class _SpecialGenericAlias(_NotIterable, _BaseGenericAlias, _root=True):
1541
+ def __init__(self, origin, nparams, *, inst=True, name=None, defaults=()):
1542
+ if name is None:
1543
+ name = origin.__name__
1544
+ super().__init__(origin, inst=inst, name=name)
1545
+ self._nparams = nparams
1546
+ self._defaults = defaults
1547
+ if origin.__module__ == 'builtins':
1548
+ self.__doc__ = f'A generic version of {origin.__qualname__}.'
1549
+ else:
1550
+ self.__doc__ = f'A generic version of {origin.__module__}.{origin.__qualname__}.'
1551
+
1552
+ @_tp_cache
1553
+ def __getitem__(self, params):
1554
+ if not isinstance(params, tuple):
1555
+ params = (params,)
1556
+ msg = "Parameters to generic types must be types."
1557
+ params = tuple(_type_check(p, msg) for p in params)
1558
+ if (self._defaults
1559
+ and len(params) < self._nparams
1560
+ and len(params) + len(self._defaults) >= self._nparams
1561
+ ):
1562
+ params = (*params, *self._defaults[len(params) - self._nparams:])
1563
+ actual_len = len(params)
1564
+
1565
+ if actual_len != self._nparams:
1566
+ if self._defaults:
1567
+ expected = f"at least {self._nparams - len(self._defaults)}"
1568
+ else:
1569
+ expected = str(self._nparams)
1570
+ if not self._nparams:
1571
+ raise TypeError(f"{self} is not a generic class")
1572
+ raise TypeError(f"Too {'many' if actual_len > self._nparams else 'few'} arguments for {self};"
1573
+ f" actual {actual_len}, expected {expected}")
1574
+ return self.copy_with(params)
1575
+
1576
+ def copy_with(self, params):
1577
+ return _GenericAlias(self.__origin__, params,
1578
+ name=self._name, inst=self._inst)
1579
+
1580
+ def __repr__(self):
1581
+ return 'typing.' + self._name
1582
+
1583
+ def __subclasscheck__(self, cls):
1584
+ if isinstance(cls, _SpecialGenericAlias):
1585
+ return issubclass(cls.__origin__, self.__origin__)
1586
+ if not isinstance(cls, _GenericAlias):
1587
+ return issubclass(cls, self.__origin__)
1588
+ return super().__subclasscheck__(cls)
1589
+
1590
+ def __reduce__(self):
1591
+ return self._name
1592
+
1593
+ def __or__(self, right):
1594
+ return Union[self, right]
1595
+
1596
+ def __ror__(self, left):
1597
+ return Union[left, self]
1598
+
1599
+
1600
+ class _DeprecatedGenericAlias(_SpecialGenericAlias, _root=True):
1601
+ def __init__(
1602
+ self, origin, nparams, *, removal_version, inst=True, name=None
1603
+ ):
1604
+ super().__init__(origin, nparams, inst=inst, name=name)
1605
+ self._removal_version = removal_version
1606
+
1607
+ def __instancecheck__(self, inst):
1608
+ import warnings
1609
+ warnings._deprecated(
1610
+ f"{self.__module__}.{self._name}", remove=self._removal_version
1611
+ )
1612
+ return super().__instancecheck__(inst)
1613
+
1614
+
1615
+ class _CallableGenericAlias(_NotIterable, _GenericAlias, _root=True):
1616
+ def __repr__(self):
1617
+ assert self._name == 'Callable'
1618
+ args = self.__args__
1619
+ if len(args) == 2 and _is_param_expr(args[0]):
1620
+ return super().__repr__()
1621
+ return (f'typing.Callable'
1622
+ f'[[{", ".join([_type_repr(a) for a in args[:-1]])}], '
1623
+ f'{_type_repr(args[-1])}]')
1624
+
1625
+ def __reduce__(self):
1626
+ args = self.__args__
1627
+ if not (len(args) == 2 and _is_param_expr(args[0])):
1628
+ args = list(args[:-1]), args[-1]
1629
+ return operator.getitem, (Callable, args)
1630
+
1631
+
1632
+ class _CallableType(_SpecialGenericAlias, _root=True):
1633
+ def copy_with(self, params):
1634
+ return _CallableGenericAlias(self.__origin__, params,
1635
+ name=self._name, inst=self._inst)
1636
+
1637
+ def __getitem__(self, params):
1638
+ if not isinstance(params, tuple) or len(params) != 2:
1639
+ raise TypeError("Callable must be used as "
1640
+ "Callable[[arg, ...], result].")
1641
+ args, result = params
1642
+ # This relaxes what args can be on purpose to allow things like
1643
+ # PEP 612 ParamSpec. Responsibility for whether a user is using
1644
+ # Callable[...] properly is deferred to static type checkers.
1645
+ if isinstance(args, list):
1646
+ params = (tuple(args), result)
1647
+ else:
1648
+ params = (args, result)
1649
+ return self.__getitem_inner__(params)
1650
+
1651
+ @_tp_cache
1652
+ def __getitem_inner__(self, params):
1653
+ args, result = params
1654
+ msg = "Callable[args, result]: result must be a type."
1655
+ result = _type_check(result, msg)
1656
+ if args is Ellipsis:
1657
+ return self.copy_with((_TypingEllipsis, result))
1658
+ if not isinstance(args, tuple):
1659
+ args = (args,)
1660
+ args = tuple(_type_convert(arg) for arg in args)
1661
+ params = args + (result,)
1662
+ return self.copy_with(params)
1663
+
1664
+
1665
+ class _TupleType(_SpecialGenericAlias, _root=True):
1666
+ @_tp_cache
1667
+ def __getitem__(self, params):
1668
+ if not isinstance(params, tuple):
1669
+ params = (params,)
1670
+ if len(params) >= 2 and params[-1] is ...:
1671
+ msg = "Tuple[t, ...]: t must be a type."
1672
+ params = tuple(_type_check(p, msg) for p in params[:-1])
1673
+ return self.copy_with((*params, _TypingEllipsis))
1674
+ msg = "Tuple[t0, t1, ...]: each t must be a type."
1675
+ params = tuple(_type_check(p, msg) for p in params)
1676
+ return self.copy_with(params)
1677
+
1678
+
1679
+ class _UnionGenericAliasMeta(type):
1680
+ def __instancecheck__(self, inst: object) -> bool:
1681
+ import warnings
1682
+ warnings._deprecated("_UnionGenericAlias", remove=(3, 17))
1683
+ return isinstance(inst, Union)
1684
+
1685
+ def __subclasscheck__(self, inst: type) -> bool:
1686
+ import warnings
1687
+ warnings._deprecated("_UnionGenericAlias", remove=(3, 17))
1688
+ return issubclass(inst, Union)
1689
+
1690
+ def __eq__(self, other):
1691
+ import warnings
1692
+ warnings._deprecated("_UnionGenericAlias", remove=(3, 17))
1693
+ if other is _UnionGenericAlias or other is Union:
1694
+ return True
1695
+ return NotImplemented
1696
+
1697
+ def __hash__(self):
1698
+ return hash(Union)
1699
+
1700
+
1701
+ class _UnionGenericAlias(metaclass=_UnionGenericAliasMeta):
1702
+ """Compatibility hack.
1703
+
1704
+ A class named _UnionGenericAlias used to be used to implement
1705
+ typing.Union. This class exists to serve as a shim to preserve
1706
+ the meaning of some code that used to use _UnionGenericAlias
1707
+ directly.
1708
+
1709
+ """
1710
+ def __new__(cls, self_cls, parameters, /, *, name=None):
1711
+ import warnings
1712
+ warnings._deprecated("_UnionGenericAlias", remove=(3, 17))
1713
+ return Union[parameters]
1714
+
1715
+
1716
+ def _value_and_type_iter(parameters):
1717
+ return ((p, type(p)) for p in parameters)
1718
+
1719
+
1720
+ class _LiteralGenericAlias(_GenericAlias, _root=True):
1721
+ def __eq__(self, other):
1722
+ if not isinstance(other, _LiteralGenericAlias):
1723
+ return NotImplemented
1724
+
1725
+ return set(_value_and_type_iter(self.__args__)) == set(_value_and_type_iter(other.__args__))
1726
+
1727
+ def __hash__(self):
1728
+ return hash(frozenset(_value_and_type_iter(self.__args__)))
1729
+
1730
+
1731
+ class _ConcatenateGenericAlias(_GenericAlias, _root=True):
1732
+ def copy_with(self, params):
1733
+ if isinstance(params[-1], (list, tuple)):
1734
+ return (*params[:-1], *params[-1])
1735
+ if isinstance(params[-1], _ConcatenateGenericAlias):
1736
+ params = (*params[:-1], *params[-1].__args__)
1737
+ return super().copy_with(params)
1738
+
1739
+
1740
+ @_SpecialForm
1741
+ def Unpack(self, parameters):
1742
+ """Type unpack operator.
1743
+
1744
+ The type unpack operator takes the child types from some container type,
1745
+ such as `tuple[int, str]` or a `TypeVarTuple`, and 'pulls them out'.
1746
+
1747
+ For example::
1748
+
1749
+ # For some generic class `Foo`:
1750
+ Foo[Unpack[tuple[int, str]]] # Equivalent to Foo[int, str]
1751
+
1752
+ Ts = TypeVarTuple('Ts')
1753
+ # Specifies that `Bar` is generic in an arbitrary number of types.
1754
+ # (Think of `Ts` as a tuple of an arbitrary number of individual
1755
+ # `TypeVar`s, which the `Unpack` is 'pulling out' directly into the
1756
+ # `Generic[]`.)
1757
+ class Bar(Generic[Unpack[Ts]]): ...
1758
+ Bar[int] # Valid
1759
+ Bar[int, str] # Also valid
1760
+
1761
+ From Python 3.11, this can also be done using the `*` operator::
1762
+
1763
+ Foo[*tuple[int, str]]
1764
+ class Bar(Generic[*Ts]): ...
1765
+
1766
+ And from Python 3.12, it can be done using built-in syntax for generics::
1767
+
1768
+ Foo[*tuple[int, str]]
1769
+ class Bar[*Ts]: ...
1770
+
1771
+ The operator can also be used along with a `TypedDict` to annotate
1772
+ `**kwargs` in a function signature::
1773
+
1774
+ class Movie(TypedDict):
1775
+ name: str
1776
+ year: int
1777
+
1778
+ # This function expects two keyword arguments - *name* of type `str` and
1779
+ # *year* of type `int`.
1780
+ def foo(**kwargs: Unpack[Movie]): ...
1781
+
1782
+ Note that there is only some runtime checking of this operator. Not
1783
+ everything the runtime allows may be accepted by static type checkers.
1784
+
1785
+ For more information, see PEPs 646 and 692.
1786
+ """
1787
+ item = _type_check(parameters, f'{self} accepts only single type.')
1788
+ return _UnpackGenericAlias(origin=self, args=(item,))
1789
+
1790
+
1791
+ class _UnpackGenericAlias(_GenericAlias, _root=True):
1792
+ def __repr__(self):
1793
+ # `Unpack` only takes one argument, so __args__ should contain only
1794
+ # a single item.
1795
+ return f'typing.Unpack[{_type_repr(self.__args__[0])}]'
1796
+
1797
+ def __getitem__(self, args):
1798
+ if self.__typing_is_unpacked_typevartuple__:
1799
+ return args
1800
+ return super().__getitem__(args)
1801
+
1802
+ @property
1803
+ def __typing_unpacked_tuple_args__(self):
1804
+ assert self.__origin__ is Unpack
1805
+ assert len(self.__args__) == 1
1806
+ arg, = self.__args__
1807
+ if isinstance(arg, (_GenericAlias, types.GenericAlias)):
1808
+ if arg.__origin__ is not tuple:
1809
+ raise TypeError("Unpack[...] must be used with a tuple type")
1810
+ return arg.__args__
1811
+ return None
1812
+
1813
+ @property
1814
+ def __typing_is_unpacked_typevartuple__(self):
1815
+ assert self.__origin__ is Unpack
1816
+ assert len(self.__args__) == 1
1817
+ return isinstance(self.__args__[0], TypeVarTuple)
1818
+
1819
+
1820
+ class _TypingEllipsis:
1821
+ """Internal placeholder for ... (ellipsis)."""
1822
+
1823
+
1824
+ _TYPING_INTERNALS = frozenset({
1825
+ '__parameters__', '__orig_bases__', '__orig_class__',
1826
+ '_is_protocol', '_is_runtime_protocol', '__protocol_attrs__',
1827
+ '__non_callable_proto_members__', '__type_params__',
1828
+ })
1829
+
1830
+ _SPECIAL_NAMES = frozenset({
1831
+ '__abstractmethods__', '__annotations__', '__dict__', '__doc__',
1832
+ '__init__', '__module__', '__new__', '__slots__',
1833
+ '__subclasshook__', '__weakref__', '__class_getitem__',
1834
+ '__match_args__', '__static_attributes__', '__firstlineno__',
1835
+ '__annotate__', '__annotate_func__', '__annotations_cache__',
1836
+ })
1837
+
1838
+ # These special attributes will be not collected as protocol members.
1839
+ EXCLUDED_ATTRIBUTES = _TYPING_INTERNALS | _SPECIAL_NAMES | {'_MutableMapping__marker'}
1840
+
1841
+
1842
+ def _get_protocol_attrs(cls):
1843
+ """Collect protocol members from a protocol class objects.
1844
+
1845
+ This includes names actually defined in the class dictionary, as well
1846
+ as names that appear in annotations. Special names (above) are skipped.
1847
+ """
1848
+ attrs = set()
1849
+ for base in cls.__mro__[:-1]: # without object
1850
+ if base.__name__ in {'Protocol', 'Generic'}:
1851
+ continue
1852
+ try:
1853
+ annotations = base.__annotations__
1854
+ except Exception:
1855
+ # Only go through annotationlib to handle deferred annotations if we need to
1856
+ annotations = _lazy_annotationlib.get_annotations(
1857
+ base, format=_lazy_annotationlib.Format.FORWARDREF
1858
+ )
1859
+ for attr in (*base.__dict__, *annotations):
1860
+ if not attr.startswith('_abc_') and attr not in EXCLUDED_ATTRIBUTES:
1861
+ attrs.add(attr)
1862
+ return attrs
1863
+
1864
+
1865
+ def _no_init_or_replace_init(self, *args, **kwargs):
1866
+ cls = type(self)
1867
+
1868
+ if cls._is_protocol:
1869
+ raise TypeError('Protocols cannot be instantiated')
1870
+
1871
+ # Already using a custom `__init__`. No need to calculate correct
1872
+ # `__init__` to call. This can lead to RecursionError. See bpo-45121.
1873
+ if cls.__init__ is not _no_init_or_replace_init:
1874
+ return
1875
+
1876
+ # Initially, `__init__` of a protocol subclass is set to `_no_init_or_replace_init`.
1877
+ # The first instantiation of the subclass will call `_no_init_or_replace_init` which
1878
+ # searches for a proper new `__init__` in the MRO. The new `__init__`
1879
+ # replaces the subclass' old `__init__` (ie `_no_init_or_replace_init`). Subsequent
1880
+ # instantiation of the protocol subclass will thus use the new
1881
+ # `__init__` and no longer call `_no_init_or_replace_init`.
1882
+ for base in cls.__mro__:
1883
+ init = base.__dict__.get('__init__', _no_init_or_replace_init)
1884
+ if init is not _no_init_or_replace_init:
1885
+ cls.__init__ = init
1886
+ break
1887
+ else:
1888
+ # should not happen
1889
+ cls.__init__ = object.__init__
1890
+
1891
+ cls.__init__(self, *args, **kwargs)
1892
+
1893
+
1894
+ def _caller(depth=1, default='__main__'):
1895
+ try:
1896
+ return sys._getframemodulename(depth + 1) or default
1897
+ except AttributeError: # For platforms without _getframemodulename()
1898
+ pass
1899
+ try:
1900
+ return sys._getframe(depth + 1).f_globals.get('__name__', default)
1901
+ except (AttributeError, ValueError): # For platforms without _getframe()
1902
+ pass
1903
+ return None
1904
+
1905
+ def _allow_reckless_class_checks(depth=2):
1906
+ """Allow instance and class checks for special stdlib modules.
1907
+
1908
+ The abc and functools modules indiscriminately call isinstance() and
1909
+ issubclass() on the whole MRO of a user class, which may contain protocols.
1910
+ """
1911
+ return _caller(depth) in {'abc', 'functools', None}
1912
+
1913
+
1914
+ _PROTO_ALLOWLIST = {
1915
+ 'collections.abc': [
1916
+ 'Callable', 'Awaitable', 'Iterable', 'Iterator', 'AsyncIterable',
1917
+ 'AsyncIterator', 'Hashable', 'Sized', 'Container', 'Collection',
1918
+ 'Reversible', 'Buffer',
1919
+ ],
1920
+ 'contextlib': ['AbstractContextManager', 'AbstractAsyncContextManager'],
1921
+ 'io': ['Reader', 'Writer'],
1922
+ 'os': ['PathLike'],
1923
+ }
1924
+
1925
+
1926
+ @functools.cache
1927
+ def _lazy_load_getattr_static():
1928
+ # Import getattr_static lazily so as not to slow down the import of typing.py
1929
+ # Cache the result so we don't slow down _ProtocolMeta.__instancecheck__ unnecessarily
1930
+ from inspect import getattr_static
1931
+ return getattr_static
1932
+
1933
+
1934
+ _cleanups.append(_lazy_load_getattr_static.cache_clear)
1935
+
1936
+ def _pickle_psargs(psargs):
1937
+ return ParamSpecArgs, (psargs.__origin__,)
1938
+
1939
+ copyreg.pickle(ParamSpecArgs, _pickle_psargs)
1940
+
1941
+ def _pickle_pskwargs(pskwargs):
1942
+ return ParamSpecKwargs, (pskwargs.__origin__,)
1943
+
1944
+ copyreg.pickle(ParamSpecKwargs, _pickle_pskwargs)
1945
+
1946
+ del _pickle_psargs, _pickle_pskwargs
1947
+
1948
+
1949
+ # Preload these once, as globals, as a micro-optimisation.
1950
+ # This makes a significant difference to the time it takes
1951
+ # to do `isinstance()`/`issubclass()` checks
1952
+ # against runtime-checkable protocols with only one callable member.
1953
+ _abc_instancecheck = ABCMeta.__instancecheck__
1954
+ _abc_subclasscheck = ABCMeta.__subclasscheck__
1955
+
1956
+
1957
+ def _type_check_issubclass_arg_1(arg):
1958
+ """Raise TypeError if `arg` is not an instance of `type`
1959
+ in `issubclass(arg, <protocol>)`.
1960
+
1961
+ In most cases, this is verified by type.__subclasscheck__.
1962
+ Checking it again unnecessarily would slow down issubclass() checks,
1963
+ so, we don't perform this check unless we absolutely have to.
1964
+
1965
+ For various error paths, however,
1966
+ we want to ensure that *this* error message is shown to the user
1967
+ where relevant, rather than a typing.py-specific error message.
1968
+ """
1969
+ if not isinstance(arg, type):
1970
+ # Same error message as for issubclass(1, int).
1971
+ raise TypeError('issubclass() arg 1 must be a class')
1972
+
1973
+
1974
+ class _ProtocolMeta(ABCMeta):
1975
+ # This metaclass is somewhat unfortunate,
1976
+ # but is necessary for several reasons...
1977
+ def __new__(mcls, name, bases, namespace, /, **kwargs):
1978
+ if name == "Protocol" and bases == (Generic,):
1979
+ pass
1980
+ elif Protocol in bases:
1981
+ for base in bases:
1982
+ if not (
1983
+ base in {object, Generic}
1984
+ or base.__name__ in _PROTO_ALLOWLIST.get(base.__module__, [])
1985
+ or (
1986
+ issubclass(base, Generic)
1987
+ and getattr(base, "_is_protocol", False)
1988
+ )
1989
+ ):
1990
+ raise TypeError(
1991
+ f"Protocols can only inherit from other protocols, "
1992
+ f"got {base!r}"
1993
+ )
1994
+ return super().__new__(mcls, name, bases, namespace, **kwargs)
1995
+
1996
+ def __init__(cls, *args, **kwargs):
1997
+ super().__init__(*args, **kwargs)
1998
+ if getattr(cls, "_is_protocol", False):
1999
+ cls.__protocol_attrs__ = _get_protocol_attrs(cls)
2000
+
2001
+ def __subclasscheck__(cls, other):
2002
+ if cls is Protocol:
2003
+ return type.__subclasscheck__(cls, other)
2004
+ if (
2005
+ getattr(cls, '_is_protocol', False)
2006
+ and not _allow_reckless_class_checks()
2007
+ ):
2008
+ if not getattr(cls, '_is_runtime_protocol', False):
2009
+ _type_check_issubclass_arg_1(other)
2010
+ raise TypeError(
2011
+ "Instance and class checks can only be used with "
2012
+ "@runtime_checkable protocols"
2013
+ )
2014
+ if (
2015
+ # this attribute is set by @runtime_checkable:
2016
+ cls.__non_callable_proto_members__
2017
+ and cls.__dict__.get("__subclasshook__") is _proto_hook
2018
+ ):
2019
+ _type_check_issubclass_arg_1(other)
2020
+ non_method_attrs = sorted(cls.__non_callable_proto_members__)
2021
+ raise TypeError(
2022
+ "Protocols with non-method members don't support issubclass()."
2023
+ f" Non-method members: {str(non_method_attrs)[1:-1]}."
2024
+ )
2025
+ return _abc_subclasscheck(cls, other)
2026
+
2027
+ def __instancecheck__(cls, instance):
2028
+ # We need this method for situations where attributes are
2029
+ # assigned in __init__.
2030
+ if cls is Protocol:
2031
+ return type.__instancecheck__(cls, instance)
2032
+ if not getattr(cls, "_is_protocol", False):
2033
+ # i.e., it's a concrete subclass of a protocol
2034
+ return _abc_instancecheck(cls, instance)
2035
+
2036
+ if (
2037
+ not getattr(cls, '_is_runtime_protocol', False) and
2038
+ not _allow_reckless_class_checks()
2039
+ ):
2040
+ raise TypeError("Instance and class checks can only be used with"
2041
+ " @runtime_checkable protocols")
2042
+
2043
+ if _abc_instancecheck(cls, instance):
2044
+ return True
2045
+
2046
+ getattr_static = _lazy_load_getattr_static()
2047
+ for attr in cls.__protocol_attrs__:
2048
+ try:
2049
+ val = getattr_static(instance, attr)
2050
+ except AttributeError:
2051
+ break
2052
+ # this attribute is set by @runtime_checkable:
2053
+ if val is None and attr not in cls.__non_callable_proto_members__:
2054
+ break
2055
+ else:
2056
+ return True
2057
+
2058
+ return False
2059
+
2060
+
2061
+ @classmethod
2062
+ def _proto_hook(cls, other):
2063
+ if not cls.__dict__.get('_is_protocol', False):
2064
+ return NotImplemented
2065
+
2066
+ for attr in cls.__protocol_attrs__:
2067
+ for base in other.__mro__:
2068
+ # Check if the members appears in the class dictionary...
2069
+ if attr in base.__dict__:
2070
+ if base.__dict__[attr] is None:
2071
+ return NotImplemented
2072
+ break
2073
+
2074
+ # ...or in annotations, if it is a sub-protocol.
2075
+ if issubclass(other, Generic) and getattr(other, "_is_protocol", False):
2076
+ # We avoid the slower path through annotationlib here because in most
2077
+ # cases it should be unnecessary.
2078
+ try:
2079
+ annos = base.__annotations__
2080
+ except Exception:
2081
+ annos = _lazy_annotationlib.get_annotations(
2082
+ base, format=_lazy_annotationlib.Format.FORWARDREF
2083
+ )
2084
+ if attr in annos:
2085
+ break
2086
+ else:
2087
+ return NotImplemented
2088
+ return True
2089
+
2090
+
2091
+ class Protocol(Generic, metaclass=_ProtocolMeta):
2092
+ """Base class for protocol classes.
2093
+
2094
+ Protocol classes are defined as::
2095
+
2096
+ class Proto(Protocol):
2097
+ def meth(self) -> int:
2098
+ ...
2099
+
2100
+ Such classes are primarily used with static type checkers that recognize
2101
+ structural subtyping (static duck-typing).
2102
+
2103
+ For example::
2104
+
2105
+ class C:
2106
+ def meth(self) -> int:
2107
+ return 0
2108
+
2109
+ def func(x: Proto) -> int:
2110
+ return x.meth()
2111
+
2112
+ func(C()) # Passes static type check
2113
+
2114
+ See PEP 544 for details. Protocol classes decorated with
2115
+ @typing.runtime_checkable act as simple-minded runtime protocols that check
2116
+ only the presence of given attributes, ignoring their type signatures.
2117
+ Protocol classes can be generic, they are defined as::
2118
+
2119
+ class GenProto[T](Protocol):
2120
+ def meth(self) -> T:
2121
+ ...
2122
+ """
2123
+
2124
+ __slots__ = ()
2125
+ _is_protocol = True
2126
+ _is_runtime_protocol = False
2127
+
2128
+ def __init_subclass__(cls, *args, **kwargs):
2129
+ super().__init_subclass__(*args, **kwargs)
2130
+
2131
+ # Determine if this is a protocol or a concrete subclass.
2132
+ if not cls.__dict__.get('_is_protocol', False):
2133
+ cls._is_protocol = any(b is Protocol for b in cls.__bases__)
2134
+
2135
+ # Set (or override) the protocol subclass hook.
2136
+ if '__subclasshook__' not in cls.__dict__:
2137
+ cls.__subclasshook__ = _proto_hook
2138
+
2139
+ # Prohibit instantiation for protocol classes
2140
+ if cls._is_protocol and cls.__init__ is Protocol.__init__:
2141
+ cls.__init__ = _no_init_or_replace_init
2142
+
2143
+
2144
+ class _AnnotatedAlias(_NotIterable, _GenericAlias, _root=True):
2145
+ """Runtime representation of an annotated type.
2146
+
2147
+ At its core 'Annotated[t, dec1, dec2, ...]' is an alias for the type 't'
2148
+ with extra metadata. The alias behaves like a normal typing alias.
2149
+ Instantiating is the same as instantiating the underlying type; binding
2150
+ it to types is also the same.
2151
+
2152
+ The metadata itself is stored in a '__metadata__' attribute as a tuple.
2153
+ """
2154
+
2155
+ def __init__(self, origin, metadata):
2156
+ if isinstance(origin, _AnnotatedAlias):
2157
+ metadata = origin.__metadata__ + metadata
2158
+ origin = origin.__origin__
2159
+ super().__init__(origin, origin, name='Annotated')
2160
+ self.__metadata__ = metadata
2161
+
2162
+ def copy_with(self, params):
2163
+ assert len(params) == 1
2164
+ new_type = params[0]
2165
+ return _AnnotatedAlias(new_type, self.__metadata__)
2166
+
2167
+ def __repr__(self):
2168
+ return "typing.Annotated[{}, {}]".format(
2169
+ _type_repr(self.__origin__),
2170
+ ", ".join(repr(a) for a in self.__metadata__)
2171
+ )
2172
+
2173
+ def __reduce__(self):
2174
+ return operator.getitem, (
2175
+ Annotated, (self.__origin__,) + self.__metadata__
2176
+ )
2177
+
2178
+ def __eq__(self, other):
2179
+ if not isinstance(other, _AnnotatedAlias):
2180
+ return NotImplemented
2181
+ return (self.__origin__ == other.__origin__
2182
+ and self.__metadata__ == other.__metadata__)
2183
+
2184
+ def __hash__(self):
2185
+ return hash((self.__origin__, self.__metadata__))
2186
+
2187
+ def __getattr__(self, attr):
2188
+ if attr in {'__name__', '__qualname__'}:
2189
+ return 'Annotated'
2190
+ return super().__getattr__(attr)
2191
+
2192
+ def __mro_entries__(self, bases):
2193
+ return (self.__origin__,)
2194
+
2195
+
2196
+ @_TypedCacheSpecialForm
2197
+ @_tp_cache(typed=True)
2198
+ def Annotated(self, *params):
2199
+ """Add context-specific metadata to a type.
2200
+
2201
+ Example: Annotated[int, runtime_check.Unsigned] indicates to the
2202
+ hypothetical runtime_check module that this type is an unsigned int.
2203
+ Every other consumer of this type can ignore this metadata and treat
2204
+ this type as int.
2205
+
2206
+ The first argument to Annotated must be a valid type.
2207
+
2208
+ Details:
2209
+
2210
+ - It's an error to call `Annotated` with less than two arguments.
2211
+ - Access the metadata via the ``__metadata__`` attribute::
2212
+
2213
+ assert Annotated[int, '$'].__metadata__ == ('$',)
2214
+
2215
+ - Nested Annotated types are flattened::
2216
+
2217
+ assert Annotated[Annotated[T, Ann1, Ann2], Ann3] == Annotated[T, Ann1, Ann2, Ann3]
2218
+
2219
+ - Instantiating an annotated type is equivalent to instantiating the
2220
+ underlying type::
2221
+
2222
+ assert Annotated[C, Ann1](5) == C(5)
2223
+
2224
+ - Annotated can be used as a generic type alias::
2225
+
2226
+ type Optimized[T] = Annotated[T, runtime.Optimize()]
2227
+ # type checker will treat Optimized[int]
2228
+ # as equivalent to Annotated[int, runtime.Optimize()]
2229
+
2230
+ type OptimizedList[T] = Annotated[list[T], runtime.Optimize()]
2231
+ # type checker will treat OptimizedList[int]
2232
+ # as equivalent to Annotated[list[int], runtime.Optimize()]
2233
+
2234
+ - Annotated cannot be used with an unpacked TypeVarTuple::
2235
+
2236
+ type Variadic[*Ts] = Annotated[*Ts, Ann1] # NOT valid
2237
+
2238
+ This would be equivalent to::
2239
+
2240
+ Annotated[T1, T2, T3, ..., Ann1]
2241
+
2242
+ where T1, T2 etc. are TypeVars, which would be invalid, because
2243
+ only one type should be passed to Annotated.
2244
+ """
2245
+ if len(params) < 2:
2246
+ raise TypeError("Annotated[...] should be used "
2247
+ "with at least two arguments (a type and an "
2248
+ "annotation).")
2249
+ if _is_unpacked_typevartuple(params[0]):
2250
+ raise TypeError("Annotated[...] should not be used with an "
2251
+ "unpacked TypeVarTuple")
2252
+ msg = "Annotated[t, ...]: t must be a type."
2253
+ origin = _type_check(params[0], msg, allow_special_forms=True)
2254
+ metadata = tuple(params[1:])
2255
+ return _AnnotatedAlias(origin, metadata)
2256
+
2257
+
2258
+ def runtime_checkable(cls):
2259
+ """Mark a protocol class as a runtime protocol.
2260
+
2261
+ Such protocol can be used with isinstance() and issubclass().
2262
+ Raise TypeError if applied to a non-protocol class.
2263
+ This allows a simple-minded structural check very similar to
2264
+ one trick ponies in collections.abc such as Iterable.
2265
+
2266
+ For example::
2267
+
2268
+ @runtime_checkable
2269
+ class Closable(Protocol):
2270
+ def close(self): ...
2271
+
2272
+ assert isinstance(open('/some/file'), Closable)
2273
+
2274
+ Warning: this will check only the presence of the required methods,
2275
+ not their type signatures!
2276
+ """
2277
+ if not issubclass(cls, Generic) or not getattr(cls, '_is_protocol', False):
2278
+ raise TypeError('@runtime_checkable can be only applied to protocol classes,'
2279
+ ' got %r' % cls)
2280
+ cls._is_runtime_protocol = True
2281
+ # PEP 544 prohibits using issubclass()
2282
+ # with protocols that have non-method members.
2283
+ # See gh-113320 for why we compute this attribute here,
2284
+ # rather than in `_ProtocolMeta.__init__`
2285
+ cls.__non_callable_proto_members__ = set()
2286
+ for attr in cls.__protocol_attrs__:
2287
+ try:
2288
+ is_callable = callable(getattr(cls, attr, None))
2289
+ except Exception as e:
2290
+ raise TypeError(
2291
+ f"Failed to determine whether protocol member {attr!r} "
2292
+ "is a method member"
2293
+ ) from e
2294
+ else:
2295
+ if not is_callable:
2296
+ cls.__non_callable_proto_members__.add(attr)
2297
+ return cls
2298
+
2299
+
2300
+ def cast(typ, val):
2301
+ """Cast a value to a type.
2302
+
2303
+ This returns the value unchanged. To the type checker this
2304
+ signals that the return value has the designated type, but at
2305
+ runtime we intentionally don't check anything (we want this
2306
+ to be as fast as possible).
2307
+ """
2308
+ return val
2309
+
2310
+
2311
+ def assert_type(val, typ, /):
2312
+ """Ask a static type checker to confirm that the value is of the given type.
2313
+
2314
+ At runtime this does nothing: it returns the first argument unchanged with no
2315
+ checks or side effects, no matter the actual type of the argument.
2316
+
2317
+ When a static type checker encounters a call to assert_type(), it
2318
+ emits an error if the value is not of the specified type::
2319
+
2320
+ def greet(name: str) -> None:
2321
+ assert_type(name, str) # OK
2322
+ assert_type(name, int) # type checker error
2323
+ """
2324
+ return val
2325
+
2326
+
2327
+ def get_type_hints(obj, globalns=None, localns=None, include_extras=False,
2328
+ *, format=None):
2329
+ """Return type hints for an object.
2330
+
2331
+ This is often the same as obj.__annotations__, but it handles
2332
+ forward references encoded as string literals and recursively replaces all
2333
+ 'Annotated[T, ...]' with 'T' (unless 'include_extras=True').
2334
+
2335
+ The argument may be a module, class, method, or function. The annotations
2336
+ are returned as a dictionary. For classes, annotations include also
2337
+ inherited members.
2338
+
2339
+ TypeError is raised if the argument is not of a type that can contain
2340
+ annotations, and an empty dictionary is returned if no annotations are
2341
+ present.
2342
+
2343
+ BEWARE -- the behavior of globalns and localns is counterintuitive
2344
+ (unless you are familiar with how eval() and exec() work). The
2345
+ search order is locals first, then globals.
2346
+
2347
+ - If no dict arguments are passed, an attempt is made to use the
2348
+ globals from obj (or the respective module's globals for classes),
2349
+ and these are also used as the locals. If the object does not appear
2350
+ to have globals, an empty dictionary is used. For classes, the search
2351
+ order is globals first then locals.
2352
+
2353
+ - If one dict argument is passed, it is used for both globals and
2354
+ locals.
2355
+
2356
+ - If two dict arguments are passed, they specify globals and
2357
+ locals, respectively.
2358
+ """
2359
+ if getattr(obj, '__no_type_check__', None):
2360
+ return {}
2361
+ Format = _lazy_annotationlib.Format
2362
+ if format is None:
2363
+ format = Format.VALUE
2364
+ # Classes require a special treatment.
2365
+ if isinstance(obj, type):
2366
+ hints = {}
2367
+ for base in reversed(obj.__mro__):
2368
+ ann = _lazy_annotationlib.get_annotations(base, format=format)
2369
+ if format == Format.STRING:
2370
+ hints.update(ann)
2371
+ continue
2372
+ if globalns is None:
2373
+ base_globals = getattr(sys.modules.get(base.__module__, None), '__dict__', {})
2374
+ else:
2375
+ base_globals = globalns
2376
+ base_locals = dict(vars(base)) if localns is None else localns
2377
+ if localns is None and globalns is None:
2378
+ # This is surprising, but required. Before Python 3.10,
2379
+ # get_type_hints only evaluated the globalns of
2380
+ # a class. To maintain backwards compatibility, we reverse
2381
+ # the globalns and localns order so that eval() looks into
2382
+ # *base_globals* first rather than *base_locals*.
2383
+ # This only affects ForwardRefs.
2384
+ base_globals, base_locals = base_locals, base_globals
2385
+ type_params = base.__type_params__
2386
+ base_globals, base_locals = _add_type_params_to_scope(
2387
+ type_params, base_globals, base_locals, True)
2388
+ for name, value in ann.items():
2389
+ if isinstance(value, str):
2390
+ value = _make_forward_ref(value, is_argument=False, is_class=True)
2391
+ value = _eval_type(value, base_globals, base_locals, (),
2392
+ format=format, owner=obj, prefer_fwd_module=True)
2393
+ if value is None:
2394
+ value = type(None)
2395
+ hints[name] = value
2396
+ if include_extras or format == Format.STRING:
2397
+ return hints
2398
+ else:
2399
+ return {k: _strip_annotations(t) for k, t in hints.items()}
2400
+
2401
+ hints = _lazy_annotationlib.get_annotations(obj, format=format)
2402
+ if (
2403
+ not hints
2404
+ and not isinstance(obj, types.ModuleType)
2405
+ and not callable(obj)
2406
+ and not hasattr(obj, '__annotations__')
2407
+ and not hasattr(obj, '__annotate__')
2408
+ ):
2409
+ raise TypeError(f"{obj!r} is not a module, class, or callable.")
2410
+ if format == Format.STRING:
2411
+ return hints
2412
+
2413
+ if globalns is None:
2414
+ if isinstance(obj, types.ModuleType):
2415
+ globalns = obj.__dict__
2416
+ else:
2417
+ nsobj = obj
2418
+ # Find globalns for the unwrapped object.
2419
+ while hasattr(nsobj, '__wrapped__'):
2420
+ nsobj = nsobj.__wrapped__
2421
+ globalns = getattr(nsobj, '__globals__', {})
2422
+ if localns is None:
2423
+ localns = globalns
2424
+ elif localns is None:
2425
+ localns = globalns
2426
+ type_params = getattr(obj, "__type_params__", ())
2427
+ globalns, localns = _add_type_params_to_scope(type_params, globalns, localns, False)
2428
+ for name, value in hints.items():
2429
+ if isinstance(value, str):
2430
+ # class-level forward refs were handled above, this must be either
2431
+ # a module-level annotation or a function argument annotation
2432
+ value = _make_forward_ref(
2433
+ value,
2434
+ is_argument=not isinstance(obj, types.ModuleType),
2435
+ is_class=False,
2436
+ )
2437
+ value = _eval_type(value, globalns, localns, (), format=format, owner=obj, prefer_fwd_module=True)
2438
+ if value is None:
2439
+ value = type(None)
2440
+ hints[name] = value
2441
+ return hints if include_extras else {k: _strip_annotations(t) for k, t in hints.items()}
2442
+
2443
+
2444
+ # Add type parameters to the globals and locals scope. This is needed for
2445
+ # compatibility.
2446
+ def _add_type_params_to_scope(type_params, globalns, localns, is_class):
2447
+ if not type_params:
2448
+ return globalns, localns
2449
+ globalns = dict(globalns)
2450
+ localns = dict(localns)
2451
+ for param in type_params:
2452
+ if not is_class or param.__name__ not in globalns:
2453
+ globalns[param.__name__] = param
2454
+ localns.pop(param.__name__, None)
2455
+ return globalns, localns
2456
+
2457
+
2458
+ def _strip_annotations(t):
2459
+ """Strip the annotations from a given type."""
2460
+ if isinstance(t, _AnnotatedAlias):
2461
+ return _strip_annotations(t.__origin__)
2462
+ if hasattr(t, "__origin__") and t.__origin__ in (Required, NotRequired, ReadOnly):
2463
+ return _strip_annotations(t.__args__[0])
2464
+ if isinstance(t, _GenericAlias):
2465
+ stripped_args = tuple(_strip_annotations(a) for a in t.__args__)
2466
+ if stripped_args == t.__args__:
2467
+ return t
2468
+ return t.copy_with(stripped_args)
2469
+ if isinstance(t, GenericAlias):
2470
+ stripped_args = tuple(_strip_annotations(a) for a in t.__args__)
2471
+ if stripped_args == t.__args__:
2472
+ return t
2473
+ return GenericAlias(t.__origin__, stripped_args)
2474
+ if isinstance(t, Union):
2475
+ stripped_args = tuple(_strip_annotations(a) for a in t.__args__)
2476
+ if stripped_args == t.__args__:
2477
+ return t
2478
+ return functools.reduce(operator.or_, stripped_args)
2479
+
2480
+ return t
2481
+
2482
+
2483
+ def get_origin(tp):
2484
+ """Get the unsubscripted version of a type.
2485
+
2486
+ This supports generic types, Callable, Tuple, Union, Literal, Final, ClassVar,
2487
+ Annotated, and others. Return None for unsupported types.
2488
+
2489
+ Examples::
2490
+
2491
+ >>> P = ParamSpec('P')
2492
+ >>> assert get_origin(Literal[42]) is Literal
2493
+ >>> assert get_origin(int) is None
2494
+ >>> assert get_origin(ClassVar[int]) is ClassVar
2495
+ >>> assert get_origin(Generic) is Generic
2496
+ >>> assert get_origin(Generic[T]) is Generic
2497
+ >>> assert get_origin(Union[T, int]) is Union
2498
+ >>> assert get_origin(List[Tuple[T, T]][int]) is list
2499
+ >>> assert get_origin(P.args) is P
2500
+ """
2501
+ if isinstance(tp, _AnnotatedAlias):
2502
+ return Annotated
2503
+ if isinstance(tp, (_BaseGenericAlias, GenericAlias,
2504
+ ParamSpecArgs, ParamSpecKwargs)):
2505
+ return tp.__origin__
2506
+ if tp is Generic:
2507
+ return Generic
2508
+ if isinstance(tp, Union):
2509
+ return Union
2510
+ return None
2511
+
2512
+
2513
+ def get_args(tp):
2514
+ """Get type arguments with all substitutions performed.
2515
+
2516
+ For unions, basic simplifications used by Union constructor are performed.
2517
+
2518
+ Examples::
2519
+
2520
+ >>> T = TypeVar('T')
2521
+ >>> assert get_args(Dict[str, int]) == (str, int)
2522
+ >>> assert get_args(int) == ()
2523
+ >>> assert get_args(Union[int, Union[T, int], str][int]) == (int, str)
2524
+ >>> assert get_args(Union[int, Tuple[T, int]][str]) == (int, Tuple[str, int])
2525
+ >>> assert get_args(Callable[[], T][int]) == ([], int)
2526
+ """
2527
+ if isinstance(tp, _AnnotatedAlias):
2528
+ return (tp.__origin__,) + tp.__metadata__
2529
+ if isinstance(tp, (_GenericAlias, GenericAlias)):
2530
+ res = tp.__args__
2531
+ if _should_unflatten_callable_args(tp, res):
2532
+ res = (list(res[:-1]), res[-1])
2533
+ return res
2534
+ if isinstance(tp, Union):
2535
+ return tp.__args__
2536
+ return ()
2537
+
2538
+
2539
+ def is_typeddict(tp):
2540
+ """Check if an annotation is a TypedDict class.
2541
+
2542
+ For example::
2543
+
2544
+ >>> from typing import TypedDict
2545
+ >>> class Film(TypedDict):
2546
+ ... title: str
2547
+ ... year: int
2548
+ ...
2549
+ >>> is_typeddict(Film)
2550
+ True
2551
+ >>> is_typeddict(dict)
2552
+ False
2553
+ """
2554
+ return isinstance(tp, _TypedDictMeta)
2555
+
2556
+
2557
+ _ASSERT_NEVER_REPR_MAX_LENGTH = 100
2558
+
2559
+
2560
+ def assert_never(arg: Never, /) -> Never:
2561
+ """Statically assert that a line of code is unreachable.
2562
+
2563
+ Example::
2564
+
2565
+ def int_or_str(arg: int | str) -> None:
2566
+ match arg:
2567
+ case int():
2568
+ print("It's an int")
2569
+ case str():
2570
+ print("It's a str")
2571
+ case _:
2572
+ assert_never(arg)
2573
+
2574
+ If a type checker finds that a call to assert_never() is
2575
+ reachable, it will emit an error.
2576
+
2577
+ At runtime, this throws an exception when called.
2578
+ """
2579
+ value = repr(arg)
2580
+ if len(value) > _ASSERT_NEVER_REPR_MAX_LENGTH:
2581
+ value = value[:_ASSERT_NEVER_REPR_MAX_LENGTH] + '...'
2582
+ raise AssertionError(f"Expected code to be unreachable, but got: {value}")
2583
+
2584
+
2585
+ def no_type_check(arg):
2586
+ """Decorator to indicate that annotations are not type hints.
2587
+
2588
+ The argument must be a class or function; if it is a class, it
2589
+ applies recursively to all methods and classes defined in that class
2590
+ (but not to methods defined in its superclasses or subclasses).
2591
+
2592
+ This mutates the function(s) or class(es) in place.
2593
+ """
2594
+ if isinstance(arg, type):
2595
+ for key in dir(arg):
2596
+ obj = getattr(arg, key)
2597
+ if (
2598
+ not hasattr(obj, '__qualname__')
2599
+ or obj.__qualname__ != f'{arg.__qualname__}.{obj.__name__}'
2600
+ or getattr(obj, '__module__', None) != arg.__module__
2601
+ ):
2602
+ # We only modify objects that are defined in this type directly.
2603
+ # If classes / methods are nested in multiple layers,
2604
+ # we will modify them when processing their direct holders.
2605
+ continue
2606
+ # Instance, class, and static methods:
2607
+ if isinstance(obj, types.FunctionType):
2608
+ obj.__no_type_check__ = True
2609
+ if isinstance(obj, types.MethodType):
2610
+ obj.__func__.__no_type_check__ = True
2611
+ # Nested types:
2612
+ if isinstance(obj, type):
2613
+ no_type_check(obj)
2614
+ try:
2615
+ arg.__no_type_check__ = True
2616
+ except TypeError: # built-in classes
2617
+ pass
2618
+ return arg
2619
+
2620
+
2621
+ def no_type_check_decorator(decorator):
2622
+ """Decorator to give another decorator the @no_type_check effect.
2623
+
2624
+ This wraps the decorator with something that wraps the decorated
2625
+ function in @no_type_check.
2626
+ """
2627
+ import warnings
2628
+ warnings._deprecated("typing.no_type_check_decorator", remove=(3, 15))
2629
+ @functools.wraps(decorator)
2630
+ def wrapped_decorator(*args, **kwds):
2631
+ func = decorator(*args, **kwds)
2632
+ func = no_type_check(func)
2633
+ return func
2634
+
2635
+ return wrapped_decorator
2636
+
2637
+
2638
+ def _overload_dummy(*args, **kwds):
2639
+ """Helper for @overload to raise when called."""
2640
+ raise NotImplementedError(
2641
+ "You should not call an overloaded function. "
2642
+ "A series of @overload-decorated functions "
2643
+ "outside a stub module should always be followed "
2644
+ "by an implementation that is not @overload-ed.")
2645
+
2646
+
2647
+ # {module: {qualname: {firstlineno: func}}}
2648
+ _overload_registry = defaultdict(functools.partial(defaultdict, dict))
2649
+
2650
+
2651
+ def overload(func):
2652
+ """Decorator for overloaded functions/methods.
2653
+
2654
+ In a stub file, place two or more stub definitions for the same
2655
+ function in a row, each decorated with @overload.
2656
+
2657
+ For example::
2658
+
2659
+ @overload
2660
+ def utf8(value: None) -> None: ...
2661
+ @overload
2662
+ def utf8(value: bytes) -> bytes: ...
2663
+ @overload
2664
+ def utf8(value: str) -> bytes: ...
2665
+
2666
+ In a non-stub file (i.e. a regular .py file), do the same but
2667
+ follow it with an implementation. The implementation should *not*
2668
+ be decorated with @overload::
2669
+
2670
+ @overload
2671
+ def utf8(value: None) -> None: ...
2672
+ @overload
2673
+ def utf8(value: bytes) -> bytes: ...
2674
+ @overload
2675
+ def utf8(value: str) -> bytes: ...
2676
+ def utf8(value):
2677
+ ... # implementation goes here
2678
+
2679
+ The overloads for a function can be retrieved at runtime using the
2680
+ get_overloads() function.
2681
+ """
2682
+ # classmethod and staticmethod
2683
+ f = getattr(func, "__func__", func)
2684
+ try:
2685
+ _overload_registry[f.__module__][f.__qualname__][f.__code__.co_firstlineno] = func
2686
+ except AttributeError:
2687
+ # Not a normal function; ignore.
2688
+ pass
2689
+ return _overload_dummy
2690
+
2691
+
2692
+ def get_overloads(func):
2693
+ """Return all defined overloads for *func* as a sequence."""
2694
+ # classmethod and staticmethod
2695
+ f = getattr(func, "__func__", func)
2696
+ if f.__module__ not in _overload_registry:
2697
+ return []
2698
+ mod_dict = _overload_registry[f.__module__]
2699
+ if f.__qualname__ not in mod_dict:
2700
+ return []
2701
+ return list(mod_dict[f.__qualname__].values())
2702
+
2703
+
2704
+ def clear_overloads():
2705
+ """Clear all overloads in the registry."""
2706
+ _overload_registry.clear()
2707
+
2708
+
2709
+ def final(f):
2710
+ """Decorator to indicate final methods and final classes.
2711
+
2712
+ Use this decorator to indicate to type checkers that the decorated
2713
+ method cannot be overridden, and decorated class cannot be subclassed.
2714
+
2715
+ For example::
2716
+
2717
+ class Base:
2718
+ @final
2719
+ def done(self) -> None:
2720
+ ...
2721
+ class Sub(Base):
2722
+ def done(self) -> None: # Error reported by type checker
2723
+ ...
2724
+
2725
+ @final
2726
+ class Leaf:
2727
+ ...
2728
+ class Other(Leaf): # Error reported by type checker
2729
+ ...
2730
+
2731
+ There is no runtime checking of these properties. The decorator
2732
+ attempts to set the ``__final__`` attribute to ``True`` on the decorated
2733
+ object to allow runtime introspection.
2734
+ """
2735
+ try:
2736
+ f.__final__ = True
2737
+ except (AttributeError, TypeError):
2738
+ # Skip the attribute silently if it is not writable.
2739
+ # AttributeError happens if the object has __slots__ or a
2740
+ # read-only property, TypeError if it's a builtin class.
2741
+ pass
2742
+ return f
2743
+
2744
+
2745
+ # Some unconstrained type variables. These were initially used by the container types.
2746
+ # They were never meant for export and are now unused, but we keep them around to
2747
+ # avoid breaking compatibility with users who import them.
2748
+ T = TypeVar('T') # Any type.
2749
+ KT = TypeVar('KT') # Key type.
2750
+ VT = TypeVar('VT') # Value type.
2751
+ T_co = TypeVar('T_co', covariant=True) # Any type covariant containers.
2752
+ V_co = TypeVar('V_co', covariant=True) # Any type covariant containers.
2753
+ VT_co = TypeVar('VT_co', covariant=True) # Value type covariant containers.
2754
+ T_contra = TypeVar('T_contra', contravariant=True) # Ditto contravariant.
2755
+ # Internal type variable used for Type[].
2756
+ CT_co = TypeVar('CT_co', covariant=True, bound=type)
2757
+
2758
+
2759
+ # A useful type variable with constraints. This represents string types.
2760
+ # (This one *is* for export!)
2761
+ AnyStr = TypeVar('AnyStr', bytes, str)
2762
+
2763
+
2764
+ # Various ABCs mimicking those in collections.abc.
2765
+ _alias = _SpecialGenericAlias
2766
+
2767
+ Hashable = _alias(collections.abc.Hashable, 0) # Not generic.
2768
+ Awaitable = _alias(collections.abc.Awaitable, 1)
2769
+ Coroutine = _alias(collections.abc.Coroutine, 3)
2770
+ AsyncIterable = _alias(collections.abc.AsyncIterable, 1)
2771
+ AsyncIterator = _alias(collections.abc.AsyncIterator, 1)
2772
+ Iterable = _alias(collections.abc.Iterable, 1)
2773
+ Iterator = _alias(collections.abc.Iterator, 1)
2774
+ Reversible = _alias(collections.abc.Reversible, 1)
2775
+ Sized = _alias(collections.abc.Sized, 0) # Not generic.
2776
+ Container = _alias(collections.abc.Container, 1)
2777
+ Collection = _alias(collections.abc.Collection, 1)
2778
+ Callable = _CallableType(collections.abc.Callable, 2)
2779
+ Callable.__doc__ = \
2780
+ """Deprecated alias to collections.abc.Callable.
2781
+
2782
+ Callable[[int], str] signifies a function that takes a single
2783
+ parameter of type int and returns a str.
2784
+
2785
+ The subscription syntax must always be used with exactly two
2786
+ values: the argument list and the return type.
2787
+ The argument list must be a list of types, a ParamSpec,
2788
+ Concatenate or ellipsis. The return type must be a single type.
2789
+
2790
+ There is no syntax to indicate optional or keyword arguments;
2791
+ such function types are rarely used as callback types.
2792
+ """
2793
+ AbstractSet = _alias(collections.abc.Set, 1, name='AbstractSet')
2794
+ MutableSet = _alias(collections.abc.MutableSet, 1)
2795
+ # NOTE: Mapping is only covariant in the value type.
2796
+ Mapping = _alias(collections.abc.Mapping, 2)
2797
+ MutableMapping = _alias(collections.abc.MutableMapping, 2)
2798
+ Sequence = _alias(collections.abc.Sequence, 1)
2799
+ MutableSequence = _alias(collections.abc.MutableSequence, 1)
2800
+ ByteString = _DeprecatedGenericAlias(
2801
+ collections.abc.ByteString, 0, removal_version=(3, 17) # Not generic.
2802
+ )
2803
+ # Tuple accepts variable number of parameters.
2804
+ Tuple = _TupleType(tuple, -1, inst=False, name='Tuple')
2805
+ Tuple.__doc__ = \
2806
+ """Deprecated alias to builtins.tuple.
2807
+
2808
+ Tuple[X, Y] is the cross-product type of X and Y.
2809
+
2810
+ Example: Tuple[T1, T2] is a tuple of two elements corresponding
2811
+ to type variables T1 and T2. Tuple[int, float, str] is a tuple
2812
+ of an int, a float and a string.
2813
+
2814
+ To specify a variable-length tuple of homogeneous type, use Tuple[T, ...].
2815
+ """
2816
+ List = _alias(list, 1, inst=False, name='List')
2817
+ Deque = _alias(collections.deque, 1, name='Deque')
2818
+ Set = _alias(set, 1, inst=False, name='Set')
2819
+ FrozenSet = _alias(frozenset, 1, inst=False, name='FrozenSet')
2820
+ MappingView = _alias(collections.abc.MappingView, 1)
2821
+ KeysView = _alias(collections.abc.KeysView, 1)
2822
+ ItemsView = _alias(collections.abc.ItemsView, 2)
2823
+ ValuesView = _alias(collections.abc.ValuesView, 1)
2824
+ Dict = _alias(dict, 2, inst=False, name='Dict')
2825
+ DefaultDict = _alias(collections.defaultdict, 2, name='DefaultDict')
2826
+ OrderedDict = _alias(collections.OrderedDict, 2)
2827
+ Counter = _alias(collections.Counter, 1)
2828
+ ChainMap = _alias(collections.ChainMap, 2)
2829
+ Generator = _alias(collections.abc.Generator, 3, defaults=(types.NoneType, types.NoneType))
2830
+ AsyncGenerator = _alias(collections.abc.AsyncGenerator, 2, defaults=(types.NoneType,))
2831
+ Type = _alias(type, 1, inst=False, name='Type')
2832
+ Type.__doc__ = \
2833
+ """Deprecated alias to builtins.type.
2834
+
2835
+ builtins.type or typing.Type can be used to annotate class objects.
2836
+ For example, suppose we have the following classes::
2837
+
2838
+ class User: ... # Abstract base for User classes
2839
+ class BasicUser(User): ...
2840
+ class ProUser(User): ...
2841
+ class TeamUser(User): ...
2842
+
2843
+ And a function that takes a class argument that's a subclass of
2844
+ User and returns an instance of the corresponding class::
2845
+
2846
+ def new_user[U](user_class: Type[U]) -> U:
2847
+ user = user_class()
2848
+ # (Here we could write the user object to a database)
2849
+ return user
2850
+
2851
+ joe = new_user(BasicUser)
2852
+
2853
+ At this point the type checker knows that joe has type BasicUser.
2854
+ """
2855
+
2856
+
2857
+ @runtime_checkable
2858
+ class SupportsInt(Protocol):
2859
+ """An ABC with one abstract method __int__."""
2860
+
2861
+ __slots__ = ()
2862
+
2863
+ @abstractmethod
2864
+ def __int__(self) -> int:
2865
+ pass
2866
+
2867
+
2868
+ @runtime_checkable
2869
+ class SupportsFloat(Protocol):
2870
+ """An ABC with one abstract method __float__."""
2871
+
2872
+ __slots__ = ()
2873
+
2874
+ @abstractmethod
2875
+ def __float__(self) -> float:
2876
+ pass
2877
+
2878
+
2879
+ @runtime_checkable
2880
+ class SupportsComplex(Protocol):
2881
+ """An ABC with one abstract method __complex__."""
2882
+
2883
+ __slots__ = ()
2884
+
2885
+ @abstractmethod
2886
+ def __complex__(self) -> complex:
2887
+ pass
2888
+
2889
+
2890
+ @runtime_checkable
2891
+ class SupportsBytes(Protocol):
2892
+ """An ABC with one abstract method __bytes__."""
2893
+
2894
+ __slots__ = ()
2895
+
2896
+ @abstractmethod
2897
+ def __bytes__(self) -> bytes:
2898
+ pass
2899
+
2900
+
2901
+ @runtime_checkable
2902
+ class SupportsIndex(Protocol):
2903
+ """An ABC with one abstract method __index__."""
2904
+
2905
+ __slots__ = ()
2906
+
2907
+ @abstractmethod
2908
+ def __index__(self) -> int:
2909
+ pass
2910
+
2911
+
2912
+ @runtime_checkable
2913
+ class SupportsAbs[T](Protocol):
2914
+ """An ABC with one abstract method __abs__ that is covariant in its return type."""
2915
+
2916
+ __slots__ = ()
2917
+
2918
+ @abstractmethod
2919
+ def __abs__(self) -> T:
2920
+ pass
2921
+
2922
+
2923
+ @runtime_checkable
2924
+ class SupportsRound[T](Protocol):
2925
+ """An ABC with one abstract method __round__ that is covariant in its return type."""
2926
+
2927
+ __slots__ = ()
2928
+
2929
+ @abstractmethod
2930
+ def __round__(self, ndigits: int = 0) -> T:
2931
+ pass
2932
+
2933
+
2934
+ def _make_nmtuple(name, fields, annotate_func, module, defaults = ()):
2935
+ nm_tpl = collections.namedtuple(name, fields,
2936
+ defaults=defaults, module=module)
2937
+ nm_tpl.__annotate__ = nm_tpl.__new__.__annotate__ = annotate_func
2938
+ return nm_tpl
2939
+
2940
+
2941
+ def _make_eager_annotate(types):
2942
+ checked_types = {key: _type_check(val, f"field {key} annotation must be a type")
2943
+ for key, val in types.items()}
2944
+ def annotate(format):
2945
+ match format:
2946
+ case _lazy_annotationlib.Format.VALUE | _lazy_annotationlib.Format.FORWARDREF:
2947
+ return checked_types
2948
+ case _lazy_annotationlib.Format.STRING:
2949
+ return _lazy_annotationlib.annotations_to_string(types)
2950
+ case _:
2951
+ raise NotImplementedError(format)
2952
+ return annotate
2953
+
2954
+
2955
+ # attributes prohibited to set in NamedTuple class syntax
2956
+ _prohibited = frozenset({'__new__', '__init__', '__slots__', '__getnewargs__',
2957
+ '_fields', '_field_defaults',
2958
+ '_make', '_replace', '_asdict', '_source'})
2959
+
2960
+ _special = frozenset({'__module__', '__name__', '__annotations__', '__annotate__',
2961
+ '__annotate_func__', '__annotations_cache__'})
2962
+
2963
+
2964
+ class NamedTupleMeta(type):
2965
+ def __new__(cls, typename, bases, ns):
2966
+ assert _NamedTuple in bases
2967
+ if "__classcell__" in ns:
2968
+ raise TypeError(
2969
+ "uses of super() and __class__ are unsupported in methods of NamedTuple subclasses")
2970
+ for base in bases:
2971
+ if base is not _NamedTuple and base is not Generic:
2972
+ raise TypeError(
2973
+ 'can only inherit from a NamedTuple type and Generic')
2974
+ bases = tuple(tuple if base is _NamedTuple else base for base in bases)
2975
+ if "__annotations__" in ns:
2976
+ types = ns["__annotations__"]
2977
+ field_names = list(types)
2978
+ annotate = _make_eager_annotate(types)
2979
+ elif (original_annotate := _lazy_annotationlib.get_annotate_from_class_namespace(ns)) is not None:
2980
+ types = _lazy_annotationlib.call_annotate_function(
2981
+ original_annotate, _lazy_annotationlib.Format.FORWARDREF)
2982
+ field_names = list(types)
2983
+
2984
+ # For backward compatibility, type-check all the types at creation time
2985
+ for typ in types.values():
2986
+ _type_check(typ, "field annotation must be a type")
2987
+
2988
+ def annotate(format):
2989
+ annos = _lazy_annotationlib.call_annotate_function(
2990
+ original_annotate, format)
2991
+ if format != _lazy_annotationlib.Format.STRING:
2992
+ return {key: _type_check(val, f"field {key} annotation must be a type")
2993
+ for key, val in annos.items()}
2994
+ return annos
2995
+ else:
2996
+ # Empty NamedTuple
2997
+ field_names = []
2998
+ annotate = lambda format: {}
2999
+ default_names = []
3000
+ for field_name in field_names:
3001
+ if field_name in ns:
3002
+ default_names.append(field_name)
3003
+ elif default_names:
3004
+ raise TypeError(f"Non-default namedtuple field {field_name} "
3005
+ f"cannot follow default field"
3006
+ f"{'s' if len(default_names) > 1 else ''} "
3007
+ f"{', '.join(default_names)}")
3008
+ nm_tpl = _make_nmtuple(typename, field_names, annotate,
3009
+ defaults=[ns[n] for n in default_names],
3010
+ module=ns['__module__'])
3011
+ nm_tpl.__bases__ = bases
3012
+ if Generic in bases:
3013
+ class_getitem = _generic_class_getitem
3014
+ nm_tpl.__class_getitem__ = classmethod(class_getitem)
3015
+ # update from user namespace without overriding special namedtuple attributes
3016
+ for key, val in ns.items():
3017
+ if key in _prohibited:
3018
+ raise AttributeError("Cannot overwrite NamedTuple attribute " + key)
3019
+ elif key not in _special:
3020
+ if key not in nm_tpl._fields:
3021
+ setattr(nm_tpl, key, val)
3022
+ try:
3023
+ set_name = type(val).__set_name__
3024
+ except AttributeError:
3025
+ pass
3026
+ else:
3027
+ try:
3028
+ set_name(val, nm_tpl, key)
3029
+ except BaseException as e:
3030
+ e.add_note(
3031
+ f"Error calling __set_name__ on {type(val).__name__!r} "
3032
+ f"instance {key!r} in {typename!r}"
3033
+ )
3034
+ raise
3035
+
3036
+ if Generic in bases:
3037
+ nm_tpl.__init_subclass__()
3038
+ return nm_tpl
3039
+
3040
+
3041
+ def NamedTuple(typename, fields=_sentinel, /, **kwargs):
3042
+ """Typed version of namedtuple.
3043
+
3044
+ Usage::
3045
+
3046
+ class Employee(NamedTuple):
3047
+ name: str
3048
+ id: int
3049
+
3050
+ This is equivalent to::
3051
+
3052
+ Employee = collections.namedtuple('Employee', ['name', 'id'])
3053
+
3054
+ The resulting class has an extra __annotations__ attribute, giving a
3055
+ dict that maps field names to types. (The field names are also in
3056
+ the _fields attribute, which is part of the namedtuple API.)
3057
+ An alternative equivalent functional syntax is also accepted::
3058
+
3059
+ Employee = NamedTuple('Employee', [('name', str), ('id', int)])
3060
+ """
3061
+ if fields is _sentinel:
3062
+ if kwargs:
3063
+ deprecated_thing = "Creating NamedTuple classes using keyword arguments"
3064
+ deprecation_msg = (
3065
+ "{name} is deprecated and will be disallowed in Python {remove}. "
3066
+ "Use the class-based or functional syntax instead."
3067
+ )
3068
+ else:
3069
+ deprecated_thing = "Failing to pass a value for the 'fields' parameter"
3070
+ example = f"`{typename} = NamedTuple({typename!r}, [])`"
3071
+ deprecation_msg = (
3072
+ "{name} is deprecated and will be disallowed in Python {remove}. "
3073
+ "To create a NamedTuple class with 0 fields "
3074
+ "using the functional syntax, "
3075
+ "pass an empty list, e.g. "
3076
+ ) + example + "."
3077
+ elif fields is None:
3078
+ if kwargs:
3079
+ raise TypeError(
3080
+ "Cannot pass `None` as the 'fields' parameter "
3081
+ "and also specify fields using keyword arguments"
3082
+ )
3083
+ else:
3084
+ deprecated_thing = "Passing `None` as the 'fields' parameter"
3085
+ example = f"`{typename} = NamedTuple({typename!r}, [])`"
3086
+ deprecation_msg = (
3087
+ "{name} is deprecated and will be disallowed in Python {remove}. "
3088
+ "To create a NamedTuple class with 0 fields "
3089
+ "using the functional syntax, "
3090
+ "pass an empty list, e.g. "
3091
+ ) + example + "."
3092
+ elif kwargs:
3093
+ raise TypeError("Either list of fields or keywords"
3094
+ " can be provided to NamedTuple, not both")
3095
+ if fields is _sentinel or fields is None:
3096
+ import warnings
3097
+ warnings._deprecated(deprecated_thing, message=deprecation_msg, remove=(3, 15))
3098
+ fields = kwargs.items()
3099
+ types = {n: _type_check(t, f"field {n} annotation must be a type")
3100
+ for n, t in fields}
3101
+ field_names = [n for n, _ in fields]
3102
+
3103
+ nt = _make_nmtuple(typename, field_names, _make_eager_annotate(types), module=_caller())
3104
+ nt.__orig_bases__ = (NamedTuple,)
3105
+ return nt
3106
+
3107
+ _NamedTuple = type.__new__(NamedTupleMeta, 'NamedTuple', (), {})
3108
+
3109
+ def _namedtuple_mro_entries(bases):
3110
+ assert NamedTuple in bases
3111
+ return (_NamedTuple,)
3112
+
3113
+ NamedTuple.__mro_entries__ = _namedtuple_mro_entries
3114
+
3115
+
3116
+ def _get_typeddict_qualifiers(annotation_type):
3117
+ while True:
3118
+ annotation_origin = get_origin(annotation_type)
3119
+ if annotation_origin is Annotated:
3120
+ annotation_args = get_args(annotation_type)
3121
+ if annotation_args:
3122
+ annotation_type = annotation_args[0]
3123
+ else:
3124
+ break
3125
+ elif annotation_origin is Required:
3126
+ yield Required
3127
+ (annotation_type,) = get_args(annotation_type)
3128
+ elif annotation_origin is NotRequired:
3129
+ yield NotRequired
3130
+ (annotation_type,) = get_args(annotation_type)
3131
+ elif annotation_origin is ReadOnly:
3132
+ yield ReadOnly
3133
+ (annotation_type,) = get_args(annotation_type)
3134
+ else:
3135
+ break
3136
+
3137
+
3138
+ class _TypedDictMeta(type):
3139
+ def __new__(cls, name, bases, ns, total=True):
3140
+ """Create a new typed dict class object.
3141
+
3142
+ This method is called when TypedDict is subclassed,
3143
+ or when TypedDict is instantiated. This way
3144
+ TypedDict supports all three syntax forms described in its docstring.
3145
+ Subclasses and instances of TypedDict return actual dictionaries.
3146
+ """
3147
+ for base in bases:
3148
+ if type(base) is not _TypedDictMeta and base is not Generic:
3149
+ raise TypeError('cannot inherit from both a TypedDict type '
3150
+ 'and a non-TypedDict base class')
3151
+
3152
+ if any(issubclass(b, Generic) for b in bases):
3153
+ generic_base = (Generic,)
3154
+ else:
3155
+ generic_base = ()
3156
+
3157
+ ns_annotations = ns.pop('__annotations__', None)
3158
+
3159
+ tp_dict = type.__new__(_TypedDictMeta, name, (*generic_base, dict), ns)
3160
+
3161
+ if not hasattr(tp_dict, '__orig_bases__'):
3162
+ tp_dict.__orig_bases__ = bases
3163
+
3164
+ if ns_annotations is not None:
3165
+ own_annotate = None
3166
+ own_annotations = ns_annotations
3167
+ elif (own_annotate := _lazy_annotationlib.get_annotate_from_class_namespace(ns)) is not None:
3168
+ own_annotations = _lazy_annotationlib.call_annotate_function(
3169
+ own_annotate, _lazy_annotationlib.Format.FORWARDREF, owner=tp_dict
3170
+ )
3171
+ else:
3172
+ own_annotate = None
3173
+ own_annotations = {}
3174
+ msg = "TypedDict('Name', {f0: t0, f1: t1, ...}); each t must be a type"
3175
+ own_checked_annotations = {
3176
+ n: _type_check(tp, msg, owner=tp_dict, module=tp_dict.__module__)
3177
+ for n, tp in own_annotations.items()
3178
+ }
3179
+ required_keys = set()
3180
+ optional_keys = set()
3181
+ readonly_keys = set()
3182
+ mutable_keys = set()
3183
+
3184
+ for base in bases:
3185
+ base_required = base.__dict__.get('__required_keys__', set())
3186
+ required_keys |= base_required
3187
+ optional_keys -= base_required
3188
+
3189
+ base_optional = base.__dict__.get('__optional_keys__', set())
3190
+ required_keys -= base_optional
3191
+ optional_keys |= base_optional
3192
+
3193
+ readonly_keys.update(base.__dict__.get('__readonly_keys__', ()))
3194
+ mutable_keys.update(base.__dict__.get('__mutable_keys__', ()))
3195
+
3196
+ for annotation_key, annotation_type in own_checked_annotations.items():
3197
+ qualifiers = set(_get_typeddict_qualifiers(annotation_type))
3198
+ if Required in qualifiers:
3199
+ is_required = True
3200
+ elif NotRequired in qualifiers:
3201
+ is_required = False
3202
+ else:
3203
+ is_required = total
3204
+
3205
+ if is_required:
3206
+ required_keys.add(annotation_key)
3207
+ optional_keys.discard(annotation_key)
3208
+ else:
3209
+ optional_keys.add(annotation_key)
3210
+ required_keys.discard(annotation_key)
3211
+
3212
+ if ReadOnly in qualifiers:
3213
+ if annotation_key in mutable_keys:
3214
+ raise TypeError(
3215
+ f"Cannot override mutable key {annotation_key!r}"
3216
+ " with read-only key"
3217
+ )
3218
+ readonly_keys.add(annotation_key)
3219
+ else:
3220
+ mutable_keys.add(annotation_key)
3221
+ readonly_keys.discard(annotation_key)
3222
+
3223
+ assert required_keys.isdisjoint(optional_keys), (
3224
+ f"Required keys overlap with optional keys in {name}:"
3225
+ f" {required_keys=}, {optional_keys=}"
3226
+ )
3227
+
3228
+ def __annotate__(format):
3229
+ annos = {}
3230
+ for base in bases:
3231
+ if base is Generic:
3232
+ continue
3233
+ base_annotate = base.__annotate__
3234
+ if base_annotate is None:
3235
+ continue
3236
+ base_annos = _lazy_annotationlib.call_annotate_function(
3237
+ base_annotate, format, owner=base)
3238
+ annos.update(base_annos)
3239
+ if own_annotate is not None:
3240
+ own = _lazy_annotationlib.call_annotate_function(
3241
+ own_annotate, format, owner=tp_dict)
3242
+ if format != _lazy_annotationlib.Format.STRING:
3243
+ own = {
3244
+ n: _type_check(tp, msg, module=tp_dict.__module__)
3245
+ for n, tp in own.items()
3246
+ }
3247
+ elif format == _lazy_annotationlib.Format.STRING:
3248
+ own = _lazy_annotationlib.annotations_to_string(own_annotations)
3249
+ elif format in (_lazy_annotationlib.Format.FORWARDREF, _lazy_annotationlib.Format.VALUE):
3250
+ own = own_checked_annotations
3251
+ else:
3252
+ raise NotImplementedError(format)
3253
+ annos.update(own)
3254
+ return annos
3255
+
3256
+ tp_dict.__annotate__ = __annotate__
3257
+ tp_dict.__required_keys__ = frozenset(required_keys)
3258
+ tp_dict.__optional_keys__ = frozenset(optional_keys)
3259
+ tp_dict.__readonly_keys__ = frozenset(readonly_keys)
3260
+ tp_dict.__mutable_keys__ = frozenset(mutable_keys)
3261
+ tp_dict.__total__ = total
3262
+ return tp_dict
3263
+
3264
+ __call__ = dict # static method
3265
+
3266
+ def __subclasscheck__(cls, other):
3267
+ # Typed dicts are only for static structural subtyping.
3268
+ raise TypeError('TypedDict does not support instance and class checks')
3269
+
3270
+ __instancecheck__ = __subclasscheck__
3271
+
3272
+
3273
+ def TypedDict(typename, fields=_sentinel, /, *, total=True):
3274
+ """A simple typed namespace. At runtime it is equivalent to a plain dict.
3275
+
3276
+ TypedDict creates a dictionary type such that a type checker will expect all
3277
+ instances to have a certain set of keys, where each key is
3278
+ associated with a value of a consistent type. This expectation
3279
+ is not checked at runtime.
3280
+
3281
+ Usage::
3282
+
3283
+ >>> class Point2D(TypedDict):
3284
+ ... x: int
3285
+ ... y: int
3286
+ ... label: str
3287
+ ...
3288
+ >>> a: Point2D = {'x': 1, 'y': 2, 'label': 'good'} # OK
3289
+ >>> b: Point2D = {'z': 3, 'label': 'bad'} # Fails type check
3290
+ >>> Point2D(x=1, y=2, label='first') == dict(x=1, y=2, label='first')
3291
+ True
3292
+
3293
+ The type info can be accessed via the Point2D.__annotations__ dict, and
3294
+ the Point2D.__required_keys__ and Point2D.__optional_keys__ frozensets.
3295
+ TypedDict supports an additional equivalent form::
3296
+
3297
+ Point2D = TypedDict('Point2D', {'x': int, 'y': int, 'label': str})
3298
+
3299
+ By default, all keys must be present in a TypedDict. It is possible
3300
+ to override this by specifying totality::
3301
+
3302
+ class Point2D(TypedDict, total=False):
3303
+ x: int
3304
+ y: int
3305
+
3306
+ This means that a Point2D TypedDict can have any of the keys omitted. A type
3307
+ checker is only expected to support a literal False or True as the value of
3308
+ the total argument. True is the default, and makes all items defined in the
3309
+ class body be required.
3310
+
3311
+ The Required and NotRequired special forms can also be used to mark
3312
+ individual keys as being required or not required::
3313
+
3314
+ class Point2D(TypedDict):
3315
+ x: int # the "x" key must always be present (Required is the default)
3316
+ y: NotRequired[int] # the "y" key can be omitted
3317
+
3318
+ See PEP 655 for more details on Required and NotRequired.
3319
+
3320
+ The ReadOnly special form can be used
3321
+ to mark individual keys as immutable for type checkers::
3322
+
3323
+ class DatabaseUser(TypedDict):
3324
+ id: ReadOnly[int] # the "id" key must not be modified
3325
+ username: str # the "username" key can be changed
3326
+
3327
+ """
3328
+ if fields is _sentinel or fields is None:
3329
+ import warnings
3330
+
3331
+ if fields is _sentinel:
3332
+ deprecated_thing = "Failing to pass a value for the 'fields' parameter"
3333
+ else:
3334
+ deprecated_thing = "Passing `None` as the 'fields' parameter"
3335
+
3336
+ example = f"`{typename} = TypedDict({typename!r}, {{{{}}}})`"
3337
+ deprecation_msg = (
3338
+ "{name} is deprecated and will be disallowed in Python {remove}. "
3339
+ "To create a TypedDict class with 0 fields "
3340
+ "using the functional syntax, "
3341
+ "pass an empty dictionary, e.g. "
3342
+ ) + example + "."
3343
+ warnings._deprecated(deprecated_thing, message=deprecation_msg, remove=(3, 15))
3344
+ fields = {}
3345
+
3346
+ ns = {'__annotations__': dict(fields)}
3347
+ module = _caller()
3348
+ if module is not None:
3349
+ # Setting correct module is necessary to make typed dict classes pickleable.
3350
+ ns['__module__'] = module
3351
+
3352
+ td = _TypedDictMeta(typename, (), ns, total=total)
3353
+ td.__orig_bases__ = (TypedDict,)
3354
+ return td
3355
+
3356
+ _TypedDict = type.__new__(_TypedDictMeta, 'TypedDict', (), {})
3357
+ TypedDict.__mro_entries__ = lambda bases: (_TypedDict,)
3358
+
3359
+
3360
+ @_SpecialForm
3361
+ def Required(self, parameters):
3362
+ """Special typing construct to mark a TypedDict key as required.
3363
+
3364
+ This is mainly useful for total=False TypedDicts.
3365
+
3366
+ For example::
3367
+
3368
+ class Movie(TypedDict, total=False):
3369
+ title: Required[str]
3370
+ year: int
3371
+
3372
+ m = Movie(
3373
+ title='The Matrix', # typechecker error if key is omitted
3374
+ year=1999,
3375
+ )
3376
+
3377
+ There is no runtime checking that a required key is actually provided
3378
+ when instantiating a related TypedDict.
3379
+ """
3380
+ item = _type_check(parameters, f'{self._name} accepts only a single type.')
3381
+ return _GenericAlias(self, (item,))
3382
+
3383
+
3384
+ @_SpecialForm
3385
+ def NotRequired(self, parameters):
3386
+ """Special typing construct to mark a TypedDict key as potentially missing.
3387
+
3388
+ For example::
3389
+
3390
+ class Movie(TypedDict):
3391
+ title: str
3392
+ year: NotRequired[int]
3393
+
3394
+ m = Movie(
3395
+ title='The Matrix', # typechecker error if key is omitted
3396
+ year=1999,
3397
+ )
3398
+ """
3399
+ item = _type_check(parameters, f'{self._name} accepts only a single type.')
3400
+ return _GenericAlias(self, (item,))
3401
+
3402
+
3403
+ @_SpecialForm
3404
+ def ReadOnly(self, parameters):
3405
+ """A special typing construct to mark an item of a TypedDict as read-only.
3406
+
3407
+ For example::
3408
+
3409
+ class Movie(TypedDict):
3410
+ title: ReadOnly[str]
3411
+ year: int
3412
+
3413
+ def mutate_movie(m: Movie) -> None:
3414
+ m["year"] = 1992 # allowed
3415
+ m["title"] = "The Matrix" # typechecker error
3416
+
3417
+ There is no runtime checking for this property.
3418
+ """
3419
+ item = _type_check(parameters, f'{self._name} accepts only a single type.')
3420
+ return _GenericAlias(self, (item,))
3421
+
3422
+
3423
+ class NewType:
3424
+ """NewType creates simple unique types with almost zero runtime overhead.
3425
+
3426
+ NewType(name, tp) is considered a subtype of tp
3427
+ by static type checkers. At runtime, NewType(name, tp) returns
3428
+ a dummy callable that simply returns its argument.
3429
+
3430
+ Usage::
3431
+
3432
+ UserId = NewType('UserId', int)
3433
+
3434
+ def name_by_id(user_id: UserId) -> str:
3435
+ ...
3436
+
3437
+ UserId('user') # Fails type check
3438
+
3439
+ name_by_id(42) # Fails type check
3440
+ name_by_id(UserId(42)) # OK
3441
+
3442
+ num = UserId(5) + 1 # type: int
3443
+ """
3444
+
3445
+ __call__ = _idfunc
3446
+
3447
+ def __init__(self, name, tp):
3448
+ self.__qualname__ = name
3449
+ if '.' in name:
3450
+ name = name.rpartition('.')[-1]
3451
+ self.__name__ = name
3452
+ self.__supertype__ = tp
3453
+ def_mod = _caller()
3454
+ if def_mod != 'typing':
3455
+ self.__module__ = def_mod
3456
+
3457
+ def __mro_entries__(self, bases):
3458
+ # We defined __mro_entries__ to get a better error message
3459
+ # if a user attempts to subclass a NewType instance. bpo-46170
3460
+ superclass_name = self.__name__
3461
+
3462
+ class Dummy:
3463
+ def __init_subclass__(cls):
3464
+ subclass_name = cls.__name__
3465
+ raise TypeError(
3466
+ f"Cannot subclass an instance of NewType. Perhaps you were looking for: "
3467
+ f"`{subclass_name} = NewType({subclass_name!r}, {superclass_name})`"
3468
+ )
3469
+
3470
+ return (Dummy,)
3471
+
3472
+ def __repr__(self):
3473
+ return f'{self.__module__}.{self.__qualname__}'
3474
+
3475
+ def __reduce__(self):
3476
+ return self.__qualname__
3477
+
3478
+ def __or__(self, other):
3479
+ return Union[self, other]
3480
+
3481
+ def __ror__(self, other):
3482
+ return Union[other, self]
3483
+
3484
+
3485
+ # Python-version-specific alias (Python 2: unicode; Python 3: str)
3486
+ Text = str
3487
+
3488
+
3489
+ # Constant that's True when type checking, but False here.
3490
+ TYPE_CHECKING = False
3491
+
3492
+
3493
+ class IO(Generic[AnyStr]):
3494
+ """Generic base class for TextIO and BinaryIO.
3495
+
3496
+ This is an abstract, generic version of the return of open().
3497
+
3498
+ NOTE: This does not distinguish between the different possible
3499
+ classes (text vs. binary, read vs. write vs. read/write,
3500
+ append-only, unbuffered). The TextIO and BinaryIO subclasses
3501
+ below capture the distinctions between text vs. binary, which is
3502
+ pervasive in the interface; however we currently do not offer a
3503
+ way to track the other distinctions in the type system.
3504
+ """
3505
+
3506
+ __slots__ = ()
3507
+
3508
+ @property
3509
+ @abstractmethod
3510
+ def mode(self) -> str:
3511
+ pass
3512
+
3513
+ @property
3514
+ @abstractmethod
3515
+ def name(self) -> str:
3516
+ pass
3517
+
3518
+ @abstractmethod
3519
+ def close(self) -> None:
3520
+ pass
3521
+
3522
+ @property
3523
+ @abstractmethod
3524
+ def closed(self) -> bool:
3525
+ pass
3526
+
3527
+ @abstractmethod
3528
+ def fileno(self) -> int:
3529
+ pass
3530
+
3531
+ @abstractmethod
3532
+ def flush(self) -> None:
3533
+ pass
3534
+
3535
+ @abstractmethod
3536
+ def isatty(self) -> bool:
3537
+ pass
3538
+
3539
+ @abstractmethod
3540
+ def read(self, n: int = -1) -> AnyStr:
3541
+ pass
3542
+
3543
+ @abstractmethod
3544
+ def readable(self) -> bool:
3545
+ pass
3546
+
3547
+ @abstractmethod
3548
+ def readline(self, limit: int = -1) -> AnyStr:
3549
+ pass
3550
+
3551
+ @abstractmethod
3552
+ def readlines(self, hint: int = -1) -> list[AnyStr]:
3553
+ pass
3554
+
3555
+ @abstractmethod
3556
+ def seek(self, offset: int, whence: int = 0) -> int:
3557
+ pass
3558
+
3559
+ @abstractmethod
3560
+ def seekable(self) -> bool:
3561
+ pass
3562
+
3563
+ @abstractmethod
3564
+ def tell(self) -> int:
3565
+ pass
3566
+
3567
+ @abstractmethod
3568
+ def truncate(self, size: int | None = None) -> int:
3569
+ pass
3570
+
3571
+ @abstractmethod
3572
+ def writable(self) -> bool:
3573
+ pass
3574
+
3575
+ @abstractmethod
3576
+ def write(self, s: AnyStr) -> int:
3577
+ pass
3578
+
3579
+ @abstractmethod
3580
+ def writelines(self, lines: list[AnyStr]) -> None:
3581
+ pass
3582
+
3583
+ @abstractmethod
3584
+ def __enter__(self) -> IO[AnyStr]:
3585
+ pass
3586
+
3587
+ @abstractmethod
3588
+ def __exit__(self, type, value, traceback) -> None:
3589
+ pass
3590
+
3591
+
3592
+ class BinaryIO(IO[bytes]):
3593
+ """Typed version of the return of open() in binary mode."""
3594
+
3595
+ __slots__ = ()
3596
+
3597
+ @abstractmethod
3598
+ def write(self, s: bytes | bytearray) -> int:
3599
+ pass
3600
+
3601
+ @abstractmethod
3602
+ def __enter__(self) -> BinaryIO:
3603
+ pass
3604
+
3605
+
3606
+ class TextIO(IO[str]):
3607
+ """Typed version of the return of open() in text mode."""
3608
+
3609
+ __slots__ = ()
3610
+
3611
+ @property
3612
+ @abstractmethod
3613
+ def buffer(self) -> BinaryIO:
3614
+ pass
3615
+
3616
+ @property
3617
+ @abstractmethod
3618
+ def encoding(self) -> str:
3619
+ pass
3620
+
3621
+ @property
3622
+ @abstractmethod
3623
+ def errors(self) -> str | None:
3624
+ pass
3625
+
3626
+ @property
3627
+ @abstractmethod
3628
+ def line_buffering(self) -> bool:
3629
+ pass
3630
+
3631
+ @property
3632
+ @abstractmethod
3633
+ def newlines(self) -> Any:
3634
+ pass
3635
+
3636
+ @abstractmethod
3637
+ def __enter__(self) -> TextIO:
3638
+ pass
3639
+
3640
+
3641
+ def reveal_type[T](obj: T, /) -> T:
3642
+ """Ask a static type checker to reveal the inferred type of an expression.
3643
+
3644
+ When a static type checker encounters a call to ``reveal_type()``,
3645
+ it will emit the inferred type of the argument::
3646
+
3647
+ x: int = 1
3648
+ reveal_type(x)
3649
+
3650
+ Running a static type checker (e.g., mypy) on this example
3651
+ will produce output similar to 'Revealed type is "builtins.int"'.
3652
+
3653
+ At runtime, the function prints the runtime type of the
3654
+ argument and returns the argument unchanged.
3655
+ """
3656
+ print(f"Runtime type is {type(obj).__name__!r}", file=sys.stderr)
3657
+ return obj
3658
+
3659
+
3660
+ class _IdentityCallable(Protocol):
3661
+ def __call__[T](self, arg: T, /) -> T:
3662
+ ...
3663
+
3664
+
3665
+ def dataclass_transform(
3666
+ *,
3667
+ eq_default: bool = True,
3668
+ order_default: bool = False,
3669
+ kw_only_default: bool = False,
3670
+ frozen_default: bool = False,
3671
+ field_specifiers: tuple[type[Any] | Callable[..., Any], ...] = (),
3672
+ **kwargs: Any,
3673
+ ) -> _IdentityCallable:
3674
+ """Decorator to mark an object as providing dataclass-like behaviour.
3675
+
3676
+ The decorator can be applied to a function, class, or metaclass.
3677
+
3678
+ Example usage with a decorator function::
3679
+
3680
+ @dataclass_transform()
3681
+ def create_model[T](cls: type[T]) -> type[T]:
3682
+ ...
3683
+ return cls
3684
+
3685
+ @create_model
3686
+ class CustomerModel:
3687
+ id: int
3688
+ name: str
3689
+
3690
+ On a base class::
3691
+
3692
+ @dataclass_transform()
3693
+ class ModelBase: ...
3694
+
3695
+ class CustomerModel(ModelBase):
3696
+ id: int
3697
+ name: str
3698
+
3699
+ On a metaclass::
3700
+
3701
+ @dataclass_transform()
3702
+ class ModelMeta(type): ...
3703
+
3704
+ class ModelBase(metaclass=ModelMeta): ...
3705
+
3706
+ class CustomerModel(ModelBase):
3707
+ id: int
3708
+ name: str
3709
+
3710
+ The ``CustomerModel`` classes defined above will
3711
+ be treated by type checkers similarly to classes created with
3712
+ ``@dataclasses.dataclass``.
3713
+ For example, type checkers will assume these classes have
3714
+ ``__init__`` methods that accept ``id`` and ``name``.
3715
+
3716
+ The arguments to this decorator can be used to customize this behavior:
3717
+ - ``eq_default`` indicates whether the ``eq`` parameter is assumed to be
3718
+ ``True`` or ``False`` if it is omitted by the caller.
3719
+ - ``order_default`` indicates whether the ``order`` parameter is
3720
+ assumed to be True or False if it is omitted by the caller.
3721
+ - ``kw_only_default`` indicates whether the ``kw_only`` parameter is
3722
+ assumed to be True or False if it is omitted by the caller.
3723
+ - ``frozen_default`` indicates whether the ``frozen`` parameter is
3724
+ assumed to be True or False if it is omitted by the caller.
3725
+ - ``field_specifiers`` specifies a static list of supported classes
3726
+ or functions that describe fields, similar to ``dataclasses.field()``.
3727
+ - Arbitrary other keyword arguments are accepted in order to allow for
3728
+ possible future extensions.
3729
+
3730
+ At runtime, this decorator records its arguments in the
3731
+ ``__dataclass_transform__`` attribute on the decorated object.
3732
+ It has no other runtime effect.
3733
+
3734
+ See PEP 681 for more details.
3735
+ """
3736
+ def decorator(cls_or_fn):
3737
+ cls_or_fn.__dataclass_transform__ = {
3738
+ "eq_default": eq_default,
3739
+ "order_default": order_default,
3740
+ "kw_only_default": kw_only_default,
3741
+ "frozen_default": frozen_default,
3742
+ "field_specifiers": field_specifiers,
3743
+ "kwargs": kwargs,
3744
+ }
3745
+ return cls_or_fn
3746
+ return decorator
3747
+
3748
+
3749
+ type _Func = Callable[..., Any]
3750
+
3751
+
3752
+ def override[F: _Func](method: F, /) -> F:
3753
+ """Indicate that a method is intended to override a method in a base class.
3754
+
3755
+ Usage::
3756
+
3757
+ class Base:
3758
+ def method(self) -> None:
3759
+ pass
3760
+
3761
+ class Child(Base):
3762
+ @override
3763
+ def method(self) -> None:
3764
+ super().method()
3765
+
3766
+ When this decorator is applied to a method, the type checker will
3767
+ validate that it overrides a method or attribute with the same name on a
3768
+ base class. This helps prevent bugs that may occur when a base class is
3769
+ changed without an equivalent change to a child class.
3770
+
3771
+ There is no runtime checking of this property. The decorator attempts to
3772
+ set the ``__override__`` attribute to ``True`` on the decorated object to
3773
+ allow runtime introspection.
3774
+
3775
+ See PEP 698 for details.
3776
+ """
3777
+ try:
3778
+ method.__override__ = True
3779
+ except (AttributeError, TypeError):
3780
+ # Skip the attribute silently if it is not writable.
3781
+ # AttributeError happens if the object has __slots__ or a
3782
+ # read-only property, TypeError if it's a builtin class.
3783
+ pass
3784
+ return method
3785
+
3786
+
3787
+ def is_protocol(tp: type, /) -> bool:
3788
+ """Return True if the given type is a Protocol.
3789
+
3790
+ Example::
3791
+
3792
+ >>> from typing import Protocol, is_protocol
3793
+ >>> class P(Protocol):
3794
+ ... def a(self) -> str: ...
3795
+ ... b: int
3796
+ >>> is_protocol(P)
3797
+ True
3798
+ >>> is_protocol(int)
3799
+ False
3800
+ """
3801
+ return (
3802
+ isinstance(tp, type)
3803
+ and getattr(tp, '_is_protocol', False)
3804
+ and tp != Protocol
3805
+ )
3806
+
3807
+
3808
+ def get_protocol_members(tp: type, /) -> frozenset[str]:
3809
+ """Return the set of members defined in a Protocol.
3810
+
3811
+ Example::
3812
+
3813
+ >>> from typing import Protocol, get_protocol_members
3814
+ >>> class P(Protocol):
3815
+ ... def a(self) -> str: ...
3816
+ ... b: int
3817
+ >>> get_protocol_members(P) == frozenset({'a', 'b'})
3818
+ True
3819
+
3820
+ Raise a TypeError for arguments that are not Protocols.
3821
+ """
3822
+ if not is_protocol(tp):
3823
+ raise TypeError(f'{tp!r} is not a Protocol')
3824
+ return frozenset(tp.__protocol_attrs__)
3825
+
3826
+
3827
+ def __getattr__(attr):
3828
+ """Improve the import time of the typing module.
3829
+
3830
+ Soft-deprecated objects which are costly to create
3831
+ are only created on-demand here.
3832
+ """
3833
+ if attr == "ForwardRef":
3834
+ obj = _lazy_annotationlib.ForwardRef
3835
+ elif attr in {"Pattern", "Match"}:
3836
+ import re
3837
+ obj = _alias(getattr(re, attr), 1)
3838
+ elif attr in {"ContextManager", "AsyncContextManager"}:
3839
+ import contextlib
3840
+ obj = _alias(getattr(contextlib, f"Abstract{attr}"), 2, name=attr, defaults=(bool | None,))
3841
+ elif attr == "_collect_parameters":
3842
+ import warnings
3843
+
3844
+ depr_message = (
3845
+ "The private _collect_parameters function is deprecated and will be"
3846
+ " removed in a future version of Python. Any use of private functions"
3847
+ " is discouraged and may break in the future."
3848
+ )
3849
+ warnings.warn(depr_message, category=DeprecationWarning, stacklevel=2)
3850
+ obj = _collect_type_parameters
3851
+ else:
3852
+ raise AttributeError(f"module {__name__!r} has no attribute {attr!r}")
3853
+ globals()[attr] = obj
3854
+ return obj