@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,3197 @@
1
+ # mock.py
2
+ # Test tools for mocking and patching.
3
+ # Maintained by Michael Foord
4
+ # Backport for other versions of Python available from
5
+ # https://pypi.org/project/mock
6
+
7
+ __all__ = (
8
+ 'Mock',
9
+ 'MagicMock',
10
+ 'patch',
11
+ 'sentinel',
12
+ 'DEFAULT',
13
+ 'ANY',
14
+ 'call',
15
+ 'create_autospec',
16
+ 'AsyncMock',
17
+ 'ThreadingMock',
18
+ 'FILTER_DIR',
19
+ 'NonCallableMock',
20
+ 'NonCallableMagicMock',
21
+ 'mock_open',
22
+ 'PropertyMock',
23
+ 'seal',
24
+ )
25
+
26
+
27
+ import asyncio
28
+ import contextlib
29
+ import io
30
+ import inspect
31
+ import pprint
32
+ import sys
33
+ import builtins
34
+ import pkgutil
35
+ from inspect import iscoroutinefunction
36
+ import threading
37
+ from dataclasses import fields, is_dataclass
38
+ from types import CodeType, ModuleType, MethodType
39
+ from unittest.util import safe_repr
40
+ from functools import wraps, partial
41
+ from threading import RLock
42
+
43
+
44
+ class InvalidSpecError(Exception):
45
+ """Indicates that an invalid value was used as a mock spec."""
46
+
47
+
48
+ _builtins = {name for name in dir(builtins) if not name.startswith('_')}
49
+
50
+ FILTER_DIR = True
51
+
52
+ # Workaround for issue #12370
53
+ # Without this, the __class__ properties wouldn't be set correctly
54
+ _safe_super = super
55
+
56
+ def _is_async_obj(obj):
57
+ if _is_instance_mock(obj) and not isinstance(obj, AsyncMock):
58
+ return False
59
+ if hasattr(obj, '__func__'):
60
+ obj = getattr(obj, '__func__')
61
+ return iscoroutinefunction(obj) or inspect.isawaitable(obj)
62
+
63
+
64
+ def _is_async_func(func):
65
+ if getattr(func, '__code__', None):
66
+ return iscoroutinefunction(func)
67
+ else:
68
+ return False
69
+
70
+
71
+ def _is_instance_mock(obj):
72
+ # can't use isinstance on Mock objects because they override __class__
73
+ # The base class for all mocks is NonCallableMock
74
+ return issubclass(type(obj), NonCallableMock)
75
+
76
+
77
+ def _is_exception(obj):
78
+ return (
79
+ isinstance(obj, BaseException) or
80
+ isinstance(obj, type) and issubclass(obj, BaseException)
81
+ )
82
+
83
+
84
+ def _extract_mock(obj):
85
+ # Autospecced functions will return a FunctionType with "mock" attribute
86
+ # which is the actual mock object that needs to be used.
87
+ if isinstance(obj, FunctionTypes) and hasattr(obj, 'mock'):
88
+ return obj.mock
89
+ else:
90
+ return obj
91
+
92
+
93
+ def _get_signature_object(func, as_instance, eat_self):
94
+ """
95
+ Given an arbitrary, possibly callable object, try to create a suitable
96
+ signature object.
97
+ Return a (reduced func, signature) tuple, or None.
98
+ """
99
+ if isinstance(func, type) and not as_instance:
100
+ # If it's a type and should be modelled as a type, use __init__.
101
+ func = func.__init__
102
+ # Skip the `self` argument in __init__
103
+ eat_self = True
104
+ elif isinstance(func, (classmethod, staticmethod)):
105
+ if isinstance(func, classmethod):
106
+ # Skip the `cls` argument of a class method
107
+ eat_self = True
108
+ # Use the original decorated method to extract the correct function signature
109
+ func = func.__func__
110
+ elif not isinstance(func, FunctionTypes):
111
+ # If we really want to model an instance of the passed type,
112
+ # __call__ should be looked up, not __init__.
113
+ try:
114
+ func = func.__call__
115
+ except AttributeError:
116
+ return None
117
+ if eat_self:
118
+ sig_func = partial(func, None)
119
+ else:
120
+ sig_func = func
121
+ try:
122
+ return func, inspect.signature(sig_func)
123
+ except ValueError:
124
+ # Certain callable types are not supported by inspect.signature()
125
+ return None
126
+
127
+
128
+ def _check_signature(func, mock, skipfirst, instance=False):
129
+ sig = _get_signature_object(func, instance, skipfirst)
130
+ if sig is None:
131
+ return
132
+ func, sig = sig
133
+ def checksig(self, /, *args, **kwargs):
134
+ sig.bind(*args, **kwargs)
135
+ _copy_func_details(func, checksig)
136
+ type(mock)._mock_check_sig = checksig
137
+ type(mock).__signature__ = sig
138
+
139
+
140
+ def _copy_func_details(func, funcopy):
141
+ # we explicitly don't copy func.__dict__ into this copy as it would
142
+ # expose original attributes that should be mocked
143
+ for attribute in (
144
+ '__name__', '__doc__', '__text_signature__',
145
+ '__module__', '__defaults__', '__kwdefaults__',
146
+ ):
147
+ try:
148
+ setattr(funcopy, attribute, getattr(func, attribute))
149
+ except AttributeError:
150
+ pass
151
+
152
+
153
+ def _callable(obj):
154
+ if isinstance(obj, type):
155
+ return True
156
+ if isinstance(obj, (staticmethod, classmethod, MethodType)):
157
+ return _callable(obj.__func__)
158
+ if getattr(obj, '__call__', None) is not None:
159
+ return True
160
+ return False
161
+
162
+
163
+ def _is_list(obj):
164
+ # checks for list or tuples
165
+ # XXXX badly named!
166
+ return type(obj) in (list, tuple)
167
+
168
+
169
+ def _instance_callable(obj):
170
+ """Given an object, return True if the object is callable.
171
+ For classes, return True if instances would be callable."""
172
+ if not isinstance(obj, type):
173
+ # already an instance
174
+ return getattr(obj, '__call__', None) is not None
175
+
176
+ # *could* be broken by a class overriding __mro__ or __dict__ via
177
+ # a metaclass
178
+ for base in (obj,) + obj.__mro__:
179
+ if base.__dict__.get('__call__') is not None:
180
+ return True
181
+ return False
182
+
183
+
184
+ def _set_signature(mock, original, instance=False):
185
+ # creates a function with signature (*args, **kwargs) that delegates to a
186
+ # mock. It still does signature checking by calling a lambda with the same
187
+ # signature as the original.
188
+
189
+ skipfirst = isinstance(original, type)
190
+ result = _get_signature_object(original, instance, skipfirst)
191
+ if result is None:
192
+ return mock
193
+ func, sig = result
194
+ def checksig(*args, **kwargs):
195
+ sig.bind(*args, **kwargs)
196
+ _copy_func_details(func, checksig)
197
+
198
+ name = original.__name__
199
+ if not name.isidentifier():
200
+ name = 'funcopy'
201
+ context = {'_checksig_': checksig, 'mock': mock}
202
+ src = """def %s(*args, **kwargs):
203
+ _checksig_(*args, **kwargs)
204
+ return mock(*args, **kwargs)""" % name
205
+ exec (src, context)
206
+ funcopy = context[name]
207
+ _setup_func(funcopy, mock, sig)
208
+ return funcopy
209
+
210
+ def _set_async_signature(mock, original, instance=False, is_async_mock=False):
211
+ # creates an async function with signature (*args, **kwargs) that delegates to a
212
+ # mock. It still does signature checking by calling a lambda with the same
213
+ # signature as the original.
214
+
215
+ skipfirst = isinstance(original, type)
216
+ func, sig = _get_signature_object(original, instance, skipfirst)
217
+ def checksig(*args, **kwargs):
218
+ sig.bind(*args, **kwargs)
219
+ _copy_func_details(func, checksig)
220
+
221
+ name = original.__name__
222
+ context = {'_checksig_': checksig, 'mock': mock}
223
+ src = """async def %s(*args, **kwargs):
224
+ _checksig_(*args, **kwargs)
225
+ return await mock(*args, **kwargs)""" % name
226
+ exec (src, context)
227
+ funcopy = context[name]
228
+ _setup_func(funcopy, mock, sig)
229
+ _setup_async_mock(funcopy)
230
+ return funcopy
231
+
232
+
233
+ def _setup_func(funcopy, mock, sig):
234
+ funcopy.mock = mock
235
+
236
+ def assert_called_with(*args, **kwargs):
237
+ return mock.assert_called_with(*args, **kwargs)
238
+ def assert_called(*args, **kwargs):
239
+ return mock.assert_called(*args, **kwargs)
240
+ def assert_not_called(*args, **kwargs):
241
+ return mock.assert_not_called(*args, **kwargs)
242
+ def assert_called_once(*args, **kwargs):
243
+ return mock.assert_called_once(*args, **kwargs)
244
+ def assert_called_once_with(*args, **kwargs):
245
+ return mock.assert_called_once_with(*args, **kwargs)
246
+ def assert_has_calls(*args, **kwargs):
247
+ return mock.assert_has_calls(*args, **kwargs)
248
+ def assert_any_call(*args, **kwargs):
249
+ return mock.assert_any_call(*args, **kwargs)
250
+ def reset_mock():
251
+ funcopy.method_calls = _CallList()
252
+ funcopy.mock_calls = _CallList()
253
+ mock.reset_mock()
254
+ ret = funcopy.return_value
255
+ if _is_instance_mock(ret) and not ret is mock:
256
+ ret.reset_mock()
257
+
258
+ funcopy.called = False
259
+ funcopy.call_count = 0
260
+ funcopy.call_args = None
261
+ funcopy.call_args_list = _CallList()
262
+ funcopy.method_calls = _CallList()
263
+ funcopy.mock_calls = _CallList()
264
+
265
+ funcopy.return_value = mock.return_value
266
+ funcopy.side_effect = mock.side_effect
267
+ funcopy._mock_children = mock._mock_children
268
+
269
+ funcopy.assert_called_with = assert_called_with
270
+ funcopy.assert_called_once_with = assert_called_once_with
271
+ funcopy.assert_has_calls = assert_has_calls
272
+ funcopy.assert_any_call = assert_any_call
273
+ funcopy.reset_mock = reset_mock
274
+ funcopy.assert_called = assert_called
275
+ funcopy.assert_not_called = assert_not_called
276
+ funcopy.assert_called_once = assert_called_once
277
+ funcopy.__signature__ = sig
278
+
279
+ mock._mock_delegate = funcopy
280
+
281
+
282
+ def _setup_async_mock(mock):
283
+ mock._is_coroutine = asyncio.coroutines._is_coroutine
284
+ mock.await_count = 0
285
+ mock.await_args = None
286
+ mock.await_args_list = _CallList()
287
+
288
+ # Mock is not configured yet so the attributes are set
289
+ # to a function and then the corresponding mock helper function
290
+ # is called when the helper is accessed similar to _setup_func.
291
+ def wrapper(attr, /, *args, **kwargs):
292
+ return getattr(mock.mock, attr)(*args, **kwargs)
293
+
294
+ for attribute in ('assert_awaited',
295
+ 'assert_awaited_once',
296
+ 'assert_awaited_with',
297
+ 'assert_awaited_once_with',
298
+ 'assert_any_await',
299
+ 'assert_has_awaits',
300
+ 'assert_not_awaited'):
301
+
302
+ # setattr(mock, attribute, wrapper) causes late binding
303
+ # hence attribute will always be the last value in the loop
304
+ # Use partial(wrapper, attribute) to ensure the attribute is bound
305
+ # correctly.
306
+ setattr(mock, attribute, partial(wrapper, attribute))
307
+
308
+
309
+ def _is_magic(name):
310
+ return '__%s__' % name[2:-2] == name
311
+
312
+
313
+ class _SentinelObject(object):
314
+ "A unique, named, sentinel object."
315
+ def __init__(self, name):
316
+ self.name = name
317
+
318
+ def __repr__(self):
319
+ return 'sentinel.%s' % self.name
320
+
321
+ def __reduce__(self):
322
+ return 'sentinel.%s' % self.name
323
+
324
+
325
+ class _Sentinel(object):
326
+ """Access attributes to return a named object, usable as a sentinel."""
327
+ def __init__(self):
328
+ self._sentinels = {}
329
+
330
+ def __getattr__(self, name):
331
+ if name == '__bases__':
332
+ # Without this help(unittest.mock) raises an exception
333
+ raise AttributeError
334
+ return self._sentinels.setdefault(name, _SentinelObject(name))
335
+
336
+ def __reduce__(self):
337
+ return 'sentinel'
338
+
339
+
340
+ sentinel = _Sentinel()
341
+
342
+ DEFAULT = sentinel.DEFAULT
343
+ _missing = sentinel.MISSING
344
+ _deleted = sentinel.DELETED
345
+
346
+
347
+ _allowed_names = {
348
+ 'return_value', '_mock_return_value', 'side_effect',
349
+ '_mock_side_effect', '_mock_parent', '_mock_new_parent',
350
+ '_mock_name', '_mock_new_name'
351
+ }
352
+
353
+
354
+ def _delegating_property(name):
355
+ _allowed_names.add(name)
356
+ _the_name = '_mock_' + name
357
+ def _get(self, name=name, _the_name=_the_name):
358
+ sig = self._mock_delegate
359
+ if sig is None:
360
+ return getattr(self, _the_name)
361
+ return getattr(sig, name)
362
+ def _set(self, value, name=name, _the_name=_the_name):
363
+ sig = self._mock_delegate
364
+ if sig is None:
365
+ self.__dict__[_the_name] = value
366
+ else:
367
+ setattr(sig, name, value)
368
+
369
+ return property(_get, _set)
370
+
371
+
372
+
373
+ class _CallList(list):
374
+
375
+ def __contains__(self, value):
376
+ if not isinstance(value, list):
377
+ return list.__contains__(self, value)
378
+ len_value = len(value)
379
+ len_self = len(self)
380
+ if len_value > len_self:
381
+ return False
382
+
383
+ for i in range(0, len_self - len_value + 1):
384
+ sub_list = self[i:i+len_value]
385
+ if sub_list == value:
386
+ return True
387
+ return False
388
+
389
+ def __repr__(self):
390
+ return pprint.pformat(list(self))
391
+
392
+
393
+ def _check_and_set_parent(parent, value, name, new_name):
394
+ value = _extract_mock(value)
395
+
396
+ if not _is_instance_mock(value):
397
+ return False
398
+ if ((value._mock_name or value._mock_new_name) or
399
+ (value._mock_parent is not None) or
400
+ (value._mock_new_parent is not None)):
401
+ return False
402
+
403
+ _parent = parent
404
+ while _parent is not None:
405
+ # setting a mock (value) as a child or return value of itself
406
+ # should not modify the mock
407
+ if _parent is value:
408
+ return False
409
+ _parent = _parent._mock_new_parent
410
+
411
+ if new_name:
412
+ value._mock_new_parent = parent
413
+ value._mock_new_name = new_name
414
+ if name:
415
+ value._mock_parent = parent
416
+ value._mock_name = name
417
+ return True
418
+
419
+ # Internal class to identify if we wrapped an iterator object or not.
420
+ class _MockIter(object):
421
+ def __init__(self, obj):
422
+ self.obj = iter(obj)
423
+ def __next__(self):
424
+ return next(self.obj)
425
+
426
+ class Base(object):
427
+ _mock_return_value = DEFAULT
428
+ _mock_side_effect = None
429
+ def __init__(self, /, *args, **kwargs):
430
+ pass
431
+
432
+
433
+
434
+ class NonCallableMock(Base):
435
+ """A non-callable version of `Mock`"""
436
+
437
+ # Store a mutex as a class attribute in order to protect concurrent access
438
+ # to mock attributes. Using a class attribute allows all NonCallableMock
439
+ # instances to share the mutex for simplicity.
440
+ #
441
+ # See https://github.com/python/cpython/issues/98624 for why this is
442
+ # necessary.
443
+ _lock = RLock()
444
+
445
+ def __new__(
446
+ cls, spec=None, wraps=None, name=None, spec_set=None,
447
+ parent=None, _spec_state=None, _new_name='', _new_parent=None,
448
+ _spec_as_instance=False, _eat_self=None, unsafe=False, **kwargs
449
+ ):
450
+ # every instance has its own class
451
+ # so we can create magic methods on the
452
+ # class without stomping on other mocks
453
+ bases = (cls,)
454
+ if not issubclass(cls, AsyncMockMixin):
455
+ # Check if spec is an async object or function
456
+ spec_arg = spec_set or spec
457
+ if spec_arg is not None and _is_async_obj(spec_arg):
458
+ bases = (AsyncMockMixin, cls)
459
+ new = type(cls.__name__, bases, {'__doc__': cls.__doc__})
460
+ instance = _safe_super(NonCallableMock, cls).__new__(new)
461
+ return instance
462
+
463
+
464
+ def __init__(
465
+ self, spec=None, wraps=None, name=None, spec_set=None,
466
+ parent=None, _spec_state=None, _new_name='', _new_parent=None,
467
+ _spec_as_instance=False, _eat_self=None, unsafe=False, **kwargs
468
+ ):
469
+ if _new_parent is None:
470
+ _new_parent = parent
471
+
472
+ __dict__ = self.__dict__
473
+ __dict__['_mock_parent'] = parent
474
+ __dict__['_mock_name'] = name
475
+ __dict__['_mock_new_name'] = _new_name
476
+ __dict__['_mock_new_parent'] = _new_parent
477
+ __dict__['_mock_sealed'] = False
478
+
479
+ if spec_set is not None:
480
+ spec = spec_set
481
+ spec_set = True
482
+ if _eat_self is None:
483
+ _eat_self = parent is not None
484
+
485
+ self._mock_add_spec(spec, spec_set, _spec_as_instance, _eat_self)
486
+
487
+ __dict__['_mock_children'] = {}
488
+ __dict__['_mock_wraps'] = wraps
489
+ __dict__['_mock_delegate'] = None
490
+
491
+ __dict__['_mock_called'] = False
492
+ __dict__['_mock_call_args'] = None
493
+ __dict__['_mock_call_count'] = 0
494
+ __dict__['_mock_call_args_list'] = _CallList()
495
+ __dict__['_mock_mock_calls'] = _CallList()
496
+
497
+ __dict__['method_calls'] = _CallList()
498
+ __dict__['_mock_unsafe'] = unsafe
499
+
500
+ if kwargs:
501
+ self.configure_mock(**kwargs)
502
+
503
+ _safe_super(NonCallableMock, self).__init__(
504
+ spec, wraps, name, spec_set, parent,
505
+ _spec_state
506
+ )
507
+
508
+
509
+ def attach_mock(self, mock, attribute):
510
+ """
511
+ Attach a mock as an attribute of this one, replacing its name and
512
+ parent. Calls to the attached mock will be recorded in the
513
+ `method_calls` and `mock_calls` attributes of this one."""
514
+ inner_mock = _extract_mock(mock)
515
+
516
+ inner_mock._mock_parent = None
517
+ inner_mock._mock_new_parent = None
518
+ inner_mock._mock_name = ''
519
+ inner_mock._mock_new_name = None
520
+
521
+ setattr(self, attribute, mock)
522
+
523
+
524
+ def mock_add_spec(self, spec, spec_set=False):
525
+ """Add a spec to a mock. `spec` can either be an object or a
526
+ list of strings. Only attributes on the `spec` can be fetched as
527
+ attributes from the mock.
528
+
529
+ If `spec_set` is True then only attributes on the spec can be set."""
530
+ self._mock_add_spec(spec, spec_set)
531
+
532
+
533
+ def _mock_add_spec(self, spec, spec_set, _spec_as_instance=False,
534
+ _eat_self=False):
535
+ if _is_instance_mock(spec):
536
+ raise InvalidSpecError(f'Cannot spec a Mock object. [object={spec!r}]')
537
+
538
+ _spec_class = None
539
+ _spec_signature = None
540
+ _spec_asyncs = []
541
+
542
+ if spec is not None and not _is_list(spec):
543
+ if isinstance(spec, type):
544
+ _spec_class = spec
545
+ else:
546
+ _spec_class = type(spec)
547
+ res = _get_signature_object(spec,
548
+ _spec_as_instance, _eat_self)
549
+ _spec_signature = res and res[1]
550
+
551
+ spec_list = dir(spec)
552
+
553
+ for attr in spec_list:
554
+ static_attr = inspect.getattr_static(spec, attr, None)
555
+ unwrapped_attr = static_attr
556
+ try:
557
+ unwrapped_attr = inspect.unwrap(unwrapped_attr)
558
+ except ValueError:
559
+ pass
560
+ if iscoroutinefunction(unwrapped_attr):
561
+ _spec_asyncs.append(attr)
562
+
563
+ spec = spec_list
564
+
565
+ __dict__ = self.__dict__
566
+ __dict__['_spec_class'] = _spec_class
567
+ __dict__['_spec_set'] = spec_set
568
+ __dict__['_spec_signature'] = _spec_signature
569
+ __dict__['_mock_methods'] = spec
570
+ __dict__['_spec_asyncs'] = _spec_asyncs
571
+
572
+ def _mock_extend_spec_methods(self, spec_methods):
573
+ methods = self.__dict__.get('_mock_methods') or []
574
+ methods.extend(spec_methods)
575
+ self.__dict__['_mock_methods'] = methods
576
+
577
+ def __get_return_value(self):
578
+ ret = self._mock_return_value
579
+ if self._mock_delegate is not None:
580
+ ret = self._mock_delegate.return_value
581
+
582
+ if ret is DEFAULT and self._mock_wraps is None:
583
+ ret = self._get_child_mock(
584
+ _new_parent=self, _new_name='()'
585
+ )
586
+ self.return_value = ret
587
+ return ret
588
+
589
+
590
+ def __set_return_value(self, value):
591
+ if self._mock_delegate is not None:
592
+ self._mock_delegate.return_value = value
593
+ else:
594
+ self._mock_return_value = value
595
+ _check_and_set_parent(self, value, None, '()')
596
+
597
+ __return_value_doc = "The value to be returned when the mock is called."
598
+ return_value = property(__get_return_value, __set_return_value,
599
+ __return_value_doc)
600
+
601
+
602
+ @property
603
+ def __class__(self):
604
+ if self._spec_class is None:
605
+ return type(self)
606
+ return self._spec_class
607
+
608
+ called = _delegating_property('called')
609
+ call_count = _delegating_property('call_count')
610
+ call_args = _delegating_property('call_args')
611
+ call_args_list = _delegating_property('call_args_list')
612
+ mock_calls = _delegating_property('mock_calls')
613
+
614
+
615
+ def __get_side_effect(self):
616
+ delegated = self._mock_delegate
617
+ if delegated is None:
618
+ return self._mock_side_effect
619
+ sf = delegated.side_effect
620
+ if (sf is not None and not callable(sf)
621
+ and not isinstance(sf, _MockIter) and not _is_exception(sf)):
622
+ sf = _MockIter(sf)
623
+ delegated.side_effect = sf
624
+ return sf
625
+
626
+ def __set_side_effect(self, value):
627
+ value = _try_iter(value)
628
+ delegated = self._mock_delegate
629
+ if delegated is None:
630
+ self._mock_side_effect = value
631
+ else:
632
+ delegated.side_effect = value
633
+
634
+ side_effect = property(__get_side_effect, __set_side_effect)
635
+
636
+
637
+ def reset_mock(self, visited=None, *,
638
+ return_value: bool = False,
639
+ side_effect: bool = False):
640
+ "Restore the mock object to its initial state."
641
+ if visited is None:
642
+ visited = []
643
+ if id(self) in visited:
644
+ return
645
+ visited.append(id(self))
646
+
647
+ self.called = False
648
+ self.call_args = None
649
+ self.call_count = 0
650
+ self.mock_calls = _CallList()
651
+ self.call_args_list = _CallList()
652
+ self.method_calls = _CallList()
653
+
654
+ if return_value:
655
+ self._mock_return_value = DEFAULT
656
+ if side_effect:
657
+ self._mock_side_effect = None
658
+
659
+ for child in self._mock_children.values():
660
+ if isinstance(child, _SpecState) or child is _deleted:
661
+ continue
662
+ child.reset_mock(visited, return_value=return_value, side_effect=side_effect)
663
+
664
+ ret = self._mock_return_value
665
+ if _is_instance_mock(ret) and ret is not self:
666
+ ret.reset_mock(visited)
667
+
668
+
669
+ def configure_mock(self, /, **kwargs):
670
+ """Set attributes on the mock through keyword arguments.
671
+
672
+ Attributes plus return values and side effects can be set on child
673
+ mocks using standard dot notation and unpacking a dictionary in the
674
+ method call:
675
+
676
+ >>> attrs = {'method.return_value': 3, 'other.side_effect': KeyError}
677
+ >>> mock.configure_mock(**attrs)"""
678
+ for arg, val in sorted(kwargs.items(),
679
+ # we sort on the number of dots so that
680
+ # attributes are set before we set attributes on
681
+ # attributes
682
+ key=lambda entry: entry[0].count('.')):
683
+ args = arg.split('.')
684
+ final = args.pop()
685
+ obj = self
686
+ for entry in args:
687
+ obj = getattr(obj, entry)
688
+ setattr(obj, final, val)
689
+
690
+
691
+ def __getattr__(self, name):
692
+ if name in {'_mock_methods', '_mock_unsafe'}:
693
+ raise AttributeError(name)
694
+ elif self._mock_methods is not None:
695
+ if name not in self._mock_methods or name in _all_magics:
696
+ raise AttributeError("Mock object has no attribute %r" % name)
697
+ elif _is_magic(name):
698
+ raise AttributeError(name)
699
+ if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):
700
+ if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:
701
+ raise AttributeError(
702
+ f"{name!r} is not a valid assertion. Use a spec "
703
+ f"for the mock if {name!r} is meant to be an attribute.")
704
+
705
+ with NonCallableMock._lock:
706
+ result = self._mock_children.get(name)
707
+ if result is _deleted:
708
+ raise AttributeError(name)
709
+ elif result is None:
710
+ wraps = None
711
+ if self._mock_wraps is not None:
712
+ # XXXX should we get the attribute without triggering code
713
+ # execution?
714
+ wraps = getattr(self._mock_wraps, name)
715
+
716
+ result = self._get_child_mock(
717
+ parent=self, name=name, wraps=wraps, _new_name=name,
718
+ _new_parent=self
719
+ )
720
+ self._mock_children[name] = result
721
+
722
+ elif isinstance(result, _SpecState):
723
+ try:
724
+ result = create_autospec(
725
+ result.spec, result.spec_set, result.instance,
726
+ result.parent, result.name
727
+ )
728
+ except InvalidSpecError:
729
+ target_name = self.__dict__['_mock_name'] or self
730
+ raise InvalidSpecError(
731
+ f'Cannot autospec attr {name!r} from target '
732
+ f'{target_name!r} as it has already been mocked out. '
733
+ f'[target={self!r}, attr={result.spec!r}]')
734
+ self._mock_children[name] = result
735
+
736
+ return result
737
+
738
+
739
+ def _extract_mock_name(self):
740
+ _name_list = [self._mock_new_name]
741
+ _parent = self._mock_new_parent
742
+ last = self
743
+
744
+ dot = '.'
745
+ if _name_list == ['()']:
746
+ dot = ''
747
+
748
+ while _parent is not None:
749
+ last = _parent
750
+
751
+ _name_list.append(_parent._mock_new_name + dot)
752
+ dot = '.'
753
+ if _parent._mock_new_name == '()':
754
+ dot = ''
755
+
756
+ _parent = _parent._mock_new_parent
757
+
758
+ _name_list = list(reversed(_name_list))
759
+ _first = last._mock_name or 'mock'
760
+ if len(_name_list) > 1:
761
+ if _name_list[1] not in ('()', '().'):
762
+ _first += '.'
763
+ _name_list[0] = _first
764
+ return ''.join(_name_list)
765
+
766
+ def __repr__(self):
767
+ name = self._extract_mock_name()
768
+
769
+ name_string = ''
770
+ if name not in ('mock', 'mock.'):
771
+ name_string = ' name=%r' % name
772
+
773
+ spec_string = ''
774
+ if self._spec_class is not None:
775
+ spec_string = ' spec=%r'
776
+ if self._spec_set:
777
+ spec_string = ' spec_set=%r'
778
+ spec_string = spec_string % self._spec_class.__name__
779
+ return "<%s%s%s id='%s'>" % (
780
+ type(self).__name__,
781
+ name_string,
782
+ spec_string,
783
+ id(self)
784
+ )
785
+
786
+
787
+ def __dir__(self):
788
+ """Filter the output of `dir(mock)` to only useful members."""
789
+ if not FILTER_DIR:
790
+ return object.__dir__(self)
791
+
792
+ extras = self._mock_methods or []
793
+ from_type = dir(type(self))
794
+ from_dict = list(self.__dict__)
795
+ from_child_mocks = [
796
+ m_name for m_name, m_value in self._mock_children.items()
797
+ if m_value is not _deleted]
798
+
799
+ from_type = [e for e in from_type if not e.startswith('_')]
800
+ from_dict = [e for e in from_dict if not e.startswith('_') or
801
+ _is_magic(e)]
802
+ return sorted(set(extras + from_type + from_dict + from_child_mocks))
803
+
804
+
805
+ def __setattr__(self, name, value):
806
+ if name in _allowed_names:
807
+ # property setters go through here
808
+ return object.__setattr__(self, name, value)
809
+ elif (self._spec_set and self._mock_methods is not None and
810
+ name not in self._mock_methods and
811
+ name not in self.__dict__):
812
+ raise AttributeError("Mock object has no attribute '%s'" % name)
813
+ elif name in _unsupported_magics:
814
+ msg = 'Attempting to set unsupported magic method %r.' % name
815
+ raise AttributeError(msg)
816
+ elif name in _all_magics:
817
+ if self._mock_methods is not None and name not in self._mock_methods:
818
+ raise AttributeError("Mock object has no attribute '%s'" % name)
819
+
820
+ if not _is_instance_mock(value):
821
+ setattr(type(self), name, _get_method(name, value))
822
+ original = value
823
+ value = lambda *args, **kw: original(self, *args, **kw)
824
+ else:
825
+ # only set _new_name and not name so that mock_calls is tracked
826
+ # but not method calls
827
+ _check_and_set_parent(self, value, None, name)
828
+ setattr(type(self), name, value)
829
+ self._mock_children[name] = value
830
+ elif name == '__class__':
831
+ self._spec_class = value
832
+ return
833
+ else:
834
+ if _check_and_set_parent(self, value, name, name):
835
+ self._mock_children[name] = value
836
+
837
+ if self._mock_sealed and not hasattr(self, name):
838
+ mock_name = f'{self._extract_mock_name()}.{name}'
839
+ raise AttributeError(f'Cannot set {mock_name}')
840
+
841
+ if isinstance(value, PropertyMock):
842
+ self.__dict__[name] = value
843
+ return
844
+ return object.__setattr__(self, name, value)
845
+
846
+
847
+ def __delattr__(self, name):
848
+ if name in _all_magics and name in type(self).__dict__:
849
+ delattr(type(self), name)
850
+ if name not in self.__dict__:
851
+ # for magic methods that are still MagicProxy objects and
852
+ # not set on the instance itself
853
+ return
854
+
855
+ obj = self._mock_children.get(name, _missing)
856
+ if name in self.__dict__:
857
+ _safe_super(NonCallableMock, self).__delattr__(name)
858
+ elif obj is _deleted:
859
+ raise AttributeError(name)
860
+ if obj is not _missing:
861
+ del self._mock_children[name]
862
+ self._mock_children[name] = _deleted
863
+
864
+
865
+ def _format_mock_call_signature(self, args, kwargs):
866
+ name = self._mock_name or 'mock'
867
+ return _format_call_signature(name, args, kwargs)
868
+
869
+
870
+ def _format_mock_failure_message(self, args, kwargs, action='call'):
871
+ message = 'expected %s not found.\nExpected: %s\n Actual: %s'
872
+ expected_string = self._format_mock_call_signature(args, kwargs)
873
+ call_args = self.call_args
874
+ actual_string = self._format_mock_call_signature(*call_args)
875
+ return message % (action, expected_string, actual_string)
876
+
877
+
878
+ def _get_call_signature_from_name(self, name):
879
+ """
880
+ * If call objects are asserted against a method/function like obj.meth1
881
+ then there could be no name for the call object to lookup. Hence just
882
+ return the spec_signature of the method/function being asserted against.
883
+ * If the name is not empty then remove () and split by '.' to get
884
+ list of names to iterate through the children until a potential
885
+ match is found. A child mock is created only during attribute access
886
+ so if we get a _SpecState then no attributes of the spec were accessed
887
+ and can be safely exited.
888
+ """
889
+ if not name:
890
+ return self._spec_signature
891
+
892
+ sig = None
893
+ names = name.replace('()', '').split('.')
894
+ children = self._mock_children
895
+
896
+ for name in names:
897
+ child = children.get(name)
898
+ if child is None or isinstance(child, _SpecState):
899
+ break
900
+ else:
901
+ # If an autospecced object is attached using attach_mock the
902
+ # child would be a function with mock object as attribute from
903
+ # which signature has to be derived.
904
+ child = _extract_mock(child)
905
+ children = child._mock_children
906
+ sig = child._spec_signature
907
+
908
+ return sig
909
+
910
+
911
+ def _call_matcher(self, _call):
912
+ """
913
+ Given a call (or simply an (args, kwargs) tuple), return a
914
+ comparison key suitable for matching with other calls.
915
+ This is a best effort method which relies on the spec's signature,
916
+ if available, or falls back on the arguments themselves.
917
+ """
918
+
919
+ if isinstance(_call, tuple) and len(_call) > 2:
920
+ sig = self._get_call_signature_from_name(_call[0])
921
+ else:
922
+ sig = self._spec_signature
923
+
924
+ if sig is not None:
925
+ if len(_call) == 2:
926
+ name = ''
927
+ args, kwargs = _call
928
+ else:
929
+ name, args, kwargs = _call
930
+ try:
931
+ bound_call = sig.bind(*args, **kwargs)
932
+ return call(name, bound_call.args, bound_call.kwargs)
933
+ except TypeError as e:
934
+ return e.with_traceback(None)
935
+ else:
936
+ return _call
937
+
938
+ def assert_not_called(self):
939
+ """assert that the mock was never called.
940
+ """
941
+ if self.call_count != 0:
942
+ msg = ("Expected '%s' to not have been called. Called %s times.%s"
943
+ % (self._mock_name or 'mock',
944
+ self.call_count,
945
+ self._calls_repr()))
946
+ raise AssertionError(msg)
947
+
948
+ def assert_called(self):
949
+ """assert that the mock was called at least once
950
+ """
951
+ if self.call_count == 0:
952
+ msg = ("Expected '%s' to have been called." %
953
+ (self._mock_name or 'mock'))
954
+ raise AssertionError(msg)
955
+
956
+ def assert_called_once(self):
957
+ """assert that the mock was called only once.
958
+ """
959
+ if not self.call_count == 1:
960
+ msg = ("Expected '%s' to have been called once. Called %s times.%s"
961
+ % (self._mock_name or 'mock',
962
+ self.call_count,
963
+ self._calls_repr()))
964
+ raise AssertionError(msg)
965
+
966
+ def assert_called_with(self, /, *args, **kwargs):
967
+ """assert that the last call was made with the specified arguments.
968
+
969
+ Raises an AssertionError if the args and keyword args passed in are
970
+ different to the last call to the mock."""
971
+ if self.call_args is None:
972
+ expected = self._format_mock_call_signature(args, kwargs)
973
+ actual = 'not called.'
974
+ error_message = ('expected call not found.\nExpected: %s\n Actual: %s'
975
+ % (expected, actual))
976
+ raise AssertionError(error_message)
977
+
978
+ def _error_message():
979
+ msg = self._format_mock_failure_message(args, kwargs)
980
+ return msg
981
+ expected = self._call_matcher(_Call((args, kwargs), two=True))
982
+ actual = self._call_matcher(self.call_args)
983
+ if actual != expected:
984
+ cause = expected if isinstance(expected, Exception) else None
985
+ raise AssertionError(_error_message()) from cause
986
+
987
+
988
+ def assert_called_once_with(self, /, *args, **kwargs):
989
+ """assert that the mock was called exactly once and that that call was
990
+ with the specified arguments."""
991
+ if not self.call_count == 1:
992
+ msg = ("Expected '%s' to be called once. Called %s times.%s"
993
+ % (self._mock_name or 'mock',
994
+ self.call_count,
995
+ self._calls_repr()))
996
+ raise AssertionError(msg)
997
+ return self.assert_called_with(*args, **kwargs)
998
+
999
+
1000
+ def assert_has_calls(self, calls, any_order=False):
1001
+ """assert the mock has been called with the specified calls.
1002
+ The `mock_calls` list is checked for the calls.
1003
+
1004
+ If `any_order` is False (the default) then the calls must be
1005
+ sequential. There can be extra calls before or after the
1006
+ specified calls.
1007
+
1008
+ If `any_order` is True then the calls can be in any order, but
1009
+ they must all appear in `mock_calls`."""
1010
+ expected = [self._call_matcher(c) for c in calls]
1011
+ cause = next((e for e in expected if isinstance(e, Exception)), None)
1012
+ all_calls = _CallList(self._call_matcher(c) for c in self.mock_calls)
1013
+ if not any_order:
1014
+ if expected not in all_calls:
1015
+ if cause is None:
1016
+ problem = 'Calls not found.'
1017
+ else:
1018
+ problem = ('Error processing expected calls.\n'
1019
+ 'Errors: {}').format(
1020
+ [e if isinstance(e, Exception) else None
1021
+ for e in expected])
1022
+ raise AssertionError(
1023
+ f'{problem}\n'
1024
+ f'Expected: {_CallList(calls)}\n'
1025
+ f' Actual: {safe_repr(self.mock_calls)}'
1026
+ ) from cause
1027
+ return
1028
+
1029
+ all_calls = list(all_calls)
1030
+
1031
+ not_found = []
1032
+ for kall in expected:
1033
+ try:
1034
+ all_calls.remove(kall)
1035
+ except ValueError:
1036
+ not_found.append(kall)
1037
+ if not_found:
1038
+ raise AssertionError(
1039
+ '%r does not contain all of %r in its call list, '
1040
+ 'found %r instead' % (self._mock_name or 'mock',
1041
+ tuple(not_found), all_calls)
1042
+ ) from cause
1043
+
1044
+
1045
+ def assert_any_call(self, /, *args, **kwargs):
1046
+ """assert the mock has been called with the specified arguments.
1047
+
1048
+ The assert passes if the mock has *ever* been called, unlike
1049
+ `assert_called_with` and `assert_called_once_with` that only pass if
1050
+ the call is the most recent one."""
1051
+ expected = self._call_matcher(_Call((args, kwargs), two=True))
1052
+ cause = expected if isinstance(expected, Exception) else None
1053
+ actual = [self._call_matcher(c) for c in self.call_args_list]
1054
+ if cause or expected not in _AnyComparer(actual):
1055
+ expected_string = self._format_mock_call_signature(args, kwargs)
1056
+ raise AssertionError(
1057
+ '%s call not found' % expected_string
1058
+ ) from cause
1059
+
1060
+
1061
+ def _get_child_mock(self, /, **kw):
1062
+ """Create the child mocks for attributes and return value.
1063
+ By default child mocks will be the same type as the parent.
1064
+ Subclasses of Mock may want to override this to customize the way
1065
+ child mocks are made.
1066
+
1067
+ For non-callable mocks the callable variant will be used (rather than
1068
+ any custom subclass)."""
1069
+ if self._mock_sealed:
1070
+ attribute = f".{kw['name']}" if "name" in kw else "()"
1071
+ mock_name = self._extract_mock_name() + attribute
1072
+ raise AttributeError(mock_name)
1073
+
1074
+ _new_name = kw.get("_new_name")
1075
+ if _new_name in self.__dict__['_spec_asyncs']:
1076
+ return AsyncMock(**kw)
1077
+
1078
+ _type = type(self)
1079
+ if issubclass(_type, MagicMock) and _new_name in _async_method_magics:
1080
+ # Any asynchronous magic becomes an AsyncMock
1081
+ klass = AsyncMock
1082
+ elif issubclass(_type, AsyncMockMixin):
1083
+ if (_new_name in _all_sync_magics or
1084
+ self._mock_methods and _new_name in self._mock_methods):
1085
+ # Any synchronous method on AsyncMock becomes a MagicMock
1086
+ klass = MagicMock
1087
+ else:
1088
+ klass = AsyncMock
1089
+ elif not issubclass(_type, CallableMixin):
1090
+ if issubclass(_type, NonCallableMagicMock):
1091
+ klass = MagicMock
1092
+ elif issubclass(_type, NonCallableMock):
1093
+ klass = Mock
1094
+ else:
1095
+ klass = _type.__mro__[1]
1096
+ return klass(**kw)
1097
+
1098
+
1099
+ def _calls_repr(self):
1100
+ """Renders self.mock_calls as a string.
1101
+
1102
+ Example: "\nCalls: [call(1), call(2)]."
1103
+
1104
+ If self.mock_calls is empty, an empty string is returned. The
1105
+ output will be truncated if very long.
1106
+ """
1107
+ if not self.mock_calls:
1108
+ return ""
1109
+ return f"\nCalls: {safe_repr(self.mock_calls)}."
1110
+
1111
+
1112
+ # Denylist for forbidden attribute names in safe mode
1113
+ _ATTRIB_DENY_LIST = frozenset({
1114
+ name.removeprefix("assert_")
1115
+ for name in dir(NonCallableMock)
1116
+ if name.startswith("assert_")
1117
+ })
1118
+
1119
+
1120
+ class _AnyComparer(list):
1121
+ """A list which checks if it contains a call which may have an
1122
+ argument of ANY, flipping the components of item and self from
1123
+ their traditional locations so that ANY is guaranteed to be on
1124
+ the left."""
1125
+ def __contains__(self, item):
1126
+ for _call in self:
1127
+ assert len(item) == len(_call)
1128
+ if all([
1129
+ expected == actual
1130
+ for expected, actual in zip(item, _call)
1131
+ ]):
1132
+ return True
1133
+ return False
1134
+
1135
+
1136
+ def _try_iter(obj):
1137
+ if obj is None:
1138
+ return obj
1139
+ if _is_exception(obj):
1140
+ return obj
1141
+ if _callable(obj):
1142
+ return obj
1143
+ try:
1144
+ return iter(obj)
1145
+ except TypeError:
1146
+ # XXXX backwards compatibility
1147
+ # but this will blow up on first call - so maybe we should fail early?
1148
+ return obj
1149
+
1150
+
1151
+ class CallableMixin(Base):
1152
+
1153
+ def __init__(self, spec=None, side_effect=None, return_value=DEFAULT,
1154
+ wraps=None, name=None, spec_set=None, parent=None,
1155
+ _spec_state=None, _new_name='', _new_parent=None, **kwargs):
1156
+ self.__dict__['_mock_return_value'] = return_value
1157
+ _safe_super(CallableMixin, self).__init__(
1158
+ spec, wraps, name, spec_set, parent,
1159
+ _spec_state, _new_name, _new_parent, **kwargs
1160
+ )
1161
+
1162
+ self.side_effect = side_effect
1163
+
1164
+
1165
+ def _mock_check_sig(self, /, *args, **kwargs):
1166
+ # stub method that can be replaced with one with a specific signature
1167
+ pass
1168
+
1169
+
1170
+ def __call__(self, /, *args, **kwargs):
1171
+ # can't use self in-case a function / method we are mocking uses self
1172
+ # in the signature
1173
+ self._mock_check_sig(*args, **kwargs)
1174
+ self._increment_mock_call(*args, **kwargs)
1175
+ return self._mock_call(*args, **kwargs)
1176
+
1177
+
1178
+ def _mock_call(self, /, *args, **kwargs):
1179
+ return self._execute_mock_call(*args, **kwargs)
1180
+
1181
+ def _increment_mock_call(self, /, *args, **kwargs):
1182
+ self.called = True
1183
+ self.call_count += 1
1184
+
1185
+ # handle call_args
1186
+ # needs to be set here so assertions on call arguments pass before
1187
+ # execution in the case of awaited calls
1188
+ _call = _Call((args, kwargs), two=True)
1189
+ self.call_args = _call
1190
+ self.call_args_list.append(_call)
1191
+
1192
+ # initial stuff for method_calls:
1193
+ do_method_calls = self._mock_parent is not None
1194
+ method_call_name = self._mock_name
1195
+
1196
+ # initial stuff for mock_calls:
1197
+ mock_call_name = self._mock_new_name
1198
+ is_a_call = mock_call_name == '()'
1199
+ self.mock_calls.append(_Call(('', args, kwargs)))
1200
+
1201
+ # follow up the chain of mocks:
1202
+ _new_parent = self._mock_new_parent
1203
+ while _new_parent is not None:
1204
+
1205
+ # handle method_calls:
1206
+ if do_method_calls:
1207
+ _new_parent.method_calls.append(_Call((method_call_name, args, kwargs)))
1208
+ do_method_calls = _new_parent._mock_parent is not None
1209
+ if do_method_calls:
1210
+ method_call_name = _new_parent._mock_name + '.' + method_call_name
1211
+
1212
+ # handle mock_calls:
1213
+ this_mock_call = _Call((mock_call_name, args, kwargs))
1214
+ _new_parent.mock_calls.append(this_mock_call)
1215
+
1216
+ if _new_parent._mock_new_name:
1217
+ if is_a_call:
1218
+ dot = ''
1219
+ else:
1220
+ dot = '.'
1221
+ is_a_call = _new_parent._mock_new_name == '()'
1222
+ mock_call_name = _new_parent._mock_new_name + dot + mock_call_name
1223
+
1224
+ # follow the parental chain:
1225
+ _new_parent = _new_parent._mock_new_parent
1226
+
1227
+ def _execute_mock_call(self, /, *args, **kwargs):
1228
+ # separate from _increment_mock_call so that awaited functions are
1229
+ # executed separately from their call, also AsyncMock overrides this method
1230
+
1231
+ effect = self.side_effect
1232
+ if effect is not None:
1233
+ if _is_exception(effect):
1234
+ raise effect
1235
+ elif not _callable(effect):
1236
+ result = next(effect)
1237
+ if _is_exception(result):
1238
+ raise result
1239
+ else:
1240
+ result = effect(*args, **kwargs)
1241
+
1242
+ if result is not DEFAULT:
1243
+ return result
1244
+
1245
+ if self._mock_return_value is not DEFAULT:
1246
+ return self.return_value
1247
+
1248
+ if self._mock_delegate and self._mock_delegate.return_value is not DEFAULT:
1249
+ return self.return_value
1250
+
1251
+ if self._mock_wraps is not None:
1252
+ return self._mock_wraps(*args, **kwargs)
1253
+
1254
+ return self.return_value
1255
+
1256
+
1257
+
1258
+ class Mock(CallableMixin, NonCallableMock):
1259
+ """
1260
+ Create a new `Mock` object. `Mock` takes several optional arguments
1261
+ that specify the behaviour of the Mock object:
1262
+
1263
+ * `spec`: This can be either a list of strings or an existing object (a
1264
+ class or instance) that acts as the specification for the mock object. If
1265
+ you pass in an object then a list of strings is formed by calling dir on
1266
+ the object (excluding unsupported magic attributes and methods). Accessing
1267
+ any attribute not in this list will raise an `AttributeError`.
1268
+
1269
+ If `spec` is an object (rather than a list of strings) then
1270
+ `mock.__class__` returns the class of the spec object. This allows mocks
1271
+ to pass `isinstance` tests.
1272
+
1273
+ * `spec_set`: A stricter variant of `spec`. If used, attempting to *set*
1274
+ or get an attribute on the mock that isn't on the object passed as
1275
+ `spec_set` will raise an `AttributeError`.
1276
+
1277
+ * `side_effect`: A function to be called whenever the Mock is called. See
1278
+ the `side_effect` attribute. Useful for raising exceptions or
1279
+ dynamically changing return values. The function is called with the same
1280
+ arguments as the mock, and unless it returns `DEFAULT`, the return
1281
+ value of this function is used as the return value.
1282
+
1283
+ If `side_effect` is an iterable then each call to the mock will return
1284
+ the next value from the iterable. If any of the members of the iterable
1285
+ are exceptions they will be raised instead of returned.
1286
+
1287
+ * `return_value`: The value returned when the mock is called. By default
1288
+ this is a new Mock (created on first access). See the
1289
+ `return_value` attribute.
1290
+
1291
+ * `unsafe`: By default, accessing any attribute whose name starts with
1292
+ *assert*, *assret*, *asert*, *aseert*, or *assrt* raises an AttributeError.
1293
+ Additionally, an AttributeError is raised when accessing
1294
+ attributes that match the name of an assertion method without the prefix
1295
+ `assert_`, e.g. accessing `called_once` instead of `assert_called_once`.
1296
+ Passing `unsafe=True` will allow access to these attributes.
1297
+
1298
+ * `wraps`: Item for the mock object to wrap. If `wraps` is not None then
1299
+ calling the Mock will pass the call through to the wrapped object
1300
+ (returning the real result). Attribute access on the mock will return a
1301
+ Mock object that wraps the corresponding attribute of the wrapped object
1302
+ (so attempting to access an attribute that doesn't exist will raise an
1303
+ `AttributeError`).
1304
+
1305
+ If the mock has an explicit `return_value` set then calls are not passed
1306
+ to the wrapped object and the `return_value` is returned instead.
1307
+
1308
+ * `name`: If the mock has a name then it will be used in the repr of the
1309
+ mock. This can be useful for debugging. The name is propagated to child
1310
+ mocks.
1311
+
1312
+ Mocks can also be called with arbitrary keyword arguments. These will be
1313
+ used to set attributes on the mock after it is created.
1314
+ """
1315
+
1316
+
1317
+ # _check_spec_arg_typos takes kwargs from commands like patch and checks that
1318
+ # they don't contain common misspellings of arguments related to autospeccing.
1319
+ def _check_spec_arg_typos(kwargs_to_check):
1320
+ typos = ("autospect", "auto_spec", "set_spec")
1321
+ for typo in typos:
1322
+ if typo in kwargs_to_check:
1323
+ raise RuntimeError(
1324
+ f"{typo!r} might be a typo; use unsafe=True if this is intended"
1325
+ )
1326
+
1327
+
1328
+ class _patch(object):
1329
+
1330
+ attribute_name = None
1331
+ _active_patches = []
1332
+
1333
+ def __init__(
1334
+ self, getter, attribute, new, spec, create,
1335
+ spec_set, autospec, new_callable, kwargs, *, unsafe=False
1336
+ ):
1337
+ if new_callable is not None:
1338
+ if new is not DEFAULT:
1339
+ raise ValueError(
1340
+ "Cannot use 'new' and 'new_callable' together"
1341
+ )
1342
+ if autospec is not None:
1343
+ raise ValueError(
1344
+ "Cannot use 'autospec' and 'new_callable' together"
1345
+ )
1346
+ if not unsafe:
1347
+ _check_spec_arg_typos(kwargs)
1348
+ if _is_instance_mock(spec):
1349
+ raise InvalidSpecError(
1350
+ f'Cannot spec attr {attribute!r} as the spec '
1351
+ f'has already been mocked out. [spec={spec!r}]')
1352
+ if _is_instance_mock(spec_set):
1353
+ raise InvalidSpecError(
1354
+ f'Cannot spec attr {attribute!r} as the spec_set '
1355
+ f'target has already been mocked out. [spec_set={spec_set!r}]')
1356
+
1357
+ self.getter = getter
1358
+ self.attribute = attribute
1359
+ self.new = new
1360
+ self.new_callable = new_callable
1361
+ self.spec = spec
1362
+ self.create = create
1363
+ self.has_local = False
1364
+ self.spec_set = spec_set
1365
+ self.autospec = autospec
1366
+ self.kwargs = kwargs
1367
+ self.additional_patchers = []
1368
+ self.is_started = False
1369
+
1370
+
1371
+ def copy(self):
1372
+ patcher = _patch(
1373
+ self.getter, self.attribute, self.new, self.spec,
1374
+ self.create, self.spec_set,
1375
+ self.autospec, self.new_callable, self.kwargs
1376
+ )
1377
+ patcher.attribute_name = self.attribute_name
1378
+ patcher.additional_patchers = [
1379
+ p.copy() for p in self.additional_patchers
1380
+ ]
1381
+ return patcher
1382
+
1383
+
1384
+ def __call__(self, func):
1385
+ if isinstance(func, type):
1386
+ return self.decorate_class(func)
1387
+ if inspect.iscoroutinefunction(func):
1388
+ return self.decorate_async_callable(func)
1389
+ return self.decorate_callable(func)
1390
+
1391
+
1392
+ def decorate_class(self, klass):
1393
+ for attr in dir(klass):
1394
+ if not attr.startswith(patch.TEST_PREFIX):
1395
+ continue
1396
+
1397
+ attr_value = getattr(klass, attr)
1398
+ if not hasattr(attr_value, "__call__"):
1399
+ continue
1400
+
1401
+ patcher = self.copy()
1402
+ setattr(klass, attr, patcher(attr_value))
1403
+ return klass
1404
+
1405
+
1406
+ @contextlib.contextmanager
1407
+ def decoration_helper(self, patched, args, keywargs):
1408
+ extra_args = []
1409
+ with contextlib.ExitStack() as exit_stack:
1410
+ for patching in patched.patchings:
1411
+ arg = exit_stack.enter_context(patching)
1412
+ if patching.attribute_name is not None:
1413
+ keywargs.update(arg)
1414
+ elif patching.new is DEFAULT:
1415
+ extra_args.append(arg)
1416
+
1417
+ args += tuple(extra_args)
1418
+ yield (args, keywargs)
1419
+
1420
+
1421
+ def decorate_callable(self, func):
1422
+ # NB. Keep the method in sync with decorate_async_callable()
1423
+ if hasattr(func, 'patchings'):
1424
+ func.patchings.append(self)
1425
+ return func
1426
+
1427
+ @wraps(func)
1428
+ def patched(*args, **keywargs):
1429
+ with self.decoration_helper(patched,
1430
+ args,
1431
+ keywargs) as (newargs, newkeywargs):
1432
+ return func(*newargs, **newkeywargs)
1433
+
1434
+ patched.patchings = [self]
1435
+ return patched
1436
+
1437
+
1438
+ def decorate_async_callable(self, func):
1439
+ # NB. Keep the method in sync with decorate_callable()
1440
+ if hasattr(func, 'patchings'):
1441
+ func.patchings.append(self)
1442
+ return func
1443
+
1444
+ @wraps(func)
1445
+ async def patched(*args, **keywargs):
1446
+ with self.decoration_helper(patched,
1447
+ args,
1448
+ keywargs) as (newargs, newkeywargs):
1449
+ return await func(*newargs, **newkeywargs)
1450
+
1451
+ patched.patchings = [self]
1452
+ return patched
1453
+
1454
+
1455
+ def get_original(self):
1456
+ target = self.getter()
1457
+ name = self.attribute
1458
+
1459
+ original = DEFAULT
1460
+ local = False
1461
+
1462
+ try:
1463
+ original = target.__dict__[name]
1464
+ except (AttributeError, KeyError):
1465
+ original = getattr(target, name, DEFAULT)
1466
+ else:
1467
+ local = True
1468
+
1469
+ if name in _builtins and isinstance(target, ModuleType):
1470
+ self.create = True
1471
+
1472
+ if not self.create and original is DEFAULT:
1473
+ raise AttributeError(
1474
+ "%s does not have the attribute %r" % (target, name)
1475
+ )
1476
+ return original, local
1477
+
1478
+
1479
+ def __enter__(self):
1480
+ """Perform the patch."""
1481
+ if self.is_started:
1482
+ raise RuntimeError("Patch is already started")
1483
+
1484
+ new, spec, spec_set = self.new, self.spec, self.spec_set
1485
+ autospec, kwargs = self.autospec, self.kwargs
1486
+ new_callable = self.new_callable
1487
+ self.target = self.getter()
1488
+
1489
+ # normalise False to None
1490
+ if spec is False:
1491
+ spec = None
1492
+ if spec_set is False:
1493
+ spec_set = None
1494
+ if autospec is False:
1495
+ autospec = None
1496
+
1497
+ if spec is not None and autospec is not None:
1498
+ raise TypeError("Can't specify spec and autospec")
1499
+ if ((spec is not None or autospec is not None) and
1500
+ spec_set not in (True, None)):
1501
+ raise TypeError("Can't provide explicit spec_set *and* spec or autospec")
1502
+
1503
+ original, local = self.get_original()
1504
+
1505
+ if new is DEFAULT and autospec is None:
1506
+ inherit = False
1507
+ if spec is True:
1508
+ # set spec to the object we are replacing
1509
+ spec = original
1510
+ if spec_set is True:
1511
+ spec_set = original
1512
+ spec = None
1513
+ elif spec is not None:
1514
+ if spec_set is True:
1515
+ spec_set = spec
1516
+ spec = None
1517
+ elif spec_set is True:
1518
+ spec_set = original
1519
+
1520
+ if spec is not None or spec_set is not None:
1521
+ if original is DEFAULT:
1522
+ raise TypeError("Can't use 'spec' with create=True")
1523
+ if isinstance(original, type):
1524
+ # If we're patching out a class and there is a spec
1525
+ inherit = True
1526
+
1527
+ # Determine the Klass to use
1528
+ if new_callable is not None:
1529
+ Klass = new_callable
1530
+ elif spec is None and _is_async_obj(original):
1531
+ Klass = AsyncMock
1532
+ elif spec is not None or spec_set is not None:
1533
+ this_spec = spec
1534
+ if spec_set is not None:
1535
+ this_spec = spec_set
1536
+ if _is_list(this_spec):
1537
+ not_callable = '__call__' not in this_spec
1538
+ else:
1539
+ not_callable = not callable(this_spec)
1540
+ if _is_async_obj(this_spec):
1541
+ Klass = AsyncMock
1542
+ elif not_callable:
1543
+ Klass = NonCallableMagicMock
1544
+ else:
1545
+ Klass = MagicMock
1546
+ else:
1547
+ Klass = MagicMock
1548
+
1549
+ _kwargs = {}
1550
+ if spec is not None:
1551
+ _kwargs['spec'] = spec
1552
+ if spec_set is not None:
1553
+ _kwargs['spec_set'] = spec_set
1554
+
1555
+ # add a name to mocks
1556
+ if (isinstance(Klass, type) and
1557
+ issubclass(Klass, NonCallableMock) and self.attribute):
1558
+ _kwargs['name'] = self.attribute
1559
+
1560
+ _kwargs.update(kwargs)
1561
+ new = Klass(**_kwargs)
1562
+
1563
+ if inherit and _is_instance_mock(new):
1564
+ # we can only tell if the instance should be callable if the
1565
+ # spec is not a list
1566
+ this_spec = spec
1567
+ if spec_set is not None:
1568
+ this_spec = spec_set
1569
+ if (not _is_list(this_spec) and not
1570
+ _instance_callable(this_spec)):
1571
+ Klass = NonCallableMagicMock
1572
+
1573
+ _kwargs.pop('name')
1574
+ new.return_value = Klass(_new_parent=new, _new_name='()',
1575
+ **_kwargs)
1576
+ elif autospec is not None:
1577
+ # spec is ignored, new *must* be default, spec_set is treated
1578
+ # as a boolean. Should we check spec is not None and that spec_set
1579
+ # is a bool?
1580
+ if new is not DEFAULT:
1581
+ raise TypeError(
1582
+ "autospec creates the mock for you. Can't specify "
1583
+ "autospec and new."
1584
+ )
1585
+ if original is DEFAULT:
1586
+ raise TypeError("Can't use 'autospec' with create=True")
1587
+ spec_set = bool(spec_set)
1588
+ if autospec is True:
1589
+ autospec = original
1590
+
1591
+ if _is_instance_mock(self.target):
1592
+ raise InvalidSpecError(
1593
+ f'Cannot autospec attr {self.attribute!r} as the patch '
1594
+ f'target has already been mocked out. '
1595
+ f'[target={self.target!r}, attr={autospec!r}]')
1596
+ if _is_instance_mock(autospec):
1597
+ target_name = getattr(self.target, '__name__', self.target)
1598
+ raise InvalidSpecError(
1599
+ f'Cannot autospec attr {self.attribute!r} from target '
1600
+ f'{target_name!r} as it has already been mocked out. '
1601
+ f'[target={self.target!r}, attr={autospec!r}]')
1602
+
1603
+ new = create_autospec(autospec, spec_set=spec_set,
1604
+ _name=self.attribute, **kwargs)
1605
+ elif kwargs:
1606
+ # can't set keyword args when we aren't creating the mock
1607
+ # XXXX If new is a Mock we could call new.configure_mock(**kwargs)
1608
+ raise TypeError("Can't pass kwargs to a mock we aren't creating")
1609
+
1610
+ new_attr = new
1611
+
1612
+ self.temp_original = original
1613
+ self.is_local = local
1614
+ self._exit_stack = contextlib.ExitStack()
1615
+ self.is_started = True
1616
+ try:
1617
+ setattr(self.target, self.attribute, new_attr)
1618
+ if self.attribute_name is not None:
1619
+ extra_args = {}
1620
+ if self.new is DEFAULT:
1621
+ extra_args[self.attribute_name] = new
1622
+ for patching in self.additional_patchers:
1623
+ arg = self._exit_stack.enter_context(patching)
1624
+ if patching.new is DEFAULT:
1625
+ extra_args.update(arg)
1626
+ return extra_args
1627
+
1628
+ return new
1629
+ except:
1630
+ if not self.__exit__(*sys.exc_info()):
1631
+ raise
1632
+
1633
+ def __exit__(self, *exc_info):
1634
+ """Undo the patch."""
1635
+ if not self.is_started:
1636
+ return
1637
+
1638
+ if self.is_local and self.temp_original is not DEFAULT:
1639
+ setattr(self.target, self.attribute, self.temp_original)
1640
+ else:
1641
+ delattr(self.target, self.attribute)
1642
+ if not self.create and (not hasattr(self.target, self.attribute) or
1643
+ self.attribute in ('__doc__', '__module__',
1644
+ '__defaults__', '__annotations__',
1645
+ '__kwdefaults__')):
1646
+ # needed for proxy objects like django settings
1647
+ setattr(self.target, self.attribute, self.temp_original)
1648
+
1649
+ del self.temp_original
1650
+ del self.is_local
1651
+ del self.target
1652
+ exit_stack = self._exit_stack
1653
+ del self._exit_stack
1654
+ self.is_started = False
1655
+ return exit_stack.__exit__(*exc_info)
1656
+
1657
+
1658
+ def start(self):
1659
+ """Activate a patch, returning any created mock."""
1660
+ result = self.__enter__()
1661
+ self._active_patches.append(self)
1662
+ return result
1663
+
1664
+
1665
+ def stop(self):
1666
+ """Stop an active patch."""
1667
+ try:
1668
+ self._active_patches.remove(self)
1669
+ except ValueError:
1670
+ # If the patch hasn't been started this will fail
1671
+ return None
1672
+
1673
+ return self.__exit__(None, None, None)
1674
+
1675
+
1676
+
1677
+ def _get_target(target):
1678
+ try:
1679
+ target, attribute = target.rsplit('.', 1)
1680
+ except (TypeError, ValueError, AttributeError):
1681
+ raise TypeError(
1682
+ f"Need a valid target to patch. You supplied: {target!r}")
1683
+ return partial(pkgutil.resolve_name, target), attribute
1684
+
1685
+
1686
+ def _patch_object(
1687
+ target, attribute, new=DEFAULT, spec=None,
1688
+ create=False, spec_set=None, autospec=None,
1689
+ new_callable=None, *, unsafe=False, **kwargs
1690
+ ):
1691
+ """
1692
+ patch the named member (`attribute`) on an object (`target`) with a mock
1693
+ object.
1694
+
1695
+ `patch.object` can be used as a decorator, class decorator or a context
1696
+ manager. Arguments `new`, `spec`, `create`, `spec_set`,
1697
+ `autospec` and `new_callable` have the same meaning as for `patch`. Like
1698
+ `patch`, `patch.object` takes arbitrary keyword arguments for configuring
1699
+ the mock object it creates.
1700
+
1701
+ When used as a class decorator `patch.object` honours `patch.TEST_PREFIX`
1702
+ for choosing which methods to wrap.
1703
+ """
1704
+ if type(target) is str:
1705
+ raise TypeError(
1706
+ f"{target!r} must be the actual object to be patched, not a str"
1707
+ )
1708
+ getter = lambda: target
1709
+ return _patch(
1710
+ getter, attribute, new, spec, create,
1711
+ spec_set, autospec, new_callable, kwargs, unsafe=unsafe
1712
+ )
1713
+
1714
+
1715
+ def _patch_multiple(target, spec=None, create=False, spec_set=None,
1716
+ autospec=None, new_callable=None, **kwargs):
1717
+ """Perform multiple patches in a single call. It takes the object to be
1718
+ patched (either as an object or a string to fetch the object by importing)
1719
+ and keyword arguments for the patches::
1720
+
1721
+ with patch.multiple(settings, FIRST_PATCH='one', SECOND_PATCH='two'):
1722
+ ...
1723
+
1724
+ Use `DEFAULT` as the value if you want `patch.multiple` to create
1725
+ mocks for you. In this case the created mocks are passed into a decorated
1726
+ function by keyword, and a dictionary is returned when `patch.multiple` is
1727
+ used as a context manager.
1728
+
1729
+ `patch.multiple` can be used as a decorator, class decorator or a context
1730
+ manager. The arguments `spec`, `spec_set`, `create`,
1731
+ `autospec` and `new_callable` have the same meaning as for `patch`. These
1732
+ arguments will be applied to *all* patches done by `patch.multiple`.
1733
+
1734
+ When used as a class decorator `patch.multiple` honours `patch.TEST_PREFIX`
1735
+ for choosing which methods to wrap.
1736
+ """
1737
+ if type(target) is str:
1738
+ getter = partial(pkgutil.resolve_name, target)
1739
+ else:
1740
+ getter = lambda: target
1741
+
1742
+ if not kwargs:
1743
+ raise ValueError(
1744
+ 'Must supply at least one keyword argument with patch.multiple'
1745
+ )
1746
+ # need to wrap in a list for python 3, where items is a view
1747
+ items = list(kwargs.items())
1748
+ attribute, new = items[0]
1749
+ patcher = _patch(
1750
+ getter, attribute, new, spec, create, spec_set,
1751
+ autospec, new_callable, {}
1752
+ )
1753
+ patcher.attribute_name = attribute
1754
+ for attribute, new in items[1:]:
1755
+ this_patcher = _patch(
1756
+ getter, attribute, new, spec, create, spec_set,
1757
+ autospec, new_callable, {}
1758
+ )
1759
+ this_patcher.attribute_name = attribute
1760
+ patcher.additional_patchers.append(this_patcher)
1761
+ return patcher
1762
+
1763
+
1764
+ def patch(
1765
+ target, new=DEFAULT, spec=None, create=False,
1766
+ spec_set=None, autospec=None, new_callable=None, *, unsafe=False, **kwargs
1767
+ ):
1768
+ """
1769
+ `patch` acts as a function decorator, class decorator or a context
1770
+ manager. Inside the body of the function or with statement, the `target`
1771
+ is patched with a `new` object. When the function/with statement exits
1772
+ the patch is undone.
1773
+
1774
+ If `new` is omitted, then the target is replaced with an
1775
+ `AsyncMock` if the patched object is an async function or a
1776
+ `MagicMock` otherwise. If `patch` is used as a decorator and `new` is
1777
+ omitted, the created mock is passed in as an extra argument to the
1778
+ decorated function. If `patch` is used as a context manager the created
1779
+ mock is returned by the context manager.
1780
+
1781
+ `target` should be a string in the form `'package.module.ClassName'`. The
1782
+ `target` is imported and the specified object replaced with the `new`
1783
+ object, so the `target` must be importable from the environment you are
1784
+ calling `patch` from. The target is imported when the decorated function
1785
+ is executed, not at decoration time.
1786
+
1787
+ The `spec` and `spec_set` keyword arguments are passed to the `MagicMock`
1788
+ if patch is creating one for you.
1789
+
1790
+ In addition you can pass `spec=True` or `spec_set=True`, which causes
1791
+ patch to pass in the object being mocked as the spec/spec_set object.
1792
+
1793
+ `new_callable` allows you to specify a different class, or callable object,
1794
+ that will be called to create the `new` object. By default `AsyncMock` is
1795
+ used for async functions and `MagicMock` for the rest.
1796
+
1797
+ A more powerful form of `spec` is `autospec`. If you set `autospec=True`
1798
+ then the mock will be created with a spec from the object being replaced.
1799
+ All attributes of the mock will also have the spec of the corresponding
1800
+ attribute of the object being replaced. Methods and functions being
1801
+ mocked will have their arguments checked and will raise a `TypeError` if
1802
+ they are called with the wrong signature. For mocks replacing a class,
1803
+ their return value (the 'instance') will have the same spec as the class.
1804
+
1805
+ Instead of `autospec=True` you can pass `autospec=some_object` to use an
1806
+ arbitrary object as the spec instead of the one being replaced.
1807
+
1808
+ By default `patch` will fail to replace attributes that don't exist. If
1809
+ you pass in `create=True`, and the attribute doesn't exist, patch will
1810
+ create the attribute for you when the patched function is called, and
1811
+ delete it again afterwards. This is useful for writing tests against
1812
+ attributes that your production code creates at runtime. It is off by
1813
+ default because it can be dangerous. With it switched on you can write
1814
+ passing tests against APIs that don't actually exist!
1815
+
1816
+ Patch can be used as a `TestCase` class decorator. It works by
1817
+ decorating each test method in the class. This reduces the boilerplate
1818
+ code when your test methods share a common patchings set. `patch` finds
1819
+ tests by looking for method names that start with `patch.TEST_PREFIX`.
1820
+ By default this is `test`, which matches the way `unittest` finds tests.
1821
+ You can specify an alternative prefix by setting `patch.TEST_PREFIX`.
1822
+
1823
+ Patch can be used as a context manager, with the with statement. Here the
1824
+ patching applies to the indented block after the with statement. If you
1825
+ use "as" then the patched object will be bound to the name after the
1826
+ "as"; very useful if `patch` is creating a mock object for you.
1827
+
1828
+ Patch will raise a `RuntimeError` if passed some common misspellings of
1829
+ the arguments autospec and spec_set. Pass the argument `unsafe` with the
1830
+ value True to disable that check.
1831
+
1832
+ `patch` takes arbitrary keyword arguments. These will be passed to
1833
+ `AsyncMock` if the patched object is asynchronous, to `MagicMock`
1834
+ otherwise or to `new_callable` if specified.
1835
+
1836
+ `patch.dict(...)`, `patch.multiple(...)` and `patch.object(...)` are
1837
+ available for alternate use-cases.
1838
+ """
1839
+ getter, attribute = _get_target(target)
1840
+ return _patch(
1841
+ getter, attribute, new, spec, create,
1842
+ spec_set, autospec, new_callable, kwargs, unsafe=unsafe
1843
+ )
1844
+
1845
+
1846
+ class _patch_dict(object):
1847
+ """
1848
+ Patch a dictionary, or dictionary like object, and restore the dictionary
1849
+ to its original state after the test, where the restored dictionary is
1850
+ a copy of the dictionary as it was before the test.
1851
+
1852
+ `in_dict` can be a dictionary or a mapping like container. If it is a
1853
+ mapping then it must at least support getting, setting and deleting items
1854
+ plus iterating over keys.
1855
+
1856
+ `in_dict` can also be a string specifying the name of the dictionary, which
1857
+ will then be fetched by importing it.
1858
+
1859
+ `values` can be a dictionary of values to set in the dictionary. `values`
1860
+ can also be an iterable of `(key, value)` pairs.
1861
+
1862
+ If `clear` is True then the dictionary will be cleared before the new
1863
+ values are set.
1864
+
1865
+ `patch.dict` can also be called with arbitrary keyword arguments to set
1866
+ values in the dictionary::
1867
+
1868
+ with patch.dict('sys.modules', mymodule=Mock(), other_module=Mock()):
1869
+ ...
1870
+
1871
+ `patch.dict` can be used as a context manager, decorator or class
1872
+ decorator. When used as a class decorator `patch.dict` honours
1873
+ `patch.TEST_PREFIX` for choosing which methods to wrap.
1874
+ """
1875
+
1876
+ def __init__(self, in_dict, values=(), clear=False, **kwargs):
1877
+ self.in_dict = in_dict
1878
+ # support any argument supported by dict(...) constructor
1879
+ self.values = dict(values)
1880
+ self.values.update(kwargs)
1881
+ self.clear = clear
1882
+ self._original = None
1883
+
1884
+
1885
+ def __call__(self, f):
1886
+ if isinstance(f, type):
1887
+ return self.decorate_class(f)
1888
+ if inspect.iscoroutinefunction(f):
1889
+ return self.decorate_async_callable(f)
1890
+ return self.decorate_callable(f)
1891
+
1892
+
1893
+ def decorate_callable(self, f):
1894
+ @wraps(f)
1895
+ def _inner(*args, **kw):
1896
+ self._patch_dict()
1897
+ try:
1898
+ return f(*args, **kw)
1899
+ finally:
1900
+ self._unpatch_dict()
1901
+
1902
+ return _inner
1903
+
1904
+
1905
+ def decorate_async_callable(self, f):
1906
+ @wraps(f)
1907
+ async def _inner(*args, **kw):
1908
+ self._patch_dict()
1909
+ try:
1910
+ return await f(*args, **kw)
1911
+ finally:
1912
+ self._unpatch_dict()
1913
+
1914
+ return _inner
1915
+
1916
+
1917
+ def decorate_class(self, klass):
1918
+ for attr in dir(klass):
1919
+ attr_value = getattr(klass, attr)
1920
+ if (attr.startswith(patch.TEST_PREFIX) and
1921
+ hasattr(attr_value, "__call__")):
1922
+ decorator = _patch_dict(self.in_dict, self.values, self.clear)
1923
+ decorated = decorator(attr_value)
1924
+ setattr(klass, attr, decorated)
1925
+ return klass
1926
+
1927
+
1928
+ def __enter__(self):
1929
+ """Patch the dict."""
1930
+ self._patch_dict()
1931
+ return self.in_dict
1932
+
1933
+
1934
+ def _patch_dict(self):
1935
+ values = self.values
1936
+ if isinstance(self.in_dict, str):
1937
+ self.in_dict = pkgutil.resolve_name(self.in_dict)
1938
+ in_dict = self.in_dict
1939
+ clear = self.clear
1940
+
1941
+ try:
1942
+ original = in_dict.copy()
1943
+ except AttributeError:
1944
+ # dict like object with no copy method
1945
+ # must support iteration over keys
1946
+ original = {}
1947
+ for key in in_dict:
1948
+ original[key] = in_dict[key]
1949
+ self._original = original
1950
+
1951
+ if clear:
1952
+ _clear_dict(in_dict)
1953
+
1954
+ try:
1955
+ in_dict.update(values)
1956
+ except AttributeError:
1957
+ # dict like object with no update method
1958
+ for key in values:
1959
+ in_dict[key] = values[key]
1960
+
1961
+
1962
+ def _unpatch_dict(self):
1963
+ in_dict = self.in_dict
1964
+ original = self._original
1965
+
1966
+ _clear_dict(in_dict)
1967
+
1968
+ try:
1969
+ in_dict.update(original)
1970
+ except AttributeError:
1971
+ for key in original:
1972
+ in_dict[key] = original[key]
1973
+
1974
+
1975
+ def __exit__(self, *args):
1976
+ """Unpatch the dict."""
1977
+ if self._original is not None:
1978
+ self._unpatch_dict()
1979
+ return False
1980
+
1981
+
1982
+ def start(self):
1983
+ """Activate a patch, returning any created mock."""
1984
+ result = self.__enter__()
1985
+ _patch._active_patches.append(self)
1986
+ return result
1987
+
1988
+
1989
+ def stop(self):
1990
+ """Stop an active patch."""
1991
+ try:
1992
+ _patch._active_patches.remove(self)
1993
+ except ValueError:
1994
+ # If the patch hasn't been started this will fail
1995
+ return None
1996
+
1997
+ return self.__exit__(None, None, None)
1998
+
1999
+
2000
+ def _clear_dict(in_dict):
2001
+ try:
2002
+ in_dict.clear()
2003
+ except AttributeError:
2004
+ keys = list(in_dict)
2005
+ for key in keys:
2006
+ del in_dict[key]
2007
+
2008
+
2009
+ def _patch_stopall():
2010
+ """Stop all active patches. LIFO to unroll nested patches."""
2011
+ for patch in reversed(_patch._active_patches):
2012
+ patch.stop()
2013
+
2014
+
2015
+ patch.object = _patch_object
2016
+ patch.dict = _patch_dict
2017
+ patch.multiple = _patch_multiple
2018
+ patch.stopall = _patch_stopall
2019
+ patch.TEST_PREFIX = 'test'
2020
+
2021
+ magic_methods = (
2022
+ "lt le gt ge eq ne "
2023
+ "getitem setitem delitem "
2024
+ "len contains iter "
2025
+ "hash str sizeof "
2026
+ "enter exit "
2027
+ # we added divmod and rdivmod here instead of numerics
2028
+ # because there is no idivmod
2029
+ "divmod rdivmod neg pos abs invert "
2030
+ "complex int float index "
2031
+ "round trunc floor ceil "
2032
+ "bool next "
2033
+ "fspath "
2034
+ "aiter "
2035
+ )
2036
+
2037
+ numerics = (
2038
+ "add sub mul matmul truediv floordiv mod lshift rshift and xor or pow"
2039
+ )
2040
+ inplace = ' '.join('i%s' % n for n in numerics.split())
2041
+ right = ' '.join('r%s' % n for n in numerics.split())
2042
+
2043
+ # not including __prepare__, __instancecheck__, __subclasscheck__
2044
+ # (as they are metaclass methods)
2045
+ # __del__ is not supported at all as it causes problems if it exists
2046
+
2047
+ _non_defaults = {
2048
+ '__get__', '__set__', '__delete__', '__reversed__', '__missing__',
2049
+ '__reduce__', '__reduce_ex__', '__getinitargs__', '__getnewargs__',
2050
+ '__getstate__', '__setstate__', '__getformat__',
2051
+ '__repr__', '__dir__', '__subclasses__', '__format__',
2052
+ '__getnewargs_ex__',
2053
+ }
2054
+
2055
+
2056
+ def _get_method(name, func):
2057
+ "Turns a callable object (like a mock) into a real function"
2058
+ def method(self, /, *args, **kw):
2059
+ return func(self, *args, **kw)
2060
+ method.__name__ = name
2061
+ return method
2062
+
2063
+
2064
+ _magics = {
2065
+ '__%s__' % method for method in
2066
+ ' '.join([magic_methods, numerics, inplace, right]).split()
2067
+ }
2068
+
2069
+ # Magic methods used for async `with` statements
2070
+ _async_method_magics = {"__aenter__", "__aexit__", "__anext__"}
2071
+ # Magic methods that are only used with async calls but are synchronous functions themselves
2072
+ _sync_async_magics = {"__aiter__"}
2073
+ _async_magics = _async_method_magics | _sync_async_magics
2074
+
2075
+ _all_sync_magics = _magics | _non_defaults
2076
+ _all_magics = _all_sync_magics | _async_magics
2077
+
2078
+ _unsupported_magics = {
2079
+ '__getattr__', '__setattr__',
2080
+ '__init__', '__new__', '__prepare__',
2081
+ '__instancecheck__', '__subclasscheck__',
2082
+ '__del__'
2083
+ }
2084
+
2085
+ _calculate_return_value = {
2086
+ '__hash__': lambda self: object.__hash__(self),
2087
+ '__str__': lambda self: object.__str__(self),
2088
+ '__sizeof__': lambda self: object.__sizeof__(self),
2089
+ '__fspath__': lambda self: f"{type(self).__name__}/{self._extract_mock_name()}/{id(self)}",
2090
+ }
2091
+
2092
+ _return_values = {
2093
+ '__lt__': NotImplemented,
2094
+ '__gt__': NotImplemented,
2095
+ '__le__': NotImplemented,
2096
+ '__ge__': NotImplemented,
2097
+ '__int__': 1,
2098
+ '__contains__': False,
2099
+ '__len__': 0,
2100
+ '__exit__': False,
2101
+ '__complex__': 1j,
2102
+ '__float__': 1.0,
2103
+ '__bool__': True,
2104
+ '__index__': 1,
2105
+ '__aexit__': False,
2106
+ }
2107
+
2108
+
2109
+ def _get_eq(self):
2110
+ def __eq__(other):
2111
+ ret_val = self.__eq__._mock_return_value
2112
+ if ret_val is not DEFAULT:
2113
+ return ret_val
2114
+ if self is other:
2115
+ return True
2116
+ return NotImplemented
2117
+ return __eq__
2118
+
2119
+ def _get_ne(self):
2120
+ def __ne__(other):
2121
+ if self.__ne__._mock_return_value is not DEFAULT:
2122
+ return DEFAULT
2123
+ if self is other:
2124
+ return False
2125
+ return NotImplemented
2126
+ return __ne__
2127
+
2128
+ def _get_iter(self):
2129
+ def __iter__():
2130
+ ret_val = self.__iter__._mock_return_value
2131
+ if ret_val is DEFAULT:
2132
+ return iter([])
2133
+ # if ret_val was already an iterator, then calling iter on it should
2134
+ # return the iterator unchanged
2135
+ return iter(ret_val)
2136
+ return __iter__
2137
+
2138
+ def _get_async_iter(self):
2139
+ def __aiter__():
2140
+ ret_val = self.__aiter__._mock_return_value
2141
+ if ret_val is DEFAULT:
2142
+ return _AsyncIterator(iter([]))
2143
+ return _AsyncIterator(iter(ret_val))
2144
+ return __aiter__
2145
+
2146
+ _side_effect_methods = {
2147
+ '__eq__': _get_eq,
2148
+ '__ne__': _get_ne,
2149
+ '__iter__': _get_iter,
2150
+ '__aiter__': _get_async_iter
2151
+ }
2152
+
2153
+
2154
+
2155
+ def _set_return_value(mock, method, name):
2156
+ fixed = _return_values.get(name, DEFAULT)
2157
+ if fixed is not DEFAULT:
2158
+ method.return_value = fixed
2159
+ return
2160
+
2161
+ return_calculator = _calculate_return_value.get(name)
2162
+ if return_calculator is not None:
2163
+ return_value = return_calculator(mock)
2164
+ method.return_value = return_value
2165
+ return
2166
+
2167
+ side_effector = _side_effect_methods.get(name)
2168
+ if side_effector is not None:
2169
+ method.side_effect = side_effector(mock)
2170
+
2171
+
2172
+
2173
+ class MagicMixin(Base):
2174
+ def __init__(self, /, *args, **kw):
2175
+ self._mock_set_magics() # make magic work for kwargs in init
2176
+ _safe_super(MagicMixin, self).__init__(*args, **kw)
2177
+ self._mock_set_magics() # fix magic broken by upper level init
2178
+
2179
+
2180
+ def _mock_set_magics(self):
2181
+ orig_magics = _magics | _async_method_magics
2182
+ these_magics = orig_magics
2183
+
2184
+ if getattr(self, "_mock_methods", None) is not None:
2185
+ these_magics = orig_magics.intersection(self._mock_methods)
2186
+ remove_magics = orig_magics - these_magics
2187
+
2188
+ for entry in remove_magics:
2189
+ if entry in type(self).__dict__:
2190
+ # remove unneeded magic methods
2191
+ delattr(self, entry)
2192
+
2193
+ # don't overwrite existing attributes if called a second time
2194
+ these_magics = these_magics - set(type(self).__dict__)
2195
+
2196
+ _type = type(self)
2197
+ for entry in these_magics:
2198
+ setattr(_type, entry, MagicProxy(entry, self))
2199
+
2200
+
2201
+
2202
+ class NonCallableMagicMock(MagicMixin, NonCallableMock):
2203
+ """A version of `MagicMock` that isn't callable."""
2204
+ def mock_add_spec(self, spec, spec_set=False):
2205
+ """Add a spec to a mock. `spec` can either be an object or a
2206
+ list of strings. Only attributes on the `spec` can be fetched as
2207
+ attributes from the mock.
2208
+
2209
+ If `spec_set` is True then only attributes on the spec can be set."""
2210
+ self._mock_add_spec(spec, spec_set)
2211
+ self._mock_set_magics()
2212
+
2213
+
2214
+ class AsyncMagicMixin(MagicMixin):
2215
+ pass
2216
+
2217
+
2218
+ class MagicMock(MagicMixin, Mock):
2219
+ """
2220
+ MagicMock is a subclass of Mock with default implementations
2221
+ of most of the magic methods. You can use MagicMock without having to
2222
+ configure the magic methods yourself.
2223
+
2224
+ If you use the `spec` or `spec_set` arguments then *only* magic
2225
+ methods that exist in the spec will be created.
2226
+
2227
+ Attributes and the return value of a `MagicMock` will also be `MagicMocks`.
2228
+ """
2229
+ def mock_add_spec(self, spec, spec_set=False):
2230
+ """Add a spec to a mock. `spec` can either be an object or a
2231
+ list of strings. Only attributes on the `spec` can be fetched as
2232
+ attributes from the mock.
2233
+
2234
+ If `spec_set` is True then only attributes on the spec can be set."""
2235
+ self._mock_add_spec(spec, spec_set)
2236
+ self._mock_set_magics()
2237
+
2238
+ def reset_mock(self, /, *args, return_value: bool = False, **kwargs):
2239
+ if (
2240
+ return_value
2241
+ and self._mock_name
2242
+ and _is_magic(self._mock_name)
2243
+ ):
2244
+ # Don't reset return values for magic methods,
2245
+ # otherwise `m.__str__` will start
2246
+ # to return `MagicMock` instances, instead of `str` instances.
2247
+ return_value = False
2248
+ super().reset_mock(*args, return_value=return_value, **kwargs)
2249
+
2250
+
2251
+ class MagicProxy(Base):
2252
+ def __init__(self, name, parent):
2253
+ self.name = name
2254
+ self.parent = parent
2255
+
2256
+ def create_mock(self):
2257
+ entry = self.name
2258
+ parent = self.parent
2259
+ m = parent._get_child_mock(name=entry, _new_name=entry,
2260
+ _new_parent=parent)
2261
+ setattr(parent, entry, m)
2262
+ _set_return_value(parent, m, entry)
2263
+ return m
2264
+
2265
+ def __get__(self, obj, _type=None):
2266
+ return self.create_mock()
2267
+
2268
+
2269
+ try:
2270
+ _CODE_SIG = inspect.signature(partial(CodeType.__init__, None))
2271
+ _CODE_ATTRS = dir(CodeType)
2272
+ except ValueError:
2273
+ _CODE_SIG = None
2274
+
2275
+
2276
+ class AsyncMockMixin(Base):
2277
+ await_count = _delegating_property('await_count')
2278
+ await_args = _delegating_property('await_args')
2279
+ await_args_list = _delegating_property('await_args_list')
2280
+
2281
+ def __init__(self, /, *args, **kwargs):
2282
+ super().__init__(*args, **kwargs)
2283
+ # iscoroutinefunction() checks _is_coroutine property to say if an
2284
+ # object is a coroutine. Without this check it looks to see if it is a
2285
+ # function/method, which in this case it is not (since it is an
2286
+ # AsyncMock).
2287
+ # It is set through __dict__ because when spec_set is True, this
2288
+ # attribute is likely undefined.
2289
+ self.__dict__['_is_coroutine'] = asyncio.coroutines._is_coroutine
2290
+ self.__dict__['_mock_await_count'] = 0
2291
+ self.__dict__['_mock_await_args'] = None
2292
+ self.__dict__['_mock_await_args_list'] = _CallList()
2293
+ if _CODE_SIG:
2294
+ code_mock = NonCallableMock(spec_set=_CODE_ATTRS)
2295
+ code_mock.__dict__["_spec_class"] = CodeType
2296
+ code_mock.__dict__["_spec_signature"] = _CODE_SIG
2297
+ else:
2298
+ code_mock = NonCallableMock(spec_set=CodeType)
2299
+ code_mock.co_flags = (
2300
+ inspect.CO_COROUTINE
2301
+ + inspect.CO_VARARGS
2302
+ + inspect.CO_VARKEYWORDS
2303
+ )
2304
+ code_mock.co_argcount = 0
2305
+ code_mock.co_varnames = ('args', 'kwargs')
2306
+ code_mock.co_posonlyargcount = 0
2307
+ code_mock.co_kwonlyargcount = 0
2308
+ self.__dict__['__code__'] = code_mock
2309
+ self.__dict__['__name__'] = 'AsyncMock'
2310
+ self.__dict__['__defaults__'] = tuple()
2311
+ self.__dict__['__kwdefaults__'] = {}
2312
+ self.__dict__['__annotations__'] = None
2313
+
2314
+ async def _execute_mock_call(self, /, *args, **kwargs):
2315
+ # This is nearly just like super(), except for special handling
2316
+ # of coroutines
2317
+
2318
+ _call = _Call((args, kwargs), two=True)
2319
+ self.await_count += 1
2320
+ self.await_args = _call
2321
+ self.await_args_list.append(_call)
2322
+
2323
+ effect = self.side_effect
2324
+ if effect is not None:
2325
+ if _is_exception(effect):
2326
+ raise effect
2327
+ elif not _callable(effect):
2328
+ try:
2329
+ result = next(effect)
2330
+ except StopIteration:
2331
+ # It is impossible to propagate a StopIteration
2332
+ # through coroutines because of PEP 479
2333
+ raise StopAsyncIteration
2334
+ if _is_exception(result):
2335
+ raise result
2336
+ elif iscoroutinefunction(effect):
2337
+ result = await effect(*args, **kwargs)
2338
+ else:
2339
+ result = effect(*args, **kwargs)
2340
+
2341
+ if result is not DEFAULT:
2342
+ return result
2343
+
2344
+ if self._mock_return_value is not DEFAULT:
2345
+ return self.return_value
2346
+
2347
+ if self._mock_wraps is not None:
2348
+ if iscoroutinefunction(self._mock_wraps):
2349
+ return await self._mock_wraps(*args, **kwargs)
2350
+ return self._mock_wraps(*args, **kwargs)
2351
+
2352
+ return self.return_value
2353
+
2354
+ def assert_awaited(self):
2355
+ """
2356
+ Assert that the mock was awaited at least once.
2357
+ """
2358
+ if self.await_count == 0:
2359
+ msg = f"Expected {self._mock_name or 'mock'} to have been awaited."
2360
+ raise AssertionError(msg)
2361
+
2362
+ def assert_awaited_once(self):
2363
+ """
2364
+ Assert that the mock was awaited exactly once.
2365
+ """
2366
+ if not self.await_count == 1:
2367
+ msg = (f"Expected {self._mock_name or 'mock'} to have been awaited once."
2368
+ f" Awaited {self.await_count} times.")
2369
+ raise AssertionError(msg)
2370
+
2371
+ def assert_awaited_with(self, /, *args, **kwargs):
2372
+ """
2373
+ Assert that the last await was with the specified arguments.
2374
+ """
2375
+ if self.await_args is None:
2376
+ expected = self._format_mock_call_signature(args, kwargs)
2377
+ raise AssertionError(f'Expected await: {expected}\nNot awaited')
2378
+
2379
+ def _error_message():
2380
+ msg = self._format_mock_failure_message(args, kwargs, action='await')
2381
+ return msg
2382
+
2383
+ expected = self._call_matcher(_Call((args, kwargs), two=True))
2384
+ actual = self._call_matcher(self.await_args)
2385
+ if actual != expected:
2386
+ cause = expected if isinstance(expected, Exception) else None
2387
+ raise AssertionError(_error_message()) from cause
2388
+
2389
+ def assert_awaited_once_with(self, /, *args, **kwargs):
2390
+ """
2391
+ Assert that the mock was awaited exactly once and with the specified
2392
+ arguments.
2393
+ """
2394
+ if not self.await_count == 1:
2395
+ msg = (f"Expected {self._mock_name or 'mock'} to have been awaited once."
2396
+ f" Awaited {self.await_count} times.")
2397
+ raise AssertionError(msg)
2398
+ return self.assert_awaited_with(*args, **kwargs)
2399
+
2400
+ def assert_any_await(self, /, *args, **kwargs):
2401
+ """
2402
+ Assert the mock has ever been awaited with the specified arguments.
2403
+ """
2404
+ expected = self._call_matcher(_Call((args, kwargs), two=True))
2405
+ cause = expected if isinstance(expected, Exception) else None
2406
+ actual = [self._call_matcher(c) for c in self.await_args_list]
2407
+ if cause or expected not in _AnyComparer(actual):
2408
+ expected_string = self._format_mock_call_signature(args, kwargs)
2409
+ raise AssertionError(
2410
+ '%s await not found' % expected_string
2411
+ ) from cause
2412
+
2413
+ def assert_has_awaits(self, calls, any_order=False):
2414
+ """
2415
+ Assert the mock has been awaited with the specified calls.
2416
+ The :attr:`await_args_list` list is checked for the awaits.
2417
+
2418
+ If `any_order` is False (the default) then the awaits must be
2419
+ sequential. There can be extra calls before or after the
2420
+ specified awaits.
2421
+
2422
+ If `any_order` is True then the awaits can be in any order, but
2423
+ they must all appear in :attr:`await_args_list`.
2424
+ """
2425
+ expected = [self._call_matcher(c) for c in calls]
2426
+ cause = next((e for e in expected if isinstance(e, Exception)), None)
2427
+ all_awaits = _CallList(self._call_matcher(c) for c in self.await_args_list)
2428
+ if not any_order:
2429
+ if expected not in all_awaits:
2430
+ if cause is None:
2431
+ problem = 'Awaits not found.'
2432
+ else:
2433
+ problem = ('Error processing expected awaits.\n'
2434
+ 'Errors: {}').format(
2435
+ [e if isinstance(e, Exception) else None
2436
+ for e in expected])
2437
+ raise AssertionError(
2438
+ f'{problem}\n'
2439
+ f'Expected: {_CallList(calls)}\n'
2440
+ f'Actual: {self.await_args_list}'
2441
+ ) from cause
2442
+ return
2443
+
2444
+ all_awaits = list(all_awaits)
2445
+
2446
+ not_found = []
2447
+ for kall in expected:
2448
+ try:
2449
+ all_awaits.remove(kall)
2450
+ except ValueError:
2451
+ not_found.append(kall)
2452
+ if not_found:
2453
+ raise AssertionError(
2454
+ '%r not all found in await list' % (tuple(not_found),)
2455
+ ) from cause
2456
+
2457
+ def assert_not_awaited(self):
2458
+ """
2459
+ Assert that the mock was never awaited.
2460
+ """
2461
+ if self.await_count != 0:
2462
+ msg = (f"Expected {self._mock_name or 'mock'} to not have been awaited."
2463
+ f" Awaited {self.await_count} times.")
2464
+ raise AssertionError(msg)
2465
+
2466
+ def reset_mock(self, /, *args, **kwargs):
2467
+ """
2468
+ See :func:`.Mock.reset_mock()`
2469
+ """
2470
+ super().reset_mock(*args, **kwargs)
2471
+ self.await_count = 0
2472
+ self.await_args = None
2473
+ self.await_args_list = _CallList()
2474
+
2475
+
2476
+ class AsyncMock(AsyncMockMixin, AsyncMagicMixin, Mock):
2477
+ """
2478
+ Enhance :class:`Mock` with features allowing to mock
2479
+ an async function.
2480
+
2481
+ The :class:`AsyncMock` object will behave so the object is
2482
+ recognized as an async function, and the result of a call is an awaitable:
2483
+
2484
+ >>> mock = AsyncMock()
2485
+ >>> inspect.iscoroutinefunction(mock)
2486
+ True
2487
+ >>> inspect.isawaitable(mock())
2488
+ True
2489
+
2490
+
2491
+ The result of ``mock()`` is an async function which will have the outcome
2492
+ of ``side_effect`` or ``return_value``:
2493
+
2494
+ - if ``side_effect`` is a function, the async function will return the
2495
+ result of that function,
2496
+ - if ``side_effect`` is an exception, the async function will raise the
2497
+ exception,
2498
+ - if ``side_effect`` is an iterable, the async function will return the
2499
+ next value of the iterable, however, if the sequence of result is
2500
+ exhausted, ``StopIteration`` is raised immediately,
2501
+ - if ``side_effect`` is not defined, the async function will return the
2502
+ value defined by ``return_value``, hence, by default, the async function
2503
+ returns a new :class:`AsyncMock` object.
2504
+
2505
+ If the outcome of ``side_effect`` or ``return_value`` is an async function,
2506
+ the mock async function obtained when the mock object is called will be this
2507
+ async function itself (and not an async function returning an async
2508
+ function).
2509
+
2510
+ The test author can also specify a wrapped object with ``wraps``. In this
2511
+ case, the :class:`Mock` object behavior is the same as with an
2512
+ :class:`.Mock` object: the wrapped object may have methods
2513
+ defined as async function functions.
2514
+
2515
+ Based on Martin Richard's asynctest project.
2516
+ """
2517
+
2518
+
2519
+ class _ANY(object):
2520
+ "A helper object that compares equal to everything."
2521
+
2522
+ def __eq__(self, other):
2523
+ return True
2524
+
2525
+ def __ne__(self, other):
2526
+ return False
2527
+
2528
+ def __repr__(self):
2529
+ return '<ANY>'
2530
+
2531
+ ANY = _ANY()
2532
+
2533
+
2534
+
2535
+ def _format_call_signature(name, args, kwargs):
2536
+ message = '%s(%%s)' % name
2537
+ formatted_args = ''
2538
+ args_string = ', '.join([repr(arg) for arg in args])
2539
+ kwargs_string = ', '.join([
2540
+ '%s=%r' % (key, value) for key, value in kwargs.items()
2541
+ ])
2542
+ if args_string:
2543
+ formatted_args = args_string
2544
+ if kwargs_string:
2545
+ if formatted_args:
2546
+ formatted_args += ', '
2547
+ formatted_args += kwargs_string
2548
+
2549
+ return message % formatted_args
2550
+
2551
+
2552
+
2553
+ class _Call(tuple):
2554
+ """
2555
+ A tuple for holding the results of a call to a mock, either in the form
2556
+ `(args, kwargs)` or `(name, args, kwargs)`.
2557
+
2558
+ If args or kwargs are empty then a call tuple will compare equal to
2559
+ a tuple without those values. This makes comparisons less verbose::
2560
+
2561
+ _Call(('name', (), {})) == ('name',)
2562
+ _Call(('name', (1,), {})) == ('name', (1,))
2563
+ _Call(((), {'a': 'b'})) == ({'a': 'b'},)
2564
+
2565
+ The `_Call` object provides a useful shortcut for comparing with call::
2566
+
2567
+ _Call(((1, 2), {'a': 3})) == call(1, 2, a=3)
2568
+ _Call(('foo', (1, 2), {'a': 3})) == call.foo(1, 2, a=3)
2569
+
2570
+ If the _Call has no name then it will match any name.
2571
+ """
2572
+ def __new__(cls, value=(), name='', parent=None, two=False,
2573
+ from_kall=True):
2574
+ args = ()
2575
+ kwargs = {}
2576
+ _len = len(value)
2577
+ if _len == 3:
2578
+ name, args, kwargs = value
2579
+ elif _len == 2:
2580
+ first, second = value
2581
+ if isinstance(first, str):
2582
+ name = first
2583
+ if isinstance(second, tuple):
2584
+ args = second
2585
+ else:
2586
+ kwargs = second
2587
+ else:
2588
+ args, kwargs = first, second
2589
+ elif _len == 1:
2590
+ value, = value
2591
+ if isinstance(value, str):
2592
+ name = value
2593
+ elif isinstance(value, tuple):
2594
+ args = value
2595
+ else:
2596
+ kwargs = value
2597
+
2598
+ if two:
2599
+ return tuple.__new__(cls, (args, kwargs))
2600
+
2601
+ return tuple.__new__(cls, (name, args, kwargs))
2602
+
2603
+
2604
+ def __init__(self, value=(), name=None, parent=None, two=False,
2605
+ from_kall=True):
2606
+ self._mock_name = name
2607
+ self._mock_parent = parent
2608
+ self._mock_from_kall = from_kall
2609
+
2610
+
2611
+ def __eq__(self, other):
2612
+ try:
2613
+ len_other = len(other)
2614
+ except TypeError:
2615
+ return NotImplemented
2616
+
2617
+ self_name = ''
2618
+ if len(self) == 2:
2619
+ self_args, self_kwargs = self
2620
+ else:
2621
+ self_name, self_args, self_kwargs = self
2622
+
2623
+ if (getattr(self, '_mock_parent', None) and getattr(other, '_mock_parent', None)
2624
+ and self._mock_parent != other._mock_parent):
2625
+ return False
2626
+
2627
+ other_name = ''
2628
+ if len_other == 0:
2629
+ other_args, other_kwargs = (), {}
2630
+ elif len_other == 3:
2631
+ other_name, other_args, other_kwargs = other
2632
+ elif len_other == 1:
2633
+ value, = other
2634
+ if isinstance(value, tuple):
2635
+ other_args = value
2636
+ other_kwargs = {}
2637
+ elif isinstance(value, str):
2638
+ other_name = value
2639
+ other_args, other_kwargs = (), {}
2640
+ else:
2641
+ other_args = ()
2642
+ other_kwargs = value
2643
+ elif len_other == 2:
2644
+ # could be (name, args) or (name, kwargs) or (args, kwargs)
2645
+ first, second = other
2646
+ if isinstance(first, str):
2647
+ other_name = first
2648
+ if isinstance(second, tuple):
2649
+ other_args, other_kwargs = second, {}
2650
+ else:
2651
+ other_args, other_kwargs = (), second
2652
+ else:
2653
+ other_args, other_kwargs = first, second
2654
+ else:
2655
+ return False
2656
+
2657
+ if self_name and other_name != self_name:
2658
+ return False
2659
+
2660
+ # this order is important for ANY to work!
2661
+ return (other_args, other_kwargs) == (self_args, self_kwargs)
2662
+
2663
+
2664
+ __ne__ = object.__ne__
2665
+
2666
+
2667
+ def __call__(self, /, *args, **kwargs):
2668
+ if self._mock_name is None:
2669
+ return _Call(('', args, kwargs), name='()')
2670
+
2671
+ name = self._mock_name + '()'
2672
+ return _Call((self._mock_name, args, kwargs), name=name, parent=self)
2673
+
2674
+
2675
+ def __getattr__(self, attr):
2676
+ if self._mock_name is None:
2677
+ return _Call(name=attr, from_kall=False)
2678
+ name = '%s.%s' % (self._mock_name, attr)
2679
+ return _Call(name=name, parent=self, from_kall=False)
2680
+
2681
+
2682
+ def __getattribute__(self, attr):
2683
+ if attr in tuple.__dict__:
2684
+ raise AttributeError
2685
+ return tuple.__getattribute__(self, attr)
2686
+
2687
+
2688
+ def _get_call_arguments(self):
2689
+ if len(self) == 2:
2690
+ args, kwargs = self
2691
+ else:
2692
+ name, args, kwargs = self
2693
+
2694
+ return args, kwargs
2695
+
2696
+ @property
2697
+ def args(self):
2698
+ return self._get_call_arguments()[0]
2699
+
2700
+ @property
2701
+ def kwargs(self):
2702
+ return self._get_call_arguments()[1]
2703
+
2704
+ def __repr__(self):
2705
+ if not self._mock_from_kall:
2706
+ name = self._mock_name or 'call'
2707
+ if name.startswith('()'):
2708
+ name = 'call%s' % name
2709
+ return name
2710
+
2711
+ if len(self) == 2:
2712
+ name = 'call'
2713
+ args, kwargs = self
2714
+ else:
2715
+ name, args, kwargs = self
2716
+ if not name:
2717
+ name = 'call'
2718
+ elif not name.startswith('()'):
2719
+ name = 'call.%s' % name
2720
+ else:
2721
+ name = 'call%s' % name
2722
+ return _format_call_signature(name, args, kwargs)
2723
+
2724
+
2725
+ def call_list(self):
2726
+ """For a call object that represents multiple calls, `call_list`
2727
+ returns a list of all the intermediate calls as well as the
2728
+ final call."""
2729
+ vals = []
2730
+ thing = self
2731
+ while thing is not None:
2732
+ if thing._mock_from_kall:
2733
+ vals.append(thing)
2734
+ thing = thing._mock_parent
2735
+ return _CallList(reversed(vals))
2736
+
2737
+
2738
+ call = _Call(from_kall=False)
2739
+
2740
+
2741
+ def create_autospec(spec, spec_set=False, instance=False, _parent=None,
2742
+ _name=None, *, unsafe=False, **kwargs):
2743
+ """Create a mock object using another object as a spec. Attributes on the
2744
+ mock will use the corresponding attribute on the `spec` object as their
2745
+ spec.
2746
+
2747
+ Functions or methods being mocked will have their arguments checked
2748
+ to check that they are called with the correct signature.
2749
+
2750
+ If `spec_set` is True then attempting to set attributes that don't exist
2751
+ on the spec object will raise an `AttributeError`.
2752
+
2753
+ If a class is used as a spec then the return value of the mock (the
2754
+ instance of the class) will have the same spec. You can use a class as the
2755
+ spec for an instance object by passing `instance=True`. The returned mock
2756
+ will only be callable if instances of the mock are callable.
2757
+
2758
+ `create_autospec` will raise a `RuntimeError` if passed some common
2759
+ misspellings of the arguments autospec and spec_set. Pass the argument
2760
+ `unsafe` with the value True to disable that check.
2761
+
2762
+ `create_autospec` also takes arbitrary keyword arguments that are passed to
2763
+ the constructor of the created mock."""
2764
+ if _is_list(spec):
2765
+ # can't pass a list instance to the mock constructor as it will be
2766
+ # interpreted as a list of strings
2767
+ spec = type(spec)
2768
+
2769
+ is_type = isinstance(spec, type)
2770
+ if _is_instance_mock(spec):
2771
+ raise InvalidSpecError(f'Cannot autospec a Mock object. '
2772
+ f'[object={spec!r}]')
2773
+ is_async_func = _is_async_func(spec)
2774
+ _kwargs = {'spec': spec}
2775
+
2776
+ entries = [(entry, _missing) for entry in dir(spec)]
2777
+ if is_type and instance and is_dataclass(spec):
2778
+ is_dataclass_spec = True
2779
+ dataclass_fields = fields(spec)
2780
+ entries.extend((f.name, f.type) for f in dataclass_fields)
2781
+ dataclass_spec_list = [f.name for f in dataclass_fields]
2782
+ else:
2783
+ is_dataclass_spec = False
2784
+
2785
+ if spec_set:
2786
+ _kwargs = {'spec_set': spec}
2787
+ elif spec is None:
2788
+ # None we mock with a normal mock without a spec
2789
+ _kwargs = {}
2790
+ if _kwargs and instance:
2791
+ _kwargs['_spec_as_instance'] = True
2792
+ if not unsafe:
2793
+ _check_spec_arg_typos(kwargs)
2794
+
2795
+ _name = kwargs.pop('name', _name)
2796
+ _new_name = _name
2797
+ if _parent is None:
2798
+ # for a top level object no _new_name should be set
2799
+ _new_name = ''
2800
+
2801
+ _kwargs.update(kwargs)
2802
+
2803
+ Klass = MagicMock
2804
+ if inspect.isdatadescriptor(spec):
2805
+ # descriptors don't have a spec
2806
+ # because we don't know what type they return
2807
+ _kwargs = {}
2808
+ elif is_async_func:
2809
+ if instance:
2810
+ raise RuntimeError("Instance can not be True when create_autospec "
2811
+ "is mocking an async function")
2812
+ Klass = AsyncMock
2813
+ elif not _callable(spec):
2814
+ Klass = NonCallableMagicMock
2815
+ elif is_type and instance and not _instance_callable(spec):
2816
+ Klass = NonCallableMagicMock
2817
+
2818
+ mock = Klass(parent=_parent, _new_parent=_parent, _new_name=_new_name,
2819
+ name=_name, **_kwargs)
2820
+ if is_dataclass_spec:
2821
+ mock._mock_extend_spec_methods(dataclass_spec_list)
2822
+
2823
+ if isinstance(spec, FunctionTypes):
2824
+ # should only happen at the top level because we don't
2825
+ # recurse for functions
2826
+ if is_async_func:
2827
+ mock = _set_async_signature(mock, spec)
2828
+ else:
2829
+ mock = _set_signature(mock, spec)
2830
+ else:
2831
+ _check_signature(spec, mock, is_type, instance)
2832
+
2833
+ if _parent is not None and not instance:
2834
+ _parent._mock_children[_name] = mock
2835
+
2836
+ # Pop wraps from kwargs because it must not be passed to configure_mock.
2837
+ wrapped = kwargs.pop('wraps', None)
2838
+ if is_type and not instance and 'return_value' not in kwargs:
2839
+ mock.return_value = create_autospec(spec, spec_set, instance=True,
2840
+ _name='()', _parent=mock,
2841
+ wraps=wrapped)
2842
+
2843
+ for entry, original in entries:
2844
+ if _is_magic(entry):
2845
+ # MagicMock already does the useful magic methods for us
2846
+ continue
2847
+
2848
+ # XXXX do we need a better way of getting attributes without
2849
+ # triggering code execution (?) Probably not - we need the actual
2850
+ # object to mock it so we would rather trigger a property than mock
2851
+ # the property descriptor. Likewise we want to mock out dynamically
2852
+ # provided attributes.
2853
+ # XXXX what about attributes that raise exceptions other than
2854
+ # AttributeError on being fetched?
2855
+ # we could be resilient against it, or catch and propagate the
2856
+ # exception when the attribute is fetched from the mock
2857
+ if original is _missing:
2858
+ try:
2859
+ original = getattr(spec, entry)
2860
+ except AttributeError:
2861
+ continue
2862
+
2863
+ child_kwargs = {'spec': original}
2864
+ # Wrap child attributes also.
2865
+ if wrapped and hasattr(wrapped, entry):
2866
+ child_kwargs.update(wraps=original)
2867
+ if spec_set:
2868
+ child_kwargs = {'spec_set': original}
2869
+
2870
+ if not isinstance(original, FunctionTypes):
2871
+ new = _SpecState(original, spec_set, mock, entry, instance)
2872
+ mock._mock_children[entry] = new
2873
+ else:
2874
+ parent = mock
2875
+ if isinstance(spec, FunctionTypes):
2876
+ parent = mock.mock
2877
+
2878
+ skipfirst = _must_skip(spec, entry, is_type)
2879
+ child_kwargs['_eat_self'] = skipfirst
2880
+ if iscoroutinefunction(original):
2881
+ child_klass = AsyncMock
2882
+ else:
2883
+ child_klass = MagicMock
2884
+ new = child_klass(parent=parent, name=entry, _new_name=entry,
2885
+ _new_parent=parent, **child_kwargs)
2886
+ mock._mock_children[entry] = new
2887
+ new.return_value = child_klass()
2888
+ _check_signature(original, new, skipfirst=skipfirst)
2889
+
2890
+ # so functions created with _set_signature become instance attributes,
2891
+ # *plus* their underlying mock exists in _mock_children of the parent
2892
+ # mock. Adding to _mock_children may be unnecessary where we are also
2893
+ # setting as an instance attribute?
2894
+ if isinstance(new, FunctionTypes):
2895
+ setattr(mock, entry, new)
2896
+ # kwargs are passed with respect to the parent mock so, they are not used
2897
+ # for creating return_value of the parent mock. So, this condition
2898
+ # should be true only for the parent mock if kwargs are given.
2899
+ if _is_instance_mock(mock) and kwargs:
2900
+ mock.configure_mock(**kwargs)
2901
+
2902
+ return mock
2903
+
2904
+
2905
+ def _must_skip(spec, entry, is_type):
2906
+ """
2907
+ Return whether we should skip the first argument on spec's `entry`
2908
+ attribute.
2909
+ """
2910
+ if not isinstance(spec, type):
2911
+ if entry in getattr(spec, '__dict__', {}):
2912
+ # instance attribute - shouldn't skip
2913
+ return False
2914
+ spec = spec.__class__
2915
+
2916
+ for klass in spec.__mro__:
2917
+ result = klass.__dict__.get(entry, DEFAULT)
2918
+ if result is DEFAULT:
2919
+ continue
2920
+ if isinstance(result, (staticmethod, classmethod)):
2921
+ return False
2922
+ elif isinstance(result, FunctionTypes):
2923
+ # Normal method => skip if looked up on type
2924
+ # (if looked up on instance, self is already skipped)
2925
+ return is_type
2926
+ else:
2927
+ return False
2928
+
2929
+ # function is a dynamically provided attribute
2930
+ return is_type
2931
+
2932
+
2933
+ class _SpecState(object):
2934
+
2935
+ def __init__(self, spec, spec_set=False, parent=None,
2936
+ name=None, ids=None, instance=False):
2937
+ self.spec = spec
2938
+ self.ids = ids
2939
+ self.spec_set = spec_set
2940
+ self.parent = parent
2941
+ self.instance = instance
2942
+ self.name = name
2943
+
2944
+
2945
+ FunctionTypes = (
2946
+ # python function
2947
+ type(create_autospec),
2948
+ # instance method
2949
+ type(ANY.__eq__),
2950
+ )
2951
+
2952
+
2953
+ file_spec = None
2954
+ open_spec = None
2955
+
2956
+
2957
+ def _to_stream(read_data):
2958
+ if isinstance(read_data, bytes):
2959
+ return io.BytesIO(read_data)
2960
+ else:
2961
+ return io.StringIO(read_data)
2962
+
2963
+
2964
+ def mock_open(mock=None, read_data=''):
2965
+ """
2966
+ A helper function to create a mock to replace the use of `open`. It works
2967
+ for `open` called directly or used as a context manager.
2968
+
2969
+ The `mock` argument is the mock object to configure. If `None` (the
2970
+ default) then a `MagicMock` will be created for you, with the API limited
2971
+ to methods or attributes available on standard file handles.
2972
+
2973
+ `read_data` is a string for the `read`, `readline` and `readlines` of the
2974
+ file handle to return. This is an empty string by default.
2975
+ """
2976
+ _read_data = _to_stream(read_data)
2977
+ _state = [_read_data, None]
2978
+
2979
+ def _readlines_side_effect(*args, **kwargs):
2980
+ if handle.readlines.return_value is not None:
2981
+ return handle.readlines.return_value
2982
+ return _state[0].readlines(*args, **kwargs)
2983
+
2984
+ def _read_side_effect(*args, **kwargs):
2985
+ if handle.read.return_value is not None:
2986
+ return handle.read.return_value
2987
+ return _state[0].read(*args, **kwargs)
2988
+
2989
+ def _readline_side_effect(*args, **kwargs):
2990
+ yield from _iter_side_effect()
2991
+ while True:
2992
+ yield _state[0].readline(*args, **kwargs)
2993
+
2994
+ def _iter_side_effect():
2995
+ if handle.readline.return_value is not None:
2996
+ while True:
2997
+ yield handle.readline.return_value
2998
+ for line in _state[0]:
2999
+ yield line
3000
+
3001
+ def _next_side_effect():
3002
+ if handle.readline.return_value is not None:
3003
+ return handle.readline.return_value
3004
+ return next(_state[0])
3005
+
3006
+ def _exit_side_effect(exctype, excinst, exctb):
3007
+ handle.close()
3008
+
3009
+ global file_spec
3010
+ if file_spec is None:
3011
+ import _io
3012
+ file_spec = list(set(dir(_io.TextIOWrapper)).union(set(dir(_io.BytesIO))))
3013
+
3014
+ global open_spec
3015
+ if open_spec is None:
3016
+ import _io
3017
+ open_spec = list(set(dir(_io.open)))
3018
+ if mock is None:
3019
+ mock = MagicMock(name='open', spec=open_spec)
3020
+
3021
+ handle = MagicMock(spec=file_spec)
3022
+ handle.__enter__.return_value = handle
3023
+
3024
+ handle.write.return_value = None
3025
+ handle.read.return_value = None
3026
+ handle.readline.return_value = None
3027
+ handle.readlines.return_value = None
3028
+
3029
+ handle.read.side_effect = _read_side_effect
3030
+ _state[1] = _readline_side_effect()
3031
+ handle.readline.side_effect = _state[1]
3032
+ handle.readlines.side_effect = _readlines_side_effect
3033
+ handle.__iter__.side_effect = _iter_side_effect
3034
+ handle.__next__.side_effect = _next_side_effect
3035
+ handle.__exit__.side_effect = _exit_side_effect
3036
+
3037
+ def reset_data(*args, **kwargs):
3038
+ _state[0] = _to_stream(read_data)
3039
+ if handle.readline.side_effect == _state[1]:
3040
+ # Only reset the side effect if the user hasn't overridden it.
3041
+ _state[1] = _readline_side_effect()
3042
+ handle.readline.side_effect = _state[1]
3043
+ return DEFAULT
3044
+
3045
+ mock.side_effect = reset_data
3046
+ mock.return_value = handle
3047
+ return mock
3048
+
3049
+
3050
+ class PropertyMock(Mock):
3051
+ """
3052
+ A mock intended to be used as a property, or other descriptor, on a class.
3053
+ `PropertyMock` provides `__get__` and `__set__` methods so you can specify
3054
+ a return value when it is fetched.
3055
+
3056
+ Fetching a `PropertyMock` instance from an object calls the mock, with
3057
+ no args. Setting it calls the mock with the value being set.
3058
+ """
3059
+ def _get_child_mock(self, /, **kwargs):
3060
+ return MagicMock(**kwargs)
3061
+
3062
+ def __get__(self, obj, obj_type=None):
3063
+ return self()
3064
+ def __set__(self, obj, val):
3065
+ self(val)
3066
+
3067
+
3068
+ _timeout_unset = sentinel.TIMEOUT_UNSET
3069
+
3070
+ class ThreadingMixin(Base):
3071
+
3072
+ DEFAULT_TIMEOUT = None
3073
+
3074
+ def _get_child_mock(self, /, **kw):
3075
+ if isinstance(kw.get("parent"), ThreadingMixin):
3076
+ kw["timeout"] = kw["parent"]._mock_wait_timeout
3077
+ elif isinstance(kw.get("_new_parent"), ThreadingMixin):
3078
+ kw["timeout"] = kw["_new_parent"]._mock_wait_timeout
3079
+ return super()._get_child_mock(**kw)
3080
+
3081
+ def __init__(self, *args, timeout=_timeout_unset, **kwargs):
3082
+ super().__init__(*args, **kwargs)
3083
+ if timeout is _timeout_unset:
3084
+ timeout = self.DEFAULT_TIMEOUT
3085
+ self.__dict__["_mock_event"] = threading.Event() # Event for any call
3086
+ self.__dict__["_mock_calls_events"] = [] # Events for each of the calls
3087
+ self.__dict__["_mock_calls_events_lock"] = threading.Lock()
3088
+ self.__dict__["_mock_wait_timeout"] = timeout
3089
+
3090
+ def reset_mock(self, /, *args, **kwargs):
3091
+ """
3092
+ See :func:`.Mock.reset_mock()`
3093
+ """
3094
+ super().reset_mock(*args, **kwargs)
3095
+ self.__dict__["_mock_event"] = threading.Event()
3096
+ self.__dict__["_mock_calls_events"] = []
3097
+
3098
+ def __get_event(self, expected_args, expected_kwargs):
3099
+ with self._mock_calls_events_lock:
3100
+ for args, kwargs, event in self._mock_calls_events:
3101
+ if (args, kwargs) == (expected_args, expected_kwargs):
3102
+ return event
3103
+ new_event = threading.Event()
3104
+ self._mock_calls_events.append((expected_args, expected_kwargs, new_event))
3105
+ return new_event
3106
+
3107
+ def _mock_call(self, *args, **kwargs):
3108
+ ret_value = super()._mock_call(*args, **kwargs)
3109
+
3110
+ call_event = self.__get_event(args, kwargs)
3111
+ call_event.set()
3112
+
3113
+ self._mock_event.set()
3114
+
3115
+ return ret_value
3116
+
3117
+ def wait_until_called(self, *, timeout=_timeout_unset):
3118
+ """Wait until the mock object is called.
3119
+
3120
+ `timeout` - time to wait for in seconds, waits forever otherwise.
3121
+ Defaults to the constructor provided timeout.
3122
+ Use None to block undefinetively.
3123
+ """
3124
+ if timeout is _timeout_unset:
3125
+ timeout = self._mock_wait_timeout
3126
+ if not self._mock_event.wait(timeout=timeout):
3127
+ msg = (f"{self._mock_name or 'mock'} was not called before"
3128
+ f" timeout({timeout}).")
3129
+ raise AssertionError(msg)
3130
+
3131
+ def wait_until_any_call_with(self, *args, **kwargs):
3132
+ """Wait until the mock object is called with given args.
3133
+
3134
+ Waits for the timeout in seconds provided in the constructor.
3135
+ """
3136
+ event = self.__get_event(args, kwargs)
3137
+ if not event.wait(timeout=self._mock_wait_timeout):
3138
+ expected_string = self._format_mock_call_signature(args, kwargs)
3139
+ raise AssertionError(f'{expected_string} call not found')
3140
+
3141
+
3142
+ class ThreadingMock(ThreadingMixin, MagicMixin, Mock):
3143
+ """
3144
+ A mock that can be used to wait until on calls happening
3145
+ in a different thread.
3146
+
3147
+ The constructor can take a `timeout` argument which
3148
+ controls the timeout in seconds for all `wait` calls of the mock.
3149
+
3150
+ You can change the default timeout of all instances via the
3151
+ `ThreadingMock.DEFAULT_TIMEOUT` attribute.
3152
+
3153
+ If no timeout is set, it will block undefinetively.
3154
+ """
3155
+ pass
3156
+
3157
+
3158
+ def seal(mock):
3159
+ """Disable the automatic generation of child mocks.
3160
+
3161
+ Given an input Mock, seals it to ensure no further mocks will be generated
3162
+ when accessing an attribute that was not already defined.
3163
+
3164
+ The operation recursively seals the mock passed in, meaning that
3165
+ the mock itself, any mocks generated by accessing one of its attributes,
3166
+ and all assigned mocks without a name or spec will be sealed.
3167
+ """
3168
+ mock._mock_sealed = True
3169
+ for attr in dir(mock):
3170
+ try:
3171
+ m = getattr(mock, attr)
3172
+ except AttributeError:
3173
+ continue
3174
+ if not isinstance(m, NonCallableMock):
3175
+ continue
3176
+ if isinstance(m._mock_children.get(attr), _SpecState):
3177
+ continue
3178
+ if m._mock_new_parent is mock:
3179
+ seal(m)
3180
+
3181
+
3182
+ class _AsyncIterator:
3183
+ """
3184
+ Wraps an iterator in an asynchronous iterator.
3185
+ """
3186
+ def __init__(self, iterator):
3187
+ self.iterator = iterator
3188
+ code_mock = NonCallableMock(spec_set=CodeType)
3189
+ code_mock.co_flags = inspect.CO_ITERABLE_COROUTINE
3190
+ self.__dict__['__code__'] = code_mock
3191
+
3192
+ async def __anext__(self):
3193
+ try:
3194
+ return next(self.iterator)
3195
+ except StopIteration:
3196
+ pass
3197
+ raise StopAsyncIteration