@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,3407 @@
1
+ """Get useful information from live Python objects.
2
+
3
+ This module encapsulates the interface provided by the internal special
4
+ attributes (co_*, im_*, tb_*, etc.) in a friendlier fashion.
5
+ It also provides some help for examining source code and class layout.
6
+
7
+ Here are some of the useful functions provided by this module:
8
+
9
+ ismodule(), isclass(), ismethod(), ispackage(), isfunction(),
10
+ isgeneratorfunction(), isgenerator(), istraceback(), isframe(),
11
+ iscode(), isbuiltin(), isroutine() - check object types
12
+ getmembers() - get members of an object that satisfy a given condition
13
+
14
+ getfile(), getsourcefile(), getsource() - find an object's source code
15
+ getdoc(), getcomments() - get documentation on an object
16
+ getmodule() - determine the module that an object came from
17
+ getclasstree() - arrange classes so as to represent their hierarchy
18
+
19
+ getargvalues(), getcallargs() - get info about function arguments
20
+ getfullargspec() - same, with support for Python 3 features
21
+ formatargvalues() - format an argument spec
22
+ getouterframes(), getinnerframes() - get info about frames
23
+ currentframe() - get the current stack frame
24
+ stack(), trace() - get info about frames on the stack or in a traceback
25
+
26
+ signature() - get a Signature object for the callable
27
+ """
28
+
29
+ # This module is in the public domain. No warranties.
30
+
31
+ __author__ = ('Ka-Ping Yee <ping@lfw.org>',
32
+ 'Yury Selivanov <yselivanov@sprymix.com>')
33
+
34
+ __all__ = [
35
+ "AGEN_CLOSED",
36
+ "AGEN_CREATED",
37
+ "AGEN_RUNNING",
38
+ "AGEN_SUSPENDED",
39
+ "ArgInfo",
40
+ "Arguments",
41
+ "Attribute",
42
+ "BlockFinder",
43
+ "BoundArguments",
44
+ "BufferFlags",
45
+ "CORO_CLOSED",
46
+ "CORO_CREATED",
47
+ "CORO_RUNNING",
48
+ "CORO_SUSPENDED",
49
+ "CO_ASYNC_GENERATOR",
50
+ "CO_COROUTINE",
51
+ "CO_GENERATOR",
52
+ "CO_ITERABLE_COROUTINE",
53
+ "CO_NESTED",
54
+ "CO_NEWLOCALS",
55
+ "CO_NOFREE",
56
+ "CO_OPTIMIZED",
57
+ "CO_VARARGS",
58
+ "CO_VARKEYWORDS",
59
+ "CO_HAS_DOCSTRING",
60
+ "CO_METHOD",
61
+ "ClassFoundException",
62
+ "ClosureVars",
63
+ "EndOfBlock",
64
+ "FrameInfo",
65
+ "FullArgSpec",
66
+ "GEN_CLOSED",
67
+ "GEN_CREATED",
68
+ "GEN_RUNNING",
69
+ "GEN_SUSPENDED",
70
+ "Parameter",
71
+ "Signature",
72
+ "TPFLAGS_IS_ABSTRACT",
73
+ "Traceback",
74
+ "classify_class_attrs",
75
+ "cleandoc",
76
+ "currentframe",
77
+ "findsource",
78
+ "formatannotation",
79
+ "formatannotationrelativeto",
80
+ "formatargvalues",
81
+ "get_annotations",
82
+ "getabsfile",
83
+ "getargs",
84
+ "getargvalues",
85
+ "getasyncgenlocals",
86
+ "getasyncgenstate",
87
+ "getattr_static",
88
+ "getblock",
89
+ "getcallargs",
90
+ "getclasstree",
91
+ "getclosurevars",
92
+ "getcomments",
93
+ "getcoroutinelocals",
94
+ "getcoroutinestate",
95
+ "getdoc",
96
+ "getfile",
97
+ "getframeinfo",
98
+ "getfullargspec",
99
+ "getgeneratorlocals",
100
+ "getgeneratorstate",
101
+ "getinnerframes",
102
+ "getlineno",
103
+ "getmembers",
104
+ "getmembers_static",
105
+ "getmodule",
106
+ "getmodulename",
107
+ "getmro",
108
+ "getouterframes",
109
+ "getsource",
110
+ "getsourcefile",
111
+ "getsourcelines",
112
+ "indentsize",
113
+ "isabstract",
114
+ "isasyncgen",
115
+ "isasyncgenfunction",
116
+ "isawaitable",
117
+ "isbuiltin",
118
+ "isclass",
119
+ "iscode",
120
+ "iscoroutine",
121
+ "iscoroutinefunction",
122
+ "isdatadescriptor",
123
+ "isframe",
124
+ "isfunction",
125
+ "isgenerator",
126
+ "isgeneratorfunction",
127
+ "isgetsetdescriptor",
128
+ "ismemberdescriptor",
129
+ "ismethod",
130
+ "ismethoddescriptor",
131
+ "ismethodwrapper",
132
+ "ismodule",
133
+ "ispackage",
134
+ "isroutine",
135
+ "istraceback",
136
+ "markcoroutinefunction",
137
+ "signature",
138
+ "stack",
139
+ "trace",
140
+ "unwrap",
141
+ "walktree",
142
+ ]
143
+
144
+
145
+ import abc
146
+ from annotationlib import Format, ForwardRef
147
+ from annotationlib import get_annotations # re-exported
148
+ import ast
149
+ import dis
150
+ import collections.abc
151
+ import enum
152
+ import importlib.machinery
153
+ import itertools
154
+ import linecache
155
+ import os
156
+ import re
157
+ import sys
158
+ import tokenize
159
+ import token
160
+ import types
161
+ import functools
162
+ import builtins
163
+ from keyword import iskeyword
164
+ from operator import attrgetter
165
+ from collections import namedtuple, OrderedDict
166
+ from weakref import ref as make_weakref
167
+
168
+ # Create constants for the compiler flags in Include/code.h
169
+ # We try to get them from dis to avoid duplication
170
+ mod_dict = globals()
171
+ for k, v in dis.COMPILER_FLAG_NAMES.items():
172
+ mod_dict["CO_" + v] = k
173
+ del k, v, mod_dict
174
+
175
+ # See Include/object.h
176
+ TPFLAGS_IS_ABSTRACT = 1 << 20
177
+
178
+
179
+ # ----------------------------------------------------------- type-checking
180
+ def ismodule(object):
181
+ """Return true if the object is a module."""
182
+ return isinstance(object, types.ModuleType)
183
+
184
+ def isclass(object):
185
+ """Return true if the object is a class."""
186
+ return isinstance(object, type)
187
+
188
+ def ismethod(object):
189
+ """Return true if the object is an instance method."""
190
+ return isinstance(object, types.MethodType)
191
+
192
+ def ispackage(object):
193
+ """Return true if the object is a package."""
194
+ return ismodule(object) and hasattr(object, "__path__")
195
+
196
+ def ismethoddescriptor(object):
197
+ """Return true if the object is a method descriptor.
198
+
199
+ But not if ismethod() or isclass() or isfunction() are true.
200
+
201
+ This is new in Python 2.2, and, for example, is true of int.__add__.
202
+ An object passing this test has a __get__ attribute, but not a
203
+ __set__ attribute or a __delete__ attribute. Beyond that, the set
204
+ of attributes varies; __name__ is usually sensible, and __doc__
205
+ often is.
206
+
207
+ Methods implemented via descriptors that also pass one of the other
208
+ tests return false from the ismethoddescriptor() test, simply because
209
+ the other tests promise more -- you can, e.g., count on having the
210
+ __func__ attribute (etc) when an object passes ismethod()."""
211
+ if isclass(object) or ismethod(object) or isfunction(object):
212
+ # mutual exclusion
213
+ return False
214
+ tp = type(object)
215
+ return (hasattr(tp, "__get__")
216
+ and not hasattr(tp, "__set__")
217
+ and not hasattr(tp, "__delete__"))
218
+
219
+ def isdatadescriptor(object):
220
+ """Return true if the object is a data descriptor.
221
+
222
+ Data descriptors have a __set__ or a __delete__ attribute. Examples are
223
+ properties (defined in Python) and getsets and members (defined in C).
224
+ Typically, data descriptors will also have __name__ and __doc__ attributes
225
+ (properties, getsets, and members have both of these attributes), but this
226
+ is not guaranteed."""
227
+ if isclass(object) or ismethod(object) or isfunction(object):
228
+ # mutual exclusion
229
+ return False
230
+ tp = type(object)
231
+ return hasattr(tp, "__set__") or hasattr(tp, "__delete__")
232
+
233
+ if hasattr(types, 'MemberDescriptorType'):
234
+ # CPython and equivalent
235
+ def ismemberdescriptor(object):
236
+ """Return true if the object is a member descriptor.
237
+
238
+ Member descriptors are specialized descriptors defined in extension
239
+ modules."""
240
+ return isinstance(object, types.MemberDescriptorType)
241
+ else:
242
+ # Other implementations
243
+ def ismemberdescriptor(object):
244
+ """Return true if the object is a member descriptor.
245
+
246
+ Member descriptors are specialized descriptors defined in extension
247
+ modules."""
248
+ return False
249
+
250
+ if hasattr(types, 'GetSetDescriptorType'):
251
+ # CPython and equivalent
252
+ def isgetsetdescriptor(object):
253
+ """Return true if the object is a getset descriptor.
254
+
255
+ getset descriptors are specialized descriptors defined in extension
256
+ modules."""
257
+ return isinstance(object, types.GetSetDescriptorType)
258
+ else:
259
+ # Other implementations
260
+ def isgetsetdescriptor(object):
261
+ """Return true if the object is a getset descriptor.
262
+
263
+ getset descriptors are specialized descriptors defined in extension
264
+ modules."""
265
+ return False
266
+
267
+ def isfunction(object):
268
+ """Return true if the object is a user-defined function.
269
+
270
+ Function objects provide these attributes:
271
+ __doc__ documentation string
272
+ __name__ name with which this function was defined
273
+ __qualname__ qualified name of this function
274
+ __module__ name of the module the function was defined in or None
275
+ __code__ code object containing compiled function bytecode
276
+ __defaults__ tuple of any default values for arguments
277
+ __globals__ global namespace in which this function was defined
278
+ __annotations__ dict of parameter annotations
279
+ __kwdefaults__ dict of keyword only parameters with defaults
280
+ __dict__ namespace which is supporting arbitrary function attributes
281
+ __closure__ a tuple of cells or None
282
+ __type_params__ tuple of type parameters"""
283
+ return isinstance(object, types.FunctionType)
284
+
285
+ def _has_code_flag(f, flag):
286
+ """Return true if ``f`` is a function (or a method or functools.partial
287
+ wrapper wrapping a function or a functools.partialmethod wrapping a
288
+ function) whose code object has the given ``flag``
289
+ set in its flags."""
290
+ f = functools._unwrap_partialmethod(f)
291
+ while ismethod(f):
292
+ f = f.__func__
293
+ f = functools._unwrap_partial(f)
294
+ if not (isfunction(f) or _signature_is_functionlike(f)):
295
+ return False
296
+ return bool(f.__code__.co_flags & flag)
297
+
298
+ def isgeneratorfunction(obj):
299
+ """Return true if the object is a user-defined generator function.
300
+
301
+ Generator function objects provide the same attributes as functions.
302
+ See help(isfunction) for a list of attributes."""
303
+ return _has_code_flag(obj, CO_GENERATOR)
304
+
305
+ # A marker for markcoroutinefunction and iscoroutinefunction.
306
+ _is_coroutine_mark = object()
307
+
308
+ def _has_coroutine_mark(f):
309
+ while ismethod(f):
310
+ f = f.__func__
311
+ f = functools._unwrap_partial(f)
312
+ return getattr(f, "_is_coroutine_marker", None) is _is_coroutine_mark
313
+
314
+ def markcoroutinefunction(func):
315
+ """
316
+ Decorator to ensure callable is recognised as a coroutine function.
317
+ """
318
+ if hasattr(func, '__func__'):
319
+ func = func.__func__
320
+ func._is_coroutine_marker = _is_coroutine_mark
321
+ return func
322
+
323
+ def iscoroutinefunction(obj):
324
+ """Return true if the object is a coroutine function.
325
+
326
+ Coroutine functions are normally defined with "async def" syntax, but may
327
+ be marked via markcoroutinefunction.
328
+ """
329
+ return _has_code_flag(obj, CO_COROUTINE) or _has_coroutine_mark(obj)
330
+
331
+ def isasyncgenfunction(obj):
332
+ """Return true if the object is an asynchronous generator function.
333
+
334
+ Asynchronous generator functions are defined with "async def"
335
+ syntax and have "yield" expressions in their body.
336
+ """
337
+ return _has_code_flag(obj, CO_ASYNC_GENERATOR)
338
+
339
+ def isasyncgen(object):
340
+ """Return true if the object is an asynchronous generator."""
341
+ return isinstance(object, types.AsyncGeneratorType)
342
+
343
+ def isgenerator(object):
344
+ """Return true if the object is a generator.
345
+
346
+ Generator objects provide these attributes:
347
+ gi_code code object
348
+ gi_frame frame object or possibly None once the generator has
349
+ been exhausted
350
+ gi_running set to 1 when generator is executing, 0 otherwise
351
+ gi_yieldfrom object being iterated by yield from or None
352
+
353
+ __iter__() defined to support iteration over container
354
+ close() raises a new GeneratorExit exception inside the
355
+ generator to terminate the iteration
356
+ send() resumes the generator and "sends" a value that becomes
357
+ the result of the current yield-expression
358
+ throw() used to raise an exception inside the generator"""
359
+ return isinstance(object, types.GeneratorType)
360
+
361
+ def iscoroutine(object):
362
+ """Return true if the object is a coroutine."""
363
+ return isinstance(object, types.CoroutineType)
364
+
365
+ def isawaitable(object):
366
+ """Return true if object can be passed to an ``await`` expression."""
367
+ return (isinstance(object, types.CoroutineType) or
368
+ isinstance(object, types.GeneratorType) and
369
+ bool(object.gi_code.co_flags & CO_ITERABLE_COROUTINE) or
370
+ isinstance(object, collections.abc.Awaitable))
371
+
372
+ def istraceback(object):
373
+ """Return true if the object is a traceback.
374
+
375
+ Traceback objects provide these attributes:
376
+ tb_frame frame object at this level
377
+ tb_lasti index of last attempted instruction in bytecode
378
+ tb_lineno current line number in Python source code
379
+ tb_next next inner traceback object (called by this level)"""
380
+ return isinstance(object, types.TracebackType)
381
+
382
+ def isframe(object):
383
+ """Return true if the object is a frame object.
384
+
385
+ Frame objects provide these attributes:
386
+ f_back next outer frame object (this frame's caller)
387
+ f_builtins built-in namespace seen by this frame
388
+ f_code code object being executed in this frame
389
+ f_globals global namespace seen by this frame
390
+ f_lasti index of last attempted instruction in bytecode
391
+ f_lineno current line number in Python source code
392
+ f_locals local namespace seen by this frame
393
+ f_trace tracing function for this frame, or None
394
+ f_trace_lines is a tracing event triggered for each source line?
395
+ f_trace_opcodes are per-opcode events being requested?
396
+
397
+ clear() used to clear all references to local variables"""
398
+ return isinstance(object, types.FrameType)
399
+
400
+ def iscode(object):
401
+ """Return true if the object is a code object.
402
+
403
+ Code objects provide these attributes:
404
+ co_argcount number of arguments (not including *, ** args
405
+ or keyword only arguments)
406
+ co_code string of raw compiled bytecode
407
+ co_cellvars tuple of names of cell variables
408
+ co_consts tuple of constants used in the bytecode
409
+ co_filename name of file in which this code object was created
410
+ co_firstlineno number of first line in Python source code
411
+ co_flags bitmap: 1=optimized | 2=newlocals | 4=*arg | 8=**arg
412
+ | 16=nested | 32=generator | 64=nofree | 128=coroutine
413
+ | 256=iterable_coroutine | 512=async_generator
414
+ | 0x4000000=has_docstring
415
+ co_freevars tuple of names of free variables
416
+ co_posonlyargcount number of positional only arguments
417
+ co_kwonlyargcount number of keyword only arguments (not including ** arg)
418
+ co_lnotab encoded mapping of line numbers to bytecode indices
419
+ co_name name with which this code object was defined
420
+ co_names tuple of names other than arguments and function locals
421
+ co_nlocals number of local variables
422
+ co_stacksize virtual machine stack space required
423
+ co_varnames tuple of names of arguments and local variables
424
+ co_qualname fully qualified function name
425
+
426
+ co_lines() returns an iterator that yields successive bytecode ranges
427
+ co_positions() returns an iterator of source code positions for each bytecode instruction
428
+ replace() returns a copy of the code object with a new values"""
429
+ return isinstance(object, types.CodeType)
430
+
431
+ def isbuiltin(object):
432
+ """Return true if the object is a built-in function or method.
433
+
434
+ Built-in functions and methods provide these attributes:
435
+ __doc__ documentation string
436
+ __name__ original name of this function or method
437
+ __self__ instance to which a method is bound, or None"""
438
+ return isinstance(object, types.BuiltinFunctionType)
439
+
440
+ def ismethodwrapper(object):
441
+ """Return true if the object is a method wrapper."""
442
+ return isinstance(object, types.MethodWrapperType)
443
+
444
+ def isroutine(object):
445
+ """Return true if the object is any kind of function or method."""
446
+ return (isbuiltin(object)
447
+ or isfunction(object)
448
+ or ismethod(object)
449
+ or ismethoddescriptor(object)
450
+ or ismethodwrapper(object)
451
+ or isinstance(object, functools._singledispatchmethod_get))
452
+
453
+ def isabstract(object):
454
+ """Return true if the object is an abstract base class (ABC)."""
455
+ if not isinstance(object, type):
456
+ return False
457
+ if object.__flags__ & TPFLAGS_IS_ABSTRACT:
458
+ return True
459
+ if not issubclass(type(object), abc.ABCMeta):
460
+ return False
461
+ if hasattr(object, '__abstractmethods__'):
462
+ # It looks like ABCMeta.__new__ has finished running;
463
+ # TPFLAGS_IS_ABSTRACT should have been accurate.
464
+ return False
465
+ # It looks like ABCMeta.__new__ has not finished running yet; we're
466
+ # probably in __init_subclass__. We'll look for abstractmethods manually.
467
+ for name, value in object.__dict__.items():
468
+ if getattr(value, "__isabstractmethod__", False):
469
+ return True
470
+ for base in object.__bases__:
471
+ for name in getattr(base, "__abstractmethods__", ()):
472
+ value = getattr(object, name, None)
473
+ if getattr(value, "__isabstractmethod__", False):
474
+ return True
475
+ return False
476
+
477
+ def _getmembers(object, predicate, getter):
478
+ results = []
479
+ processed = set()
480
+ names = dir(object)
481
+ if isclass(object):
482
+ mro = getmro(object)
483
+ # add any DynamicClassAttributes to the list of names if object is a class;
484
+ # this may result in duplicate entries if, for example, a virtual
485
+ # attribute with the same name as a DynamicClassAttribute exists
486
+ try:
487
+ for base in object.__bases__:
488
+ for k, v in base.__dict__.items():
489
+ if isinstance(v, types.DynamicClassAttribute):
490
+ names.append(k)
491
+ except AttributeError:
492
+ pass
493
+ else:
494
+ mro = ()
495
+ for key in names:
496
+ # First try to get the value via getattr. Some descriptors don't
497
+ # like calling their __get__ (see bug #1785), so fall back to
498
+ # looking in the __dict__.
499
+ try:
500
+ value = getter(object, key)
501
+ # handle the duplicate key
502
+ if key in processed:
503
+ raise AttributeError
504
+ except AttributeError:
505
+ for base in mro:
506
+ if key in base.__dict__:
507
+ value = base.__dict__[key]
508
+ break
509
+ else:
510
+ # could be a (currently) missing slot member, or a buggy
511
+ # __dir__; discard and move on
512
+ continue
513
+ if not predicate or predicate(value):
514
+ results.append((key, value))
515
+ processed.add(key)
516
+ results.sort(key=lambda pair: pair[0])
517
+ return results
518
+
519
+ def getmembers(object, predicate=None):
520
+ """Return all members of an object as (name, value) pairs sorted by name.
521
+ Optionally, only return members that satisfy a given predicate."""
522
+ return _getmembers(object, predicate, getattr)
523
+
524
+ def getmembers_static(object, predicate=None):
525
+ """Return all members of an object as (name, value) pairs sorted by name
526
+ without triggering dynamic lookup via the descriptor protocol,
527
+ __getattr__ or __getattribute__. Optionally, only return members that
528
+ satisfy a given predicate.
529
+
530
+ Note: this function may not be able to retrieve all members
531
+ that getmembers can fetch (like dynamically created attributes)
532
+ and may find members that getmembers can't (like descriptors
533
+ that raise AttributeError). It can also return descriptor objects
534
+ instead of instance members in some cases.
535
+ """
536
+ return _getmembers(object, predicate, getattr_static)
537
+
538
+ Attribute = namedtuple('Attribute', 'name kind defining_class object')
539
+
540
+ def classify_class_attrs(cls):
541
+ """Return list of attribute-descriptor tuples.
542
+
543
+ For each name in dir(cls), the return list contains a 4-tuple
544
+ with these elements:
545
+
546
+ 0. The name (a string).
547
+
548
+ 1. The kind of attribute this is, one of these strings:
549
+ 'class method' created via classmethod()
550
+ 'static method' created via staticmethod()
551
+ 'property' created via property()
552
+ 'method' any other flavor of method or descriptor
553
+ 'data' not a method
554
+
555
+ 2. The class which defined this attribute (a class).
556
+
557
+ 3. The object as obtained by calling getattr; if this fails, or if the
558
+ resulting object does not live anywhere in the class' mro (including
559
+ metaclasses) then the object is looked up in the defining class's
560
+ dict (found by walking the mro).
561
+
562
+ If one of the items in dir(cls) is stored in the metaclass it will now
563
+ be discovered and not have None be listed as the class in which it was
564
+ defined. Any items whose home class cannot be discovered are skipped.
565
+ """
566
+
567
+ mro = getmro(cls)
568
+ metamro = getmro(type(cls)) # for attributes stored in the metaclass
569
+ metamro = tuple(cls for cls in metamro if cls not in (type, object))
570
+ class_bases = (cls,) + mro
571
+ all_bases = class_bases + metamro
572
+ names = dir(cls)
573
+ # :dd any DynamicClassAttributes to the list of names;
574
+ # this may result in duplicate entries if, for example, a virtual
575
+ # attribute with the same name as a DynamicClassAttribute exists.
576
+ for base in mro:
577
+ for k, v in base.__dict__.items():
578
+ if isinstance(v, types.DynamicClassAttribute) and v.fget is not None:
579
+ names.append(k)
580
+ result = []
581
+ processed = set()
582
+
583
+ for name in names:
584
+ # Get the object associated with the name, and where it was defined.
585
+ # Normal objects will be looked up with both getattr and directly in
586
+ # its class' dict (in case getattr fails [bug #1785], and also to look
587
+ # for a docstring).
588
+ # For DynamicClassAttributes on the second pass we only look in the
589
+ # class's dict.
590
+ #
591
+ # Getting an obj from the __dict__ sometimes reveals more than
592
+ # using getattr. Static and class methods are dramatic examples.
593
+ homecls = None
594
+ get_obj = None
595
+ dict_obj = None
596
+ if name not in processed:
597
+ try:
598
+ if name == '__dict__':
599
+ raise Exception("__dict__ is special, don't want the proxy")
600
+ get_obj = getattr(cls, name)
601
+ except Exception:
602
+ pass
603
+ else:
604
+ homecls = getattr(get_obj, "__objclass__", homecls)
605
+ if homecls not in class_bases:
606
+ # if the resulting object does not live somewhere in the
607
+ # mro, drop it and search the mro manually
608
+ homecls = None
609
+ last_cls = None
610
+ # first look in the classes
611
+ for srch_cls in class_bases:
612
+ srch_obj = getattr(srch_cls, name, None)
613
+ if srch_obj is get_obj:
614
+ last_cls = srch_cls
615
+ # then check the metaclasses
616
+ for srch_cls in metamro:
617
+ try:
618
+ srch_obj = srch_cls.__getattr__(cls, name)
619
+ except AttributeError:
620
+ continue
621
+ if srch_obj is get_obj:
622
+ last_cls = srch_cls
623
+ if last_cls is not None:
624
+ homecls = last_cls
625
+ for base in all_bases:
626
+ if name in base.__dict__:
627
+ dict_obj = base.__dict__[name]
628
+ if homecls not in metamro:
629
+ homecls = base
630
+ break
631
+ if homecls is None:
632
+ # unable to locate the attribute anywhere, most likely due to
633
+ # buggy custom __dir__; discard and move on
634
+ continue
635
+ obj = get_obj if get_obj is not None else dict_obj
636
+ # Classify the object or its descriptor.
637
+ if isinstance(dict_obj, (staticmethod, types.BuiltinMethodType)):
638
+ kind = "static method"
639
+ obj = dict_obj
640
+ elif isinstance(dict_obj, (classmethod, types.ClassMethodDescriptorType)):
641
+ kind = "class method"
642
+ obj = dict_obj
643
+ elif isinstance(dict_obj, property):
644
+ kind = "property"
645
+ obj = dict_obj
646
+ elif isroutine(obj):
647
+ kind = "method"
648
+ else:
649
+ kind = "data"
650
+ result.append(Attribute(name, kind, homecls, obj))
651
+ processed.add(name)
652
+ return result
653
+
654
+ # ----------------------------------------------------------- class helpers
655
+
656
+ def getmro(cls):
657
+ "Return tuple of base classes (including cls) in method resolution order."
658
+ return cls.__mro__
659
+
660
+ # -------------------------------------------------------- function helpers
661
+
662
+ def unwrap(func, *, stop=None):
663
+ """Get the object wrapped by *func*.
664
+
665
+ Follows the chain of :attr:`__wrapped__` attributes returning the last
666
+ object in the chain.
667
+
668
+ *stop* is an optional callback accepting an object in the wrapper chain
669
+ as its sole argument that allows the unwrapping to be terminated early if
670
+ the callback returns a true value. If the callback never returns a true
671
+ value, the last object in the chain is returned as usual. For example,
672
+ :func:`signature` uses this to stop unwrapping if any object in the
673
+ chain has a ``__signature__`` attribute defined.
674
+
675
+ :exc:`ValueError` is raised if a cycle is encountered.
676
+
677
+ """
678
+ f = func # remember the original func for error reporting
679
+ # Memoise by id to tolerate non-hashable objects, but store objects to
680
+ # ensure they aren't destroyed, which would allow their IDs to be reused.
681
+ memo = {id(f): f}
682
+ recursion_limit = sys.getrecursionlimit()
683
+ while not isinstance(func, type) and hasattr(func, '__wrapped__'):
684
+ if stop is not None and stop(func):
685
+ break
686
+ func = func.__wrapped__
687
+ id_func = id(func)
688
+ if (id_func in memo) or (len(memo) >= recursion_limit):
689
+ raise ValueError('wrapper loop when unwrapping {!r}'.format(f))
690
+ memo[id_func] = func
691
+ return func
692
+
693
+ # -------------------------------------------------- source code extraction
694
+ def indentsize(line):
695
+ """Return the indent size, in spaces, at the start of a line of text."""
696
+ expline = line.expandtabs()
697
+ return len(expline) - len(expline.lstrip())
698
+
699
+ def _findclass(func):
700
+ cls = sys.modules.get(func.__module__)
701
+ if cls is None:
702
+ return None
703
+ for name in func.__qualname__.split('.')[:-1]:
704
+ cls = getattr(cls, name)
705
+ if not isclass(cls):
706
+ return None
707
+ return cls
708
+
709
+ def _finddoc(obj):
710
+ if isclass(obj):
711
+ for base in obj.__mro__:
712
+ if base is not object:
713
+ try:
714
+ doc = base.__doc__
715
+ except AttributeError:
716
+ continue
717
+ if doc is not None:
718
+ return doc
719
+ return None
720
+
721
+ if ismethod(obj):
722
+ name = obj.__func__.__name__
723
+ self = obj.__self__
724
+ if (isclass(self) and
725
+ getattr(getattr(self, name, None), '__func__') is obj.__func__):
726
+ # classmethod
727
+ cls = self
728
+ else:
729
+ cls = self.__class__
730
+ elif isfunction(obj):
731
+ name = obj.__name__
732
+ cls = _findclass(obj)
733
+ if cls is None or getattr(cls, name) is not obj:
734
+ return None
735
+ elif isbuiltin(obj):
736
+ name = obj.__name__
737
+ self = obj.__self__
738
+ if (isclass(self) and
739
+ self.__qualname__ + '.' + name == obj.__qualname__):
740
+ # classmethod
741
+ cls = self
742
+ else:
743
+ cls = self.__class__
744
+ # Should be tested before isdatadescriptor().
745
+ elif isinstance(obj, property):
746
+ name = obj.__name__
747
+ cls = _findclass(obj.fget)
748
+ if cls is None or getattr(cls, name) is not obj:
749
+ return None
750
+ elif ismethoddescriptor(obj) or isdatadescriptor(obj):
751
+ name = obj.__name__
752
+ cls = obj.__objclass__
753
+ if getattr(cls, name) is not obj:
754
+ return None
755
+ if ismemberdescriptor(obj):
756
+ slots = getattr(cls, '__slots__', None)
757
+ if isinstance(slots, dict) and name in slots:
758
+ return slots[name]
759
+ else:
760
+ return None
761
+ for base in cls.__mro__:
762
+ try:
763
+ doc = getattr(base, name).__doc__
764
+ except AttributeError:
765
+ continue
766
+ if doc is not None:
767
+ return doc
768
+ return None
769
+
770
+ def getdoc(object):
771
+ """Get the documentation string for an object.
772
+
773
+ All tabs are expanded to spaces. To clean up docstrings that are
774
+ indented to line up with blocks of code, any whitespace than can be
775
+ uniformly removed from the second line onwards is removed."""
776
+ try:
777
+ doc = object.__doc__
778
+ except AttributeError:
779
+ return None
780
+ if doc is None:
781
+ try:
782
+ doc = _finddoc(object)
783
+ except (AttributeError, TypeError):
784
+ return None
785
+ if not isinstance(doc, str):
786
+ return None
787
+ return cleandoc(doc)
788
+
789
+ def cleandoc(doc):
790
+ """Clean up indentation from docstrings.
791
+
792
+ Any whitespace that can be uniformly removed from the second line
793
+ onwards is removed."""
794
+ lines = doc.expandtabs().split('\n')
795
+
796
+ # Find minimum indentation of any non-blank lines after first line.
797
+ margin = sys.maxsize
798
+ for line in lines[1:]:
799
+ content = len(line.lstrip(' '))
800
+ if content:
801
+ indent = len(line) - content
802
+ margin = min(margin, indent)
803
+ # Remove indentation.
804
+ if lines:
805
+ lines[0] = lines[0].lstrip(' ')
806
+ if margin < sys.maxsize:
807
+ for i in range(1, len(lines)):
808
+ lines[i] = lines[i][margin:]
809
+ # Remove any trailing or leading blank lines.
810
+ while lines and not lines[-1]:
811
+ lines.pop()
812
+ while lines and not lines[0]:
813
+ lines.pop(0)
814
+ return '\n'.join(lines)
815
+
816
+
817
+ def getfile(object):
818
+ """Work out which source or compiled file an object was defined in."""
819
+ if ismodule(object):
820
+ if getattr(object, '__file__', None):
821
+ return object.__file__
822
+ raise TypeError('{!r} is a built-in module'.format(object))
823
+ if isclass(object):
824
+ if hasattr(object, '__module__'):
825
+ module = sys.modules.get(object.__module__)
826
+ if getattr(module, '__file__', None):
827
+ return module.__file__
828
+ if object.__module__ == '__main__':
829
+ raise OSError('source code not available')
830
+ raise TypeError('{!r} is a built-in class'.format(object))
831
+ if ismethod(object):
832
+ object = object.__func__
833
+ if isfunction(object):
834
+ object = object.__code__
835
+ if istraceback(object):
836
+ object = object.tb_frame
837
+ if isframe(object):
838
+ object = object.f_code
839
+ if iscode(object):
840
+ return object.co_filename
841
+ raise TypeError('module, class, method, function, traceback, frame, or '
842
+ 'code object was expected, got {}'.format(
843
+ type(object).__name__))
844
+
845
+ def getmodulename(path):
846
+ """Return the module name for a given file, or None."""
847
+ fname = os.path.basename(path)
848
+ # Check for paths that look like an actual module file
849
+ suffixes = [(-len(suffix), suffix)
850
+ for suffix in importlib.machinery.all_suffixes()]
851
+ suffixes.sort() # try longest suffixes first, in case they overlap
852
+ for neglen, suffix in suffixes:
853
+ if fname.endswith(suffix):
854
+ return fname[:neglen]
855
+ return None
856
+
857
+ def getsourcefile(object):
858
+ """Return the filename that can be used to locate an object's source.
859
+ Return None if no way can be identified to get the source.
860
+ """
861
+ filename = getfile(object)
862
+ all_bytecode_suffixes = importlib.machinery.BYTECODE_SUFFIXES[:]
863
+ if any(filename.endswith(s) for s in all_bytecode_suffixes):
864
+ filename = (os.path.splitext(filename)[0] +
865
+ importlib.machinery.SOURCE_SUFFIXES[0])
866
+ elif any(filename.endswith(s) for s in
867
+ importlib.machinery.EXTENSION_SUFFIXES):
868
+ return None
869
+ elif filename.endswith(".fwork"):
870
+ # Apple mobile framework markers are another type of non-source file
871
+ return None
872
+
873
+ # return a filename found in the linecache even if it doesn't exist on disk
874
+ if filename in linecache.cache:
875
+ return filename
876
+ if os.path.exists(filename):
877
+ return filename
878
+ # only return a non-existent filename if the module has a PEP 302 loader
879
+ module = getmodule(object, filename)
880
+ if getattr(module, '__loader__', None) is not None:
881
+ return filename
882
+ elif getattr(getattr(module, "__spec__", None), "loader", None) is not None:
883
+ return filename
884
+
885
+ def getabsfile(object, _filename=None):
886
+ """Return an absolute path to the source or compiled file for an object.
887
+
888
+ The idea is for each object to have a unique origin, so this routine
889
+ normalizes the result as much as possible."""
890
+ if _filename is None:
891
+ _filename = getsourcefile(object) or getfile(object)
892
+ return os.path.normcase(os.path.abspath(_filename))
893
+
894
+ modulesbyfile = {}
895
+ _filesbymodname = {}
896
+
897
+ def getmodule(object, _filename=None):
898
+ """Return the module an object was defined in, or None if not found."""
899
+ if ismodule(object):
900
+ return object
901
+ if hasattr(object, '__module__'):
902
+ return sys.modules.get(object.__module__)
903
+
904
+ # Try the filename to modulename cache
905
+ if _filename is not None and _filename in modulesbyfile:
906
+ return sys.modules.get(modulesbyfile[_filename])
907
+ # Try the cache again with the absolute file name
908
+ try:
909
+ file = getabsfile(object, _filename)
910
+ except (TypeError, FileNotFoundError):
911
+ return None
912
+ if file in modulesbyfile:
913
+ return sys.modules.get(modulesbyfile[file])
914
+ # Update the filename to module name cache and check yet again
915
+ # Copy sys.modules in order to cope with changes while iterating
916
+ for modname, module in sys.modules.copy().items():
917
+ if ismodule(module) and hasattr(module, '__file__'):
918
+ f = module.__file__
919
+ if f == _filesbymodname.get(modname, None):
920
+ # Have already mapped this module, so skip it
921
+ continue
922
+ _filesbymodname[modname] = f
923
+ f = getabsfile(module)
924
+ # Always map to the name the module knows itself by
925
+ modulesbyfile[f] = modulesbyfile[
926
+ os.path.realpath(f)] = module.__name__
927
+ if file in modulesbyfile:
928
+ return sys.modules.get(modulesbyfile[file])
929
+ # Check the main module
930
+ main = sys.modules['__main__']
931
+ if not hasattr(object, '__name__'):
932
+ return None
933
+ if hasattr(main, object.__name__):
934
+ mainobject = getattr(main, object.__name__)
935
+ if mainobject is object:
936
+ return main
937
+ # Check builtins
938
+ builtin = sys.modules['builtins']
939
+ if hasattr(builtin, object.__name__):
940
+ builtinobject = getattr(builtin, object.__name__)
941
+ if builtinobject is object:
942
+ return builtin
943
+
944
+
945
+ class ClassFoundException(Exception):
946
+ pass
947
+
948
+
949
+ def findsource(object):
950
+ """Return the entire source file and starting line number for an object.
951
+
952
+ The argument may be a module, class, method, function, traceback, frame,
953
+ or code object. The source code is returned as a list of all the lines
954
+ in the file and the line number indexes a line in that list. An OSError
955
+ is raised if the source code cannot be retrieved."""
956
+
957
+ file = getsourcefile(object)
958
+ if file:
959
+ # Invalidate cache if needed.
960
+ linecache.checkcache(file)
961
+ else:
962
+ file = getfile(object)
963
+ # Allow filenames in form of "<something>" to pass through.
964
+ # `doctest` monkeypatches `linecache` module to enable
965
+ # inspection, so let `linecache.getlines` to be called.
966
+ if (not (file.startswith('<') and file.endswith('>'))) or file.endswith('.fwork'):
967
+ raise OSError('source code not available')
968
+
969
+ module = getmodule(object, file)
970
+ if module:
971
+ lines = linecache.getlines(file, module.__dict__)
972
+ if not lines and file.startswith('<') and hasattr(object, "__code__"):
973
+ lines = linecache._getlines_from_code(object.__code__)
974
+ else:
975
+ lines = linecache.getlines(file)
976
+ if not lines:
977
+ raise OSError('could not get source code')
978
+
979
+ if ismodule(object):
980
+ return lines, 0
981
+
982
+ if isclass(object):
983
+ try:
984
+ lnum = vars(object)['__firstlineno__'] - 1
985
+ except (TypeError, KeyError):
986
+ raise OSError('source code not available')
987
+ if lnum >= len(lines):
988
+ raise OSError('lineno is out of bounds')
989
+ return lines, lnum
990
+
991
+ if ismethod(object):
992
+ object = object.__func__
993
+ if isfunction(object):
994
+ object = object.__code__
995
+ if istraceback(object):
996
+ object = object.tb_frame
997
+ if isframe(object):
998
+ object = object.f_code
999
+ if iscode(object):
1000
+ if not hasattr(object, 'co_firstlineno'):
1001
+ raise OSError('could not find function definition')
1002
+ lnum = object.co_firstlineno - 1
1003
+ if lnum >= len(lines):
1004
+ raise OSError('lineno is out of bounds')
1005
+ return lines, lnum
1006
+ raise OSError('could not find code object')
1007
+
1008
+ def getcomments(object):
1009
+ """Get lines of comments immediately preceding an object's source code.
1010
+
1011
+ Returns None when source can't be found.
1012
+ """
1013
+ try:
1014
+ lines, lnum = findsource(object)
1015
+ except (OSError, TypeError):
1016
+ return None
1017
+
1018
+ if ismodule(object):
1019
+ # Look for a comment block at the top of the file.
1020
+ start = 0
1021
+ if lines and lines[0][:2] == '#!': start = 1
1022
+ while start < len(lines) and lines[start].strip() in ('', '#'):
1023
+ start = start + 1
1024
+ if start < len(lines) and lines[start][:1] == '#':
1025
+ comments = []
1026
+ end = start
1027
+ while end < len(lines) and lines[end][:1] == '#':
1028
+ comments.append(lines[end].expandtabs())
1029
+ end = end + 1
1030
+ return ''.join(comments)
1031
+
1032
+ # Look for a preceding block of comments at the same indentation.
1033
+ elif lnum > 0:
1034
+ indent = indentsize(lines[lnum])
1035
+ end = lnum - 1
1036
+ if end >= 0 and lines[end].lstrip()[:1] == '#' and \
1037
+ indentsize(lines[end]) == indent:
1038
+ comments = [lines[end].expandtabs().lstrip()]
1039
+ if end > 0:
1040
+ end = end - 1
1041
+ comment = lines[end].expandtabs().lstrip()
1042
+ while comment[:1] == '#' and indentsize(lines[end]) == indent:
1043
+ comments[:0] = [comment]
1044
+ end = end - 1
1045
+ if end < 0: break
1046
+ comment = lines[end].expandtabs().lstrip()
1047
+ while comments and comments[0].strip() == '#':
1048
+ comments[:1] = []
1049
+ while comments and comments[-1].strip() == '#':
1050
+ comments[-1:] = []
1051
+ return ''.join(comments)
1052
+
1053
+ class EndOfBlock(Exception): pass
1054
+
1055
+ class BlockFinder:
1056
+ """Provide a tokeneater() method to detect the end of a code block."""
1057
+ def __init__(self):
1058
+ self.indent = 0
1059
+ self.singleline = False
1060
+ self.started = False
1061
+ self.passline = False
1062
+ self.indecorator = False
1063
+ self.last = 1
1064
+ self.body_col0 = None
1065
+
1066
+ def tokeneater(self, type, token, srowcol, erowcol, line):
1067
+ if not self.started and not self.indecorator:
1068
+ if type in (tokenize.INDENT, tokenize.COMMENT, tokenize.NL):
1069
+ pass
1070
+ elif token == "async":
1071
+ pass
1072
+ # skip any decorators
1073
+ elif token == "@":
1074
+ self.indecorator = True
1075
+ else:
1076
+ # For "def" and "class" scan to the end of the block.
1077
+ # For "lambda" and generator expression scan to
1078
+ # the end of the logical line.
1079
+ self.singleline = token not in ("def", "class")
1080
+ self.started = True
1081
+ self.passline = True # skip to the end of the line
1082
+ elif type == tokenize.NEWLINE:
1083
+ self.passline = False # stop skipping when a NEWLINE is seen
1084
+ self.last = srowcol[0]
1085
+ if self.singleline:
1086
+ raise EndOfBlock
1087
+ # hitting a NEWLINE when in a decorator without args
1088
+ # ends the decorator
1089
+ if self.indecorator:
1090
+ self.indecorator = False
1091
+ elif self.passline:
1092
+ pass
1093
+ elif type == tokenize.INDENT:
1094
+ if self.body_col0 is None and self.started:
1095
+ self.body_col0 = erowcol[1]
1096
+ self.indent = self.indent + 1
1097
+ self.passline = True
1098
+ elif type == tokenize.DEDENT:
1099
+ self.indent = self.indent - 1
1100
+ # the end of matching indent/dedent pairs end a block
1101
+ # (note that this only works for "def"/"class" blocks,
1102
+ # not e.g. for "if: else:" or "try: finally:" blocks)
1103
+ if self.indent <= 0:
1104
+ raise EndOfBlock
1105
+ elif type == tokenize.COMMENT:
1106
+ if self.body_col0 is not None and srowcol[1] >= self.body_col0:
1107
+ # Include comments if indented at least as much as the block
1108
+ self.last = srowcol[0]
1109
+ elif self.indent == 0 and type not in (tokenize.COMMENT, tokenize.NL):
1110
+ # any other token on the same indentation level end the previous
1111
+ # block as well, except the pseudo-tokens COMMENT and NL.
1112
+ raise EndOfBlock
1113
+
1114
+ def getblock(lines):
1115
+ """Extract the block of code at the top of the given list of lines."""
1116
+ blockfinder = BlockFinder()
1117
+ try:
1118
+ tokens = tokenize.generate_tokens(iter(lines).__next__)
1119
+ for _token in tokens:
1120
+ blockfinder.tokeneater(*_token)
1121
+ except (EndOfBlock, IndentationError):
1122
+ pass
1123
+ except SyntaxError as e:
1124
+ if "unmatched" not in e.msg:
1125
+ raise e from None
1126
+ _, *_token_info = _token
1127
+ try:
1128
+ blockfinder.tokeneater(tokenize.NEWLINE, *_token_info)
1129
+ except (EndOfBlock, IndentationError):
1130
+ pass
1131
+ return lines[:blockfinder.last]
1132
+
1133
+ def getsourcelines(object):
1134
+ """Return a list of source lines and starting line number for an object.
1135
+
1136
+ The argument may be a module, class, method, function, traceback, frame,
1137
+ or code object. The source code is returned as a list of the lines
1138
+ corresponding to the object and the line number indicates where in the
1139
+ original source file the first line of code was found. An OSError is
1140
+ raised if the source code cannot be retrieved."""
1141
+ object = unwrap(object)
1142
+ lines, lnum = findsource(object)
1143
+
1144
+ if istraceback(object):
1145
+ object = object.tb_frame
1146
+
1147
+ # for module or frame that corresponds to module, return all source lines
1148
+ if (ismodule(object) or
1149
+ (isframe(object) and object.f_code.co_name == "<module>")):
1150
+ return lines, 0
1151
+ else:
1152
+ return getblock(lines[lnum:]), lnum + 1
1153
+
1154
+ def getsource(object):
1155
+ """Return the text of the source code for an object.
1156
+
1157
+ The argument may be a module, class, method, function, traceback, frame,
1158
+ or code object. The source code is returned as a single string. An
1159
+ OSError is raised if the source code cannot be retrieved."""
1160
+ lines, lnum = getsourcelines(object)
1161
+ return ''.join(lines)
1162
+
1163
+ # --------------------------------------------------- class tree extraction
1164
+ def walktree(classes, children, parent):
1165
+ """Recursive helper function for getclasstree()."""
1166
+ results = []
1167
+ classes.sort(key=attrgetter('__module__', '__name__'))
1168
+ for c in classes:
1169
+ results.append((c, c.__bases__))
1170
+ if c in children:
1171
+ results.append(walktree(children[c], children, c))
1172
+ return results
1173
+
1174
+ def getclasstree(classes, unique=False):
1175
+ """Arrange the given list of classes into a hierarchy of nested lists.
1176
+
1177
+ Where a nested list appears, it contains classes derived from the class
1178
+ whose entry immediately precedes the list. Each entry is a 2-tuple
1179
+ containing a class and a tuple of its base classes. If the 'unique'
1180
+ argument is true, exactly one entry appears in the returned structure
1181
+ for each class in the given list. Otherwise, classes using multiple
1182
+ inheritance and their descendants will appear multiple times."""
1183
+ children = {}
1184
+ roots = []
1185
+ for c in classes:
1186
+ if c.__bases__:
1187
+ for parent in c.__bases__:
1188
+ if parent not in children:
1189
+ children[parent] = []
1190
+ if c not in children[parent]:
1191
+ children[parent].append(c)
1192
+ if unique and parent in classes: break
1193
+ elif c not in roots:
1194
+ roots.append(c)
1195
+ for parent in children:
1196
+ if parent not in classes:
1197
+ roots.append(parent)
1198
+ return walktree(roots, children, None)
1199
+
1200
+ # ------------------------------------------------ argument list extraction
1201
+ Arguments = namedtuple('Arguments', 'args, varargs, varkw')
1202
+
1203
+ def getargs(co):
1204
+ """Get information about the arguments accepted by a code object.
1205
+
1206
+ Three things are returned: (args, varargs, varkw), where
1207
+ 'args' is the list of argument names. Keyword-only arguments are
1208
+ appended. 'varargs' and 'varkw' are the names of the * and **
1209
+ arguments or None."""
1210
+ if not iscode(co):
1211
+ raise TypeError('{!r} is not a code object'.format(co))
1212
+
1213
+ names = co.co_varnames
1214
+ nargs = co.co_argcount
1215
+ nkwargs = co.co_kwonlyargcount
1216
+ args = list(names[:nargs])
1217
+ kwonlyargs = list(names[nargs:nargs+nkwargs])
1218
+
1219
+ nargs += nkwargs
1220
+ varargs = None
1221
+ if co.co_flags & CO_VARARGS:
1222
+ varargs = co.co_varnames[nargs]
1223
+ nargs = nargs + 1
1224
+ varkw = None
1225
+ if co.co_flags & CO_VARKEYWORDS:
1226
+ varkw = co.co_varnames[nargs]
1227
+ return Arguments(args + kwonlyargs, varargs, varkw)
1228
+
1229
+
1230
+ FullArgSpec = namedtuple('FullArgSpec',
1231
+ 'args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations')
1232
+
1233
+ def getfullargspec(func):
1234
+ """Get the names and default values of a callable object's parameters.
1235
+
1236
+ A tuple of seven things is returned:
1237
+ (args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations).
1238
+ 'args' is a list of the parameter names.
1239
+ 'varargs' and 'varkw' are the names of the * and ** parameters or None.
1240
+ 'defaults' is an n-tuple of the default values of the last n parameters.
1241
+ 'kwonlyargs' is a list of keyword-only parameter names.
1242
+ 'kwonlydefaults' is a dictionary mapping names from kwonlyargs to defaults.
1243
+ 'annotations' is a dictionary mapping parameter names to annotations.
1244
+
1245
+ Notable differences from inspect.signature():
1246
+ - the "self" parameter is always reported, even for bound methods
1247
+ - wrapper chains defined by __wrapped__ *not* unwrapped automatically
1248
+ """
1249
+ try:
1250
+ # Re: `skip_bound_arg=False`
1251
+ #
1252
+ # There is a notable difference in behaviour between getfullargspec
1253
+ # and Signature: the former always returns 'self' parameter for bound
1254
+ # methods, whereas the Signature always shows the actual calling
1255
+ # signature of the passed object.
1256
+ #
1257
+ # To simulate this behaviour, we "unbind" bound methods, to trick
1258
+ # inspect.signature to always return their first parameter ("self",
1259
+ # usually)
1260
+
1261
+ # Re: `follow_wrapper_chains=False`
1262
+ #
1263
+ # getfullargspec() historically ignored __wrapped__ attributes,
1264
+ # so we ensure that remains the case in 3.3+
1265
+
1266
+ sig = _signature_from_callable(func,
1267
+ follow_wrapper_chains=False,
1268
+ skip_bound_arg=False,
1269
+ sigcls=Signature,
1270
+ eval_str=False)
1271
+ except Exception as ex:
1272
+ # Most of the times 'signature' will raise ValueError.
1273
+ # But, it can also raise AttributeError, and, maybe something
1274
+ # else. So to be fully backwards compatible, we catch all
1275
+ # possible exceptions here, and reraise a TypeError.
1276
+ raise TypeError('unsupported callable') from ex
1277
+
1278
+ args = []
1279
+ varargs = None
1280
+ varkw = None
1281
+ posonlyargs = []
1282
+ kwonlyargs = []
1283
+ annotations = {}
1284
+ defaults = ()
1285
+ kwdefaults = {}
1286
+
1287
+ if sig.return_annotation is not sig.empty:
1288
+ annotations['return'] = sig.return_annotation
1289
+
1290
+ for param in sig.parameters.values():
1291
+ kind = param.kind
1292
+ name = param.name
1293
+
1294
+ if kind is _POSITIONAL_ONLY:
1295
+ posonlyargs.append(name)
1296
+ if param.default is not param.empty:
1297
+ defaults += (param.default,)
1298
+ elif kind is _POSITIONAL_OR_KEYWORD:
1299
+ args.append(name)
1300
+ if param.default is not param.empty:
1301
+ defaults += (param.default,)
1302
+ elif kind is _VAR_POSITIONAL:
1303
+ varargs = name
1304
+ elif kind is _KEYWORD_ONLY:
1305
+ kwonlyargs.append(name)
1306
+ if param.default is not param.empty:
1307
+ kwdefaults[name] = param.default
1308
+ elif kind is _VAR_KEYWORD:
1309
+ varkw = name
1310
+
1311
+ if param.annotation is not param.empty:
1312
+ annotations[name] = param.annotation
1313
+
1314
+ if not kwdefaults:
1315
+ # compatibility with 'func.__kwdefaults__'
1316
+ kwdefaults = None
1317
+
1318
+ if not defaults:
1319
+ # compatibility with 'func.__defaults__'
1320
+ defaults = None
1321
+
1322
+ return FullArgSpec(posonlyargs + args, varargs, varkw, defaults,
1323
+ kwonlyargs, kwdefaults, annotations)
1324
+
1325
+
1326
+ ArgInfo = namedtuple('ArgInfo', 'args varargs keywords locals')
1327
+
1328
+ def getargvalues(frame):
1329
+ """Get information about arguments passed into a particular frame.
1330
+
1331
+ A tuple of four things is returned: (args, varargs, varkw, locals).
1332
+ 'args' is a list of the argument names.
1333
+ 'varargs' and 'varkw' are the names of the * and ** arguments or None.
1334
+ 'locals' is the locals dictionary of the given frame."""
1335
+ args, varargs, varkw = getargs(frame.f_code)
1336
+ return ArgInfo(args, varargs, varkw, frame.f_locals)
1337
+
1338
+ def formatannotation(annotation, base_module=None, *, quote_annotation_strings=True):
1339
+ if not quote_annotation_strings and isinstance(annotation, str):
1340
+ return annotation
1341
+ if getattr(annotation, '__module__', None) == 'typing':
1342
+ def repl(match):
1343
+ text = match.group()
1344
+ return text.removeprefix('typing.')
1345
+ return re.sub(r'[\w\.]+', repl, repr(annotation))
1346
+ if isinstance(annotation, types.GenericAlias):
1347
+ return str(annotation)
1348
+ if isinstance(annotation, type):
1349
+ if annotation.__module__ in ('builtins', base_module):
1350
+ return annotation.__qualname__
1351
+ return annotation.__module__+'.'+annotation.__qualname__
1352
+ if isinstance(annotation, ForwardRef):
1353
+ return annotation.__forward_arg__
1354
+ return repr(annotation)
1355
+
1356
+ def formatannotationrelativeto(object):
1357
+ module = getattr(object, '__module__', None)
1358
+ def _formatannotation(annotation):
1359
+ return formatannotation(annotation, module)
1360
+ return _formatannotation
1361
+
1362
+
1363
+ def formatargvalues(args, varargs, varkw, locals,
1364
+ formatarg=str,
1365
+ formatvarargs=lambda name: '*' + name,
1366
+ formatvarkw=lambda name: '**' + name,
1367
+ formatvalue=lambda value: '=' + repr(value)):
1368
+ """Format an argument spec from the 4 values returned by getargvalues.
1369
+
1370
+ The first four arguments are (args, varargs, varkw, locals). The
1371
+ next four arguments are the corresponding optional formatting functions
1372
+ that are called to turn names and values into strings. The ninth
1373
+ argument is an optional function to format the sequence of arguments."""
1374
+ def convert(name, locals=locals,
1375
+ formatarg=formatarg, formatvalue=formatvalue):
1376
+ return formatarg(name) + formatvalue(locals[name])
1377
+ specs = []
1378
+ for i in range(len(args)):
1379
+ specs.append(convert(args[i]))
1380
+ if varargs:
1381
+ specs.append(formatvarargs(varargs) + formatvalue(locals[varargs]))
1382
+ if varkw:
1383
+ specs.append(formatvarkw(varkw) + formatvalue(locals[varkw]))
1384
+ return '(' + ', '.join(specs) + ')'
1385
+
1386
+ def _missing_arguments(f_name, argnames, pos, values):
1387
+ names = [repr(name) for name in argnames if name not in values]
1388
+ missing = len(names)
1389
+ if missing == 1:
1390
+ s = names[0]
1391
+ elif missing == 2:
1392
+ s = "{} and {}".format(*names)
1393
+ else:
1394
+ tail = ", {} and {}".format(*names[-2:])
1395
+ del names[-2:]
1396
+ s = ", ".join(names) + tail
1397
+ raise TypeError("%s() missing %i required %s argument%s: %s" %
1398
+ (f_name, missing,
1399
+ "positional" if pos else "keyword-only",
1400
+ "" if missing == 1 else "s", s))
1401
+
1402
+ def _too_many(f_name, args, kwonly, varargs, defcount, given, values):
1403
+ atleast = len(args) - defcount
1404
+ kwonly_given = len([arg for arg in kwonly if arg in values])
1405
+ if varargs:
1406
+ plural = atleast != 1
1407
+ sig = "at least %d" % (atleast,)
1408
+ elif defcount:
1409
+ plural = True
1410
+ sig = "from %d to %d" % (atleast, len(args))
1411
+ else:
1412
+ plural = len(args) != 1
1413
+ sig = str(len(args))
1414
+ kwonly_sig = ""
1415
+ if kwonly_given:
1416
+ msg = " positional argument%s (and %d keyword-only argument%s)"
1417
+ kwonly_sig = (msg % ("s" if given != 1 else "", kwonly_given,
1418
+ "s" if kwonly_given != 1 else ""))
1419
+ raise TypeError("%s() takes %s positional argument%s but %d%s %s given" %
1420
+ (f_name, sig, "s" if plural else "", given, kwonly_sig,
1421
+ "was" if given == 1 and not kwonly_given else "were"))
1422
+
1423
+ def getcallargs(func, /, *positional, **named):
1424
+ """Get the mapping of arguments to values.
1425
+
1426
+ A dict is returned, with keys the function argument names (including the
1427
+ names of the * and ** arguments, if any), and values the respective bound
1428
+ values from 'positional' and 'named'."""
1429
+ spec = getfullargspec(func)
1430
+ args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, ann = spec
1431
+ f_name = func.__name__
1432
+ arg2value = {}
1433
+
1434
+
1435
+ if ismethod(func) and func.__self__ is not None:
1436
+ # implicit 'self' (or 'cls' for classmethods) argument
1437
+ positional = (func.__self__,) + positional
1438
+ num_pos = len(positional)
1439
+ num_args = len(args)
1440
+ num_defaults = len(defaults) if defaults else 0
1441
+
1442
+ n = min(num_pos, num_args)
1443
+ for i in range(n):
1444
+ arg2value[args[i]] = positional[i]
1445
+ if varargs:
1446
+ arg2value[varargs] = tuple(positional[n:])
1447
+ possible_kwargs = set(args + kwonlyargs)
1448
+ if varkw:
1449
+ arg2value[varkw] = {}
1450
+ for kw, value in named.items():
1451
+ if kw not in possible_kwargs:
1452
+ if not varkw:
1453
+ raise TypeError("%s() got an unexpected keyword argument %r" %
1454
+ (f_name, kw))
1455
+ arg2value[varkw][kw] = value
1456
+ continue
1457
+ if kw in arg2value:
1458
+ raise TypeError("%s() got multiple values for argument %r" %
1459
+ (f_name, kw))
1460
+ arg2value[kw] = value
1461
+ if num_pos > num_args and not varargs:
1462
+ _too_many(f_name, args, kwonlyargs, varargs, num_defaults,
1463
+ num_pos, arg2value)
1464
+ if num_pos < num_args:
1465
+ req = args[:num_args - num_defaults]
1466
+ for arg in req:
1467
+ if arg not in arg2value:
1468
+ _missing_arguments(f_name, req, True, arg2value)
1469
+ for i, arg in enumerate(args[num_args - num_defaults:]):
1470
+ if arg not in arg2value:
1471
+ arg2value[arg] = defaults[i]
1472
+ missing = 0
1473
+ for kwarg in kwonlyargs:
1474
+ if kwarg not in arg2value:
1475
+ if kwonlydefaults and kwarg in kwonlydefaults:
1476
+ arg2value[kwarg] = kwonlydefaults[kwarg]
1477
+ else:
1478
+ missing += 1
1479
+ if missing:
1480
+ _missing_arguments(f_name, kwonlyargs, False, arg2value)
1481
+ return arg2value
1482
+
1483
+ ClosureVars = namedtuple('ClosureVars', 'nonlocals globals builtins unbound')
1484
+
1485
+ def getclosurevars(func):
1486
+ """
1487
+ Get the mapping of free variables to their current values.
1488
+
1489
+ Returns a named tuple of dicts mapping the current nonlocal, global
1490
+ and builtin references as seen by the body of the function. A final
1491
+ set of unbound names that could not be resolved is also provided.
1492
+ """
1493
+
1494
+ if ismethod(func):
1495
+ func = func.__func__
1496
+
1497
+ if not isfunction(func):
1498
+ raise TypeError("{!r} is not a Python function".format(func))
1499
+
1500
+ code = func.__code__
1501
+ # Nonlocal references are named in co_freevars and resolved
1502
+ # by looking them up in __closure__ by positional index
1503
+ if func.__closure__ is None:
1504
+ nonlocal_vars = {}
1505
+ else:
1506
+ nonlocal_vars = {
1507
+ var : cell.cell_contents
1508
+ for var, cell in zip(code.co_freevars, func.__closure__)
1509
+ }
1510
+
1511
+ # Global and builtin references are named in co_names and resolved
1512
+ # by looking them up in __globals__ or __builtins__
1513
+ global_ns = func.__globals__
1514
+ builtin_ns = global_ns.get("__builtins__", builtins.__dict__)
1515
+ if ismodule(builtin_ns):
1516
+ builtin_ns = builtin_ns.__dict__
1517
+ global_vars = {}
1518
+ builtin_vars = {}
1519
+ unbound_names = set()
1520
+ global_names = set()
1521
+ for instruction in dis.get_instructions(code):
1522
+ opname = instruction.opname
1523
+ name = instruction.argval
1524
+ if opname == "LOAD_ATTR":
1525
+ unbound_names.add(name)
1526
+ elif opname == "LOAD_GLOBAL":
1527
+ global_names.add(name)
1528
+ for name in global_names:
1529
+ try:
1530
+ global_vars[name] = global_ns[name]
1531
+ except KeyError:
1532
+ try:
1533
+ builtin_vars[name] = builtin_ns[name]
1534
+ except KeyError:
1535
+ unbound_names.add(name)
1536
+
1537
+ return ClosureVars(nonlocal_vars, global_vars,
1538
+ builtin_vars, unbound_names)
1539
+
1540
+ # -------------------------------------------------- stack frame extraction
1541
+
1542
+ _Traceback = namedtuple('_Traceback', 'filename lineno function code_context index')
1543
+
1544
+ class Traceback(_Traceback):
1545
+ def __new__(cls, filename, lineno, function, code_context, index, *, positions=None):
1546
+ instance = super().__new__(cls, filename, lineno, function, code_context, index)
1547
+ instance.positions = positions
1548
+ return instance
1549
+
1550
+ def __repr__(self):
1551
+ return ('Traceback(filename={!r}, lineno={!r}, function={!r}, '
1552
+ 'code_context={!r}, index={!r}, positions={!r})'.format(
1553
+ self.filename, self.lineno, self.function, self.code_context,
1554
+ self.index, self.positions))
1555
+
1556
+ def _get_code_position_from_tb(tb):
1557
+ code, instruction_index = tb.tb_frame.f_code, tb.tb_lasti
1558
+ return _get_code_position(code, instruction_index)
1559
+
1560
+ def _get_code_position(code, instruction_index):
1561
+ if instruction_index < 0:
1562
+ return (None, None, None, None)
1563
+ positions_gen = code.co_positions()
1564
+ # The nth entry in code.co_positions() corresponds to instruction (2*n)th since Python 3.10+
1565
+ return next(itertools.islice(positions_gen, instruction_index // 2, None))
1566
+
1567
+ def getframeinfo(frame, context=1):
1568
+ """Get information about a frame or traceback object.
1569
+
1570
+ A tuple of five things is returned: the filename, the line number of
1571
+ the current line, the function name, a list of lines of context from
1572
+ the source code, and the index of the current line within that list.
1573
+ The optional second argument specifies the number of lines of context
1574
+ to return, which are centered around the current line."""
1575
+ if istraceback(frame):
1576
+ positions = _get_code_position_from_tb(frame)
1577
+ lineno = frame.tb_lineno
1578
+ frame = frame.tb_frame
1579
+ else:
1580
+ lineno = frame.f_lineno
1581
+ positions = _get_code_position(frame.f_code, frame.f_lasti)
1582
+
1583
+ if positions[0] is None:
1584
+ frame, *positions = (frame, lineno, *positions[1:])
1585
+ else:
1586
+ frame, *positions = (frame, *positions)
1587
+
1588
+ lineno = positions[0]
1589
+
1590
+ if not isframe(frame):
1591
+ raise TypeError('{!r} is not a frame or traceback object'.format(frame))
1592
+
1593
+ filename = getsourcefile(frame) or getfile(frame)
1594
+ if context > 0:
1595
+ start = lineno - 1 - context//2
1596
+ try:
1597
+ lines, lnum = findsource(frame)
1598
+ except OSError:
1599
+ lines = index = None
1600
+ else:
1601
+ start = max(0, min(start, len(lines) - context))
1602
+ lines = lines[start:start+context]
1603
+ index = lineno - 1 - start
1604
+ else:
1605
+ lines = index = None
1606
+
1607
+ return Traceback(filename, lineno, frame.f_code.co_name, lines,
1608
+ index, positions=dis.Positions(*positions))
1609
+
1610
+ def getlineno(frame):
1611
+ """Get the line number from a frame object, allowing for optimization."""
1612
+ # FrameType.f_lineno is now a descriptor that grovels co_lnotab
1613
+ return frame.f_lineno
1614
+
1615
+ _FrameInfo = namedtuple('_FrameInfo', ('frame',) + Traceback._fields)
1616
+ class FrameInfo(_FrameInfo):
1617
+ def __new__(cls, frame, filename, lineno, function, code_context, index, *, positions=None):
1618
+ instance = super().__new__(cls, frame, filename, lineno, function, code_context, index)
1619
+ instance.positions = positions
1620
+ return instance
1621
+
1622
+ def __repr__(self):
1623
+ return ('FrameInfo(frame={!r}, filename={!r}, lineno={!r}, function={!r}, '
1624
+ 'code_context={!r}, index={!r}, positions={!r})'.format(
1625
+ self.frame, self.filename, self.lineno, self.function,
1626
+ self.code_context, self.index, self.positions))
1627
+
1628
+ def getouterframes(frame, context=1):
1629
+ """Get a list of records for a frame and all higher (calling) frames.
1630
+
1631
+ Each record contains a frame object, filename, line number, function
1632
+ name, a list of lines of context, and index within the context."""
1633
+ framelist = []
1634
+ while frame:
1635
+ traceback_info = getframeinfo(frame, context)
1636
+ frameinfo = (frame,) + traceback_info
1637
+ framelist.append(FrameInfo(*frameinfo, positions=traceback_info.positions))
1638
+ frame = frame.f_back
1639
+ return framelist
1640
+
1641
+ def getinnerframes(tb, context=1):
1642
+ """Get a list of records for a traceback's frame and all lower frames.
1643
+
1644
+ Each record contains a frame object, filename, line number, function
1645
+ name, a list of lines of context, and index within the context."""
1646
+ framelist = []
1647
+ while tb:
1648
+ traceback_info = getframeinfo(tb, context)
1649
+ frameinfo = (tb.tb_frame,) + traceback_info
1650
+ framelist.append(FrameInfo(*frameinfo, positions=traceback_info.positions))
1651
+ tb = tb.tb_next
1652
+ return framelist
1653
+
1654
+ def currentframe():
1655
+ """Return the frame of the caller or None if this is not possible."""
1656
+ return sys._getframe(1) if hasattr(sys, "_getframe") else None
1657
+
1658
+ def stack(context=1):
1659
+ """Return a list of records for the stack above the caller's frame."""
1660
+ return getouterframes(sys._getframe(1), context)
1661
+
1662
+ def trace(context=1):
1663
+ """Return a list of records for the stack below the current exception."""
1664
+ exc = sys.exception()
1665
+ tb = None if exc is None else exc.__traceback__
1666
+ return getinnerframes(tb, context)
1667
+
1668
+
1669
+ # ------------------------------------------------ static version of getattr
1670
+
1671
+ _sentinel = object()
1672
+ _static_getmro = type.__dict__['__mro__'].__get__
1673
+ _get_dunder_dict_of_class = type.__dict__["__dict__"].__get__
1674
+
1675
+
1676
+ def _check_instance(obj, attr):
1677
+ instance_dict = {}
1678
+ try:
1679
+ instance_dict = object.__getattribute__(obj, "__dict__")
1680
+ except AttributeError:
1681
+ pass
1682
+ return dict.get(instance_dict, attr, _sentinel)
1683
+
1684
+
1685
+ def _check_class(klass, attr):
1686
+ for entry in _static_getmro(klass):
1687
+ if _shadowed_dict(type(entry)) is _sentinel and attr in entry.__dict__:
1688
+ return entry.__dict__[attr]
1689
+ return _sentinel
1690
+
1691
+
1692
+ @functools.lru_cache()
1693
+ def _shadowed_dict_from_weakref_mro_tuple(*weakref_mro):
1694
+ for weakref_entry in weakref_mro:
1695
+ # Normally we'd have to check whether the result of weakref_entry()
1696
+ # is None here, in case the object the weakref is pointing to has died.
1697
+ # In this specific case, however, we know that the only caller of this
1698
+ # function is `_shadowed_dict()`, and that therefore this weakref is
1699
+ # guaranteed to point to an object that is still alive.
1700
+ entry = weakref_entry()
1701
+ dunder_dict = _get_dunder_dict_of_class(entry)
1702
+ if '__dict__' in dunder_dict:
1703
+ class_dict = dunder_dict['__dict__']
1704
+ if not (type(class_dict) is types.GetSetDescriptorType and
1705
+ class_dict.__name__ == "__dict__" and
1706
+ class_dict.__objclass__ is entry):
1707
+ return class_dict
1708
+ return _sentinel
1709
+
1710
+
1711
+ def _shadowed_dict(klass):
1712
+ # gh-118013: the inner function here is decorated with lru_cache for
1713
+ # performance reasons, *but* make sure not to pass strong references
1714
+ # to the items in the mro. Doing so can lead to unexpected memory
1715
+ # consumption in cases where classes are dynamically created and
1716
+ # destroyed, and the dynamically created classes happen to be the only
1717
+ # objects that hold strong references to other objects that take up a
1718
+ # significant amount of memory.
1719
+ return _shadowed_dict_from_weakref_mro_tuple(
1720
+ *[make_weakref(entry) for entry in _static_getmro(klass)]
1721
+ )
1722
+
1723
+
1724
+ def getattr_static(obj, attr, default=_sentinel):
1725
+ """Retrieve attributes without triggering dynamic lookup via the
1726
+ descriptor protocol, __getattr__ or __getattribute__.
1727
+
1728
+ Note: this function may not be able to retrieve all attributes
1729
+ that getattr can fetch (like dynamically created attributes)
1730
+ and may find attributes that getattr can't (like descriptors
1731
+ that raise AttributeError). It can also return descriptor objects
1732
+ instead of instance members in some cases. See the
1733
+ documentation for details.
1734
+ """
1735
+ instance_result = _sentinel
1736
+
1737
+ objtype = type(obj)
1738
+ if type not in _static_getmro(objtype):
1739
+ klass = objtype
1740
+ dict_attr = _shadowed_dict(klass)
1741
+ if (dict_attr is _sentinel or
1742
+ type(dict_attr) is types.MemberDescriptorType):
1743
+ instance_result = _check_instance(obj, attr)
1744
+ else:
1745
+ klass = obj
1746
+
1747
+ klass_result = _check_class(klass, attr)
1748
+
1749
+ if instance_result is not _sentinel and klass_result is not _sentinel:
1750
+ if _check_class(type(klass_result), "__get__") is not _sentinel and (
1751
+ _check_class(type(klass_result), "__set__") is not _sentinel
1752
+ or _check_class(type(klass_result), "__delete__") is not _sentinel
1753
+ ):
1754
+ return klass_result
1755
+
1756
+ if instance_result is not _sentinel:
1757
+ return instance_result
1758
+ if klass_result is not _sentinel:
1759
+ return klass_result
1760
+
1761
+ if obj is klass:
1762
+ # for types we check the metaclass too
1763
+ for entry in _static_getmro(type(klass)):
1764
+ if (
1765
+ _shadowed_dict(type(entry)) is _sentinel
1766
+ and attr in entry.__dict__
1767
+ ):
1768
+ return entry.__dict__[attr]
1769
+ if default is not _sentinel:
1770
+ return default
1771
+ raise AttributeError(attr)
1772
+
1773
+
1774
+ # ------------------------------------------------ generator introspection
1775
+
1776
+ GEN_CREATED = 'GEN_CREATED'
1777
+ GEN_RUNNING = 'GEN_RUNNING'
1778
+ GEN_SUSPENDED = 'GEN_SUSPENDED'
1779
+ GEN_CLOSED = 'GEN_CLOSED'
1780
+
1781
+ def getgeneratorstate(generator):
1782
+ """Get current state of a generator-iterator.
1783
+
1784
+ Possible states are:
1785
+ GEN_CREATED: Waiting to start execution.
1786
+ GEN_RUNNING: Currently being executed by the interpreter.
1787
+ GEN_SUSPENDED: Currently suspended at a yield expression.
1788
+ GEN_CLOSED: Execution has completed.
1789
+ """
1790
+ if generator.gi_running:
1791
+ return GEN_RUNNING
1792
+ if generator.gi_suspended:
1793
+ return GEN_SUSPENDED
1794
+ if generator.gi_frame is None:
1795
+ return GEN_CLOSED
1796
+ return GEN_CREATED
1797
+
1798
+
1799
+ def getgeneratorlocals(generator):
1800
+ """
1801
+ Get the mapping of generator local variables to their current values.
1802
+
1803
+ A dict is returned, with the keys the local variable names and values the
1804
+ bound values."""
1805
+
1806
+ if not isgenerator(generator):
1807
+ raise TypeError("{!r} is not a Python generator".format(generator))
1808
+
1809
+ frame = getattr(generator, "gi_frame", None)
1810
+ if frame is not None:
1811
+ return generator.gi_frame.f_locals
1812
+ else:
1813
+ return {}
1814
+
1815
+
1816
+ # ------------------------------------------------ coroutine introspection
1817
+
1818
+ CORO_CREATED = 'CORO_CREATED'
1819
+ CORO_RUNNING = 'CORO_RUNNING'
1820
+ CORO_SUSPENDED = 'CORO_SUSPENDED'
1821
+ CORO_CLOSED = 'CORO_CLOSED'
1822
+
1823
+ def getcoroutinestate(coroutine):
1824
+ """Get current state of a coroutine object.
1825
+
1826
+ Possible states are:
1827
+ CORO_CREATED: Waiting to start execution.
1828
+ CORO_RUNNING: Currently being executed by the interpreter.
1829
+ CORO_SUSPENDED: Currently suspended at an await expression.
1830
+ CORO_CLOSED: Execution has completed.
1831
+ """
1832
+ if coroutine.cr_running:
1833
+ return CORO_RUNNING
1834
+ if coroutine.cr_suspended:
1835
+ return CORO_SUSPENDED
1836
+ if coroutine.cr_frame is None:
1837
+ return CORO_CLOSED
1838
+ return CORO_CREATED
1839
+
1840
+
1841
+ def getcoroutinelocals(coroutine):
1842
+ """
1843
+ Get the mapping of coroutine local variables to their current values.
1844
+
1845
+ A dict is returned, with the keys the local variable names and values the
1846
+ bound values."""
1847
+ frame = getattr(coroutine, "cr_frame", None)
1848
+ if frame is not None:
1849
+ return frame.f_locals
1850
+ else:
1851
+ return {}
1852
+
1853
+
1854
+ # ----------------------------------- asynchronous generator introspection
1855
+
1856
+ AGEN_CREATED = 'AGEN_CREATED'
1857
+ AGEN_RUNNING = 'AGEN_RUNNING'
1858
+ AGEN_SUSPENDED = 'AGEN_SUSPENDED'
1859
+ AGEN_CLOSED = 'AGEN_CLOSED'
1860
+
1861
+
1862
+ def getasyncgenstate(agen):
1863
+ """Get current state of an asynchronous generator object.
1864
+
1865
+ Possible states are:
1866
+ AGEN_CREATED: Waiting to start execution.
1867
+ AGEN_RUNNING: Currently being executed by the interpreter.
1868
+ AGEN_SUSPENDED: Currently suspended at a yield expression.
1869
+ AGEN_CLOSED: Execution has completed.
1870
+ """
1871
+ if agen.ag_running:
1872
+ return AGEN_RUNNING
1873
+ if agen.ag_suspended:
1874
+ return AGEN_SUSPENDED
1875
+ if agen.ag_frame is None:
1876
+ return AGEN_CLOSED
1877
+ return AGEN_CREATED
1878
+
1879
+
1880
+ def getasyncgenlocals(agen):
1881
+ """
1882
+ Get the mapping of asynchronous generator local variables to their current
1883
+ values.
1884
+
1885
+ A dict is returned, with the keys the local variable names and values the
1886
+ bound values."""
1887
+
1888
+ if not isasyncgen(agen):
1889
+ raise TypeError(f"{agen!r} is not a Python async generator")
1890
+
1891
+ frame = getattr(agen, "ag_frame", None)
1892
+ if frame is not None:
1893
+ return agen.ag_frame.f_locals
1894
+ else:
1895
+ return {}
1896
+
1897
+
1898
+ ###############################################################################
1899
+ ### Function Signature Object (PEP 362)
1900
+ ###############################################################################
1901
+
1902
+
1903
+ _NonUserDefinedCallables = (types.WrapperDescriptorType,
1904
+ types.MethodWrapperType,
1905
+ types.ClassMethodDescriptorType,
1906
+ types.BuiltinFunctionType)
1907
+
1908
+
1909
+ def _signature_get_user_defined_method(cls, method_name, *, follow_wrapper_chains=True):
1910
+ """Private helper. Checks if ``cls`` has an attribute
1911
+ named ``method_name`` and returns it only if it is a
1912
+ pure python function.
1913
+ """
1914
+ if method_name == '__new__':
1915
+ meth = getattr(cls, method_name, None)
1916
+ else:
1917
+ meth = getattr_static(cls, method_name, None)
1918
+ if meth is None:
1919
+ return None
1920
+
1921
+ # NOTE: The meth may wraps a non-user-defined callable.
1922
+ # In this case, we treat the meth as non-user-defined callable too.
1923
+ # (e.g. cls.__new__ generated by @warnings.deprecated)
1924
+ unwrapped_meth = None
1925
+ if follow_wrapper_chains:
1926
+ unwrapped_meth = unwrap(meth, stop=(lambda m: hasattr(m, "__signature__")
1927
+ or _signature_is_builtin(m)))
1928
+
1929
+ if (isinstance(meth, _NonUserDefinedCallables)
1930
+ or isinstance(unwrapped_meth, _NonUserDefinedCallables)):
1931
+ # Once '__signature__' will be added to 'C'-level
1932
+ # callables, this check won't be necessary
1933
+ return None
1934
+ if method_name != '__new__':
1935
+ meth = _descriptor_get(meth, cls)
1936
+ return meth
1937
+
1938
+
1939
+ def _signature_get_partial(wrapped_sig, partial, extra_args=()):
1940
+ """Private helper to calculate how 'wrapped_sig' signature will
1941
+ look like after applying a 'functools.partial' object (or alike)
1942
+ on it.
1943
+ """
1944
+
1945
+ old_params = wrapped_sig.parameters
1946
+ new_params = OrderedDict(old_params.items())
1947
+
1948
+ partial_args = partial.args or ()
1949
+ partial_keywords = partial.keywords or {}
1950
+
1951
+ if extra_args:
1952
+ partial_args = extra_args + partial_args
1953
+
1954
+ try:
1955
+ ba = wrapped_sig.bind_partial(*partial_args, **partial_keywords)
1956
+ except TypeError as ex:
1957
+ msg = 'partial object {!r} has incorrect arguments'.format(partial)
1958
+ raise ValueError(msg) from ex
1959
+
1960
+
1961
+ transform_to_kwonly = False
1962
+ for param_name, param in old_params.items():
1963
+ try:
1964
+ arg_value = ba.arguments[param_name]
1965
+ except KeyError:
1966
+ pass
1967
+ else:
1968
+ if param.kind is _POSITIONAL_ONLY:
1969
+ # If positional-only parameter is bound by partial,
1970
+ # it effectively disappears from the signature
1971
+ # However, if it is a Placeholder it is not removed
1972
+ # And also looses default value
1973
+ if arg_value is functools.Placeholder:
1974
+ new_params[param_name] = param.replace(default=_empty)
1975
+ else:
1976
+ new_params.pop(param_name)
1977
+ continue
1978
+
1979
+ if param.kind is _POSITIONAL_OR_KEYWORD:
1980
+ if param_name in partial_keywords:
1981
+ # This means that this parameter, and all parameters
1982
+ # after it should be keyword-only (and var-positional
1983
+ # should be removed). Here's why. Consider the following
1984
+ # function:
1985
+ # foo(a, b, *args, c):
1986
+ # pass
1987
+ #
1988
+ # "partial(foo, a='spam')" will have the following
1989
+ # signature: "(*, a='spam', b, c)". Because attempting
1990
+ # to call that partial with "(10, 20)" arguments will
1991
+ # raise a TypeError, saying that "a" argument received
1992
+ # multiple values.
1993
+ transform_to_kwonly = True
1994
+ # Set the new default value
1995
+ new_params[param_name] = param.replace(default=arg_value)
1996
+ else:
1997
+ # was passed as a positional argument
1998
+ # Do not pop if it is a Placeholder
1999
+ # also change kind to positional only
2000
+ # and remove default
2001
+ if arg_value is functools.Placeholder:
2002
+ new_param = param.replace(
2003
+ kind=_POSITIONAL_ONLY,
2004
+ default=_empty
2005
+ )
2006
+ new_params[param_name] = new_param
2007
+ else:
2008
+ new_params.pop(param_name)
2009
+ continue
2010
+
2011
+ if param.kind is _KEYWORD_ONLY:
2012
+ # Set the new default value
2013
+ new_params[param_name] = param.replace(default=arg_value)
2014
+
2015
+ if transform_to_kwonly:
2016
+ assert param.kind is not _POSITIONAL_ONLY
2017
+
2018
+ if param.kind is _POSITIONAL_OR_KEYWORD:
2019
+ new_param = new_params[param_name].replace(kind=_KEYWORD_ONLY)
2020
+ new_params[param_name] = new_param
2021
+ new_params.move_to_end(param_name)
2022
+ elif param.kind in (_KEYWORD_ONLY, _VAR_KEYWORD):
2023
+ new_params.move_to_end(param_name)
2024
+ elif param.kind is _VAR_POSITIONAL:
2025
+ new_params.pop(param.name)
2026
+
2027
+ return wrapped_sig.replace(parameters=new_params.values())
2028
+
2029
+
2030
+ def _signature_bound_method(sig):
2031
+ """Private helper to transform signatures for unbound
2032
+ functions to bound methods.
2033
+ """
2034
+
2035
+ params = tuple(sig.parameters.values())
2036
+
2037
+ if not params or params[0].kind in (_VAR_KEYWORD, _KEYWORD_ONLY):
2038
+ raise ValueError('invalid method signature')
2039
+
2040
+ kind = params[0].kind
2041
+ if kind in (_POSITIONAL_OR_KEYWORD, _POSITIONAL_ONLY):
2042
+ # Drop first parameter:
2043
+ # '(p1, p2[, ...])' -> '(p2[, ...])'
2044
+ params = params[1:]
2045
+ else:
2046
+ if kind is not _VAR_POSITIONAL:
2047
+ # Unless we add a new parameter type we never
2048
+ # get here
2049
+ raise ValueError('invalid argument type')
2050
+ # It's a var-positional parameter.
2051
+ # Do nothing. '(*args[, ...])' -> '(*args[, ...])'
2052
+
2053
+ return sig.replace(parameters=params)
2054
+
2055
+
2056
+ def _signature_is_builtin(obj):
2057
+ """Private helper to test if `obj` is a callable that might
2058
+ support Argument Clinic's __text_signature__ protocol.
2059
+ """
2060
+ return (isbuiltin(obj) or
2061
+ ismethoddescriptor(obj) or
2062
+ isinstance(obj, _NonUserDefinedCallables) or
2063
+ # Can't test 'isinstance(type)' here, as it would
2064
+ # also be True for regular python classes.
2065
+ # Can't use the `in` operator here, as it would
2066
+ # invoke the custom __eq__ method.
2067
+ obj is type or obj is object)
2068
+
2069
+
2070
+ def _signature_is_functionlike(obj):
2071
+ """Private helper to test if `obj` is a duck type of FunctionType.
2072
+ A good example of such objects are functions compiled with
2073
+ Cython, which have all attributes that a pure Python function
2074
+ would have, but have their code statically compiled.
2075
+ """
2076
+
2077
+ if not callable(obj) or isclass(obj):
2078
+ # All function-like objects are obviously callables,
2079
+ # and not classes.
2080
+ return False
2081
+
2082
+ name = getattr(obj, '__name__', None)
2083
+ code = getattr(obj, '__code__', None)
2084
+ defaults = getattr(obj, '__defaults__', _void) # Important to use _void ...
2085
+ kwdefaults = getattr(obj, '__kwdefaults__', _void) # ... and not None here
2086
+
2087
+ return (isinstance(code, types.CodeType) and
2088
+ isinstance(name, str) and
2089
+ (defaults is None or isinstance(defaults, tuple)) and
2090
+ (kwdefaults is None or isinstance(kwdefaults, dict)))
2091
+
2092
+
2093
+ def _signature_strip_non_python_syntax(signature):
2094
+ """
2095
+ Private helper function. Takes a signature in Argument Clinic's
2096
+ extended signature format.
2097
+
2098
+ Returns a tuple of two things:
2099
+ * that signature re-rendered in standard Python syntax, and
2100
+ * the index of the "self" parameter (generally 0), or None if
2101
+ the function does not have a "self" parameter.
2102
+ """
2103
+
2104
+ if not signature:
2105
+ return signature, None
2106
+
2107
+ self_parameter = None
2108
+
2109
+ lines = [l.encode('ascii') for l in signature.split('\n') if l]
2110
+ generator = iter(lines).__next__
2111
+ token_stream = tokenize.tokenize(generator)
2112
+
2113
+ text = []
2114
+ add = text.append
2115
+
2116
+ current_parameter = 0
2117
+ OP = token.OP
2118
+ ERRORTOKEN = token.ERRORTOKEN
2119
+
2120
+ # token stream always starts with ENCODING token, skip it
2121
+ t = next(token_stream)
2122
+ assert t.type == tokenize.ENCODING
2123
+
2124
+ for t in token_stream:
2125
+ type, string = t.type, t.string
2126
+
2127
+ if type == OP:
2128
+ if string == ',':
2129
+ current_parameter += 1
2130
+
2131
+ if (type == OP) and (string == '$'):
2132
+ assert self_parameter is None
2133
+ self_parameter = current_parameter
2134
+ continue
2135
+
2136
+ add(string)
2137
+ if (string == ','):
2138
+ add(' ')
2139
+ clean_signature = ''.join(text).strip().replace("\n", "")
2140
+ return clean_signature, self_parameter
2141
+
2142
+
2143
+ def _signature_fromstr(cls, obj, s, skip_bound_arg=True):
2144
+ """Private helper to parse content of '__text_signature__'
2145
+ and return a Signature based on it.
2146
+ """
2147
+ Parameter = cls._parameter_cls
2148
+
2149
+ clean_signature, self_parameter = _signature_strip_non_python_syntax(s)
2150
+
2151
+ program = "def foo" + clean_signature + ": pass"
2152
+
2153
+ try:
2154
+ module = ast.parse(program)
2155
+ except SyntaxError:
2156
+ module = None
2157
+
2158
+ if not isinstance(module, ast.Module):
2159
+ raise ValueError("{!r} builtin has invalid signature".format(obj))
2160
+
2161
+ f = module.body[0]
2162
+
2163
+ parameters = []
2164
+ empty = Parameter.empty
2165
+
2166
+ module = None
2167
+ module_dict = {}
2168
+
2169
+ module_name = getattr(obj, '__module__', None)
2170
+ if not module_name:
2171
+ objclass = getattr(obj, '__objclass__', None)
2172
+ module_name = getattr(objclass, '__module__', None)
2173
+
2174
+ if module_name:
2175
+ module = sys.modules.get(module_name, None)
2176
+ if module:
2177
+ module_dict = module.__dict__
2178
+ sys_module_dict = sys.modules.copy()
2179
+
2180
+ def parse_name(node):
2181
+ assert isinstance(node, ast.arg)
2182
+ if node.annotation is not None:
2183
+ raise ValueError("Annotations are not currently supported")
2184
+ return node.arg
2185
+
2186
+ def wrap_value(s):
2187
+ try:
2188
+ value = eval(s, module_dict)
2189
+ except NameError:
2190
+ try:
2191
+ value = eval(s, sys_module_dict)
2192
+ except NameError:
2193
+ raise ValueError
2194
+
2195
+ if isinstance(value, (str, int, float, bytes, bool, type(None))):
2196
+ return ast.Constant(value)
2197
+ raise ValueError
2198
+
2199
+ class RewriteSymbolics(ast.NodeTransformer):
2200
+ def visit_Attribute(self, node):
2201
+ a = []
2202
+ n = node
2203
+ while isinstance(n, ast.Attribute):
2204
+ a.append(n.attr)
2205
+ n = n.value
2206
+ if not isinstance(n, ast.Name):
2207
+ raise ValueError
2208
+ a.append(n.id)
2209
+ value = ".".join(reversed(a))
2210
+ return wrap_value(value)
2211
+
2212
+ def visit_Name(self, node):
2213
+ if not isinstance(node.ctx, ast.Load):
2214
+ raise ValueError()
2215
+ return wrap_value(node.id)
2216
+
2217
+ def visit_BinOp(self, node):
2218
+ # Support constant folding of a couple simple binary operations
2219
+ # commonly used to define default values in text signatures
2220
+ left = self.visit(node.left)
2221
+ right = self.visit(node.right)
2222
+ if not isinstance(left, ast.Constant) or not isinstance(right, ast.Constant):
2223
+ raise ValueError
2224
+ if isinstance(node.op, ast.Add):
2225
+ return ast.Constant(left.value + right.value)
2226
+ elif isinstance(node.op, ast.Sub):
2227
+ return ast.Constant(left.value - right.value)
2228
+ elif isinstance(node.op, ast.BitOr):
2229
+ return ast.Constant(left.value | right.value)
2230
+ raise ValueError
2231
+
2232
+ def p(name_node, default_node, default=empty):
2233
+ name = parse_name(name_node)
2234
+ if default_node and default_node is not _empty:
2235
+ try:
2236
+ default_node = RewriteSymbolics().visit(default_node)
2237
+ default = ast.literal_eval(default_node)
2238
+ except ValueError:
2239
+ raise ValueError("{!r} builtin has invalid signature".format(obj)) from None
2240
+ parameters.append(Parameter(name, kind, default=default, annotation=empty))
2241
+
2242
+ # non-keyword-only parameters
2243
+ total_non_kw_args = len(f.args.posonlyargs) + len(f.args.args)
2244
+ required_non_kw_args = total_non_kw_args - len(f.args.defaults)
2245
+ defaults = itertools.chain(itertools.repeat(None, required_non_kw_args), f.args.defaults)
2246
+
2247
+ kind = Parameter.POSITIONAL_ONLY
2248
+ for (name, default) in zip(f.args.posonlyargs, defaults):
2249
+ p(name, default)
2250
+
2251
+ kind = Parameter.POSITIONAL_OR_KEYWORD
2252
+ for (name, default) in zip(f.args.args, defaults):
2253
+ p(name, default)
2254
+
2255
+ # *args
2256
+ if f.args.vararg:
2257
+ kind = Parameter.VAR_POSITIONAL
2258
+ p(f.args.vararg, empty)
2259
+
2260
+ # keyword-only arguments
2261
+ kind = Parameter.KEYWORD_ONLY
2262
+ for name, default in zip(f.args.kwonlyargs, f.args.kw_defaults):
2263
+ p(name, default)
2264
+
2265
+ # **kwargs
2266
+ if f.args.kwarg:
2267
+ kind = Parameter.VAR_KEYWORD
2268
+ p(f.args.kwarg, empty)
2269
+
2270
+ if self_parameter is not None:
2271
+ # Possibly strip the bound argument:
2272
+ # - We *always* strip first bound argument if
2273
+ # it is a module.
2274
+ # - We don't strip first bound argument if
2275
+ # skip_bound_arg is False.
2276
+ assert parameters
2277
+ _self = getattr(obj, '__self__', None)
2278
+ self_isbound = _self is not None
2279
+ self_ismodule = ismodule(_self)
2280
+ if self_isbound and (self_ismodule or skip_bound_arg):
2281
+ parameters.pop(0)
2282
+ else:
2283
+ # for builtins, self parameter is always positional-only!
2284
+ p = parameters[0].replace(kind=Parameter.POSITIONAL_ONLY)
2285
+ parameters[0] = p
2286
+
2287
+ return cls(parameters, return_annotation=cls.empty)
2288
+
2289
+
2290
+ def _signature_from_builtin(cls, func, skip_bound_arg=True):
2291
+ """Private helper function to get signature for
2292
+ builtin callables.
2293
+ """
2294
+
2295
+ if not _signature_is_builtin(func):
2296
+ raise TypeError("{!r} is not a Python builtin "
2297
+ "function".format(func))
2298
+
2299
+ s = getattr(func, "__text_signature__", None)
2300
+ if not s:
2301
+ raise ValueError("no signature found for builtin {!r}".format(func))
2302
+
2303
+ return _signature_fromstr(cls, func, s, skip_bound_arg)
2304
+
2305
+
2306
+ def _signature_from_function(cls, func, skip_bound_arg=True,
2307
+ globals=None, locals=None, eval_str=False,
2308
+ *, annotation_format=Format.VALUE):
2309
+ """Private helper: constructs Signature for the given python function."""
2310
+
2311
+ is_duck_function = False
2312
+ if not isfunction(func):
2313
+ if _signature_is_functionlike(func):
2314
+ is_duck_function = True
2315
+ else:
2316
+ # If it's not a pure Python function, and not a duck type
2317
+ # of pure function:
2318
+ raise TypeError('{!r} is not a Python function'.format(func))
2319
+
2320
+ s = getattr(func, "__text_signature__", None)
2321
+ if s:
2322
+ return _signature_fromstr(cls, func, s, skip_bound_arg)
2323
+
2324
+ Parameter = cls._parameter_cls
2325
+
2326
+ # Parameter information.
2327
+ func_code = func.__code__
2328
+ pos_count = func_code.co_argcount
2329
+ arg_names = func_code.co_varnames
2330
+ posonly_count = func_code.co_posonlyargcount
2331
+ positional = arg_names[:pos_count]
2332
+ keyword_only_count = func_code.co_kwonlyargcount
2333
+ keyword_only = arg_names[pos_count:pos_count + keyword_only_count]
2334
+ annotations = get_annotations(func, globals=globals, locals=locals, eval_str=eval_str,
2335
+ format=annotation_format)
2336
+ defaults = func.__defaults__
2337
+ kwdefaults = func.__kwdefaults__
2338
+
2339
+ if defaults:
2340
+ pos_default_count = len(defaults)
2341
+ else:
2342
+ pos_default_count = 0
2343
+
2344
+ parameters = []
2345
+
2346
+ non_default_count = pos_count - pos_default_count
2347
+ posonly_left = posonly_count
2348
+
2349
+ # Non-keyword-only parameters w/o defaults.
2350
+ for name in positional[:non_default_count]:
2351
+ kind = _POSITIONAL_ONLY if posonly_left else _POSITIONAL_OR_KEYWORD
2352
+ annotation = annotations.get(name, _empty)
2353
+ parameters.append(Parameter(name, annotation=annotation,
2354
+ kind=kind))
2355
+ if posonly_left:
2356
+ posonly_left -= 1
2357
+
2358
+ # ... w/ defaults.
2359
+ for offset, name in enumerate(positional[non_default_count:]):
2360
+ kind = _POSITIONAL_ONLY if posonly_left else _POSITIONAL_OR_KEYWORD
2361
+ annotation = annotations.get(name, _empty)
2362
+ parameters.append(Parameter(name, annotation=annotation,
2363
+ kind=kind,
2364
+ default=defaults[offset]))
2365
+ if posonly_left:
2366
+ posonly_left -= 1
2367
+
2368
+ # *args
2369
+ if func_code.co_flags & CO_VARARGS:
2370
+ name = arg_names[pos_count + keyword_only_count]
2371
+ annotation = annotations.get(name, _empty)
2372
+ parameters.append(Parameter(name, annotation=annotation,
2373
+ kind=_VAR_POSITIONAL))
2374
+
2375
+ # Keyword-only parameters.
2376
+ for name in keyword_only:
2377
+ default = _empty
2378
+ if kwdefaults is not None:
2379
+ default = kwdefaults.get(name, _empty)
2380
+
2381
+ annotation = annotations.get(name, _empty)
2382
+ parameters.append(Parameter(name, annotation=annotation,
2383
+ kind=_KEYWORD_ONLY,
2384
+ default=default))
2385
+ # **kwargs
2386
+ if func_code.co_flags & CO_VARKEYWORDS:
2387
+ index = pos_count + keyword_only_count
2388
+ if func_code.co_flags & CO_VARARGS:
2389
+ index += 1
2390
+
2391
+ name = arg_names[index]
2392
+ annotation = annotations.get(name, _empty)
2393
+ parameters.append(Parameter(name, annotation=annotation,
2394
+ kind=_VAR_KEYWORD))
2395
+
2396
+ # Is 'func' is a pure Python function - don't validate the
2397
+ # parameters list (for correct order and defaults), it should be OK.
2398
+ return cls(parameters,
2399
+ return_annotation=annotations.get('return', _empty),
2400
+ __validate_parameters__=is_duck_function)
2401
+
2402
+
2403
+ def _descriptor_get(descriptor, obj):
2404
+ if isclass(descriptor):
2405
+ return descriptor
2406
+ get = getattr(type(descriptor), '__get__', _sentinel)
2407
+ if get is _sentinel:
2408
+ return descriptor
2409
+ return get(descriptor, obj, type(obj))
2410
+
2411
+
2412
+ def _signature_from_callable(obj, *,
2413
+ follow_wrapper_chains=True,
2414
+ skip_bound_arg=True,
2415
+ globals=None,
2416
+ locals=None,
2417
+ eval_str=False,
2418
+ sigcls,
2419
+ annotation_format=Format.VALUE):
2420
+
2421
+ """Private helper function to get signature for arbitrary
2422
+ callable objects.
2423
+ """
2424
+
2425
+ _get_signature_of = functools.partial(_signature_from_callable,
2426
+ follow_wrapper_chains=follow_wrapper_chains,
2427
+ skip_bound_arg=skip_bound_arg,
2428
+ globals=globals,
2429
+ locals=locals,
2430
+ sigcls=sigcls,
2431
+ eval_str=eval_str,
2432
+ annotation_format=annotation_format)
2433
+
2434
+ if not callable(obj):
2435
+ raise TypeError('{!r} is not a callable object'.format(obj))
2436
+
2437
+ if isinstance(obj, types.MethodType):
2438
+ # In this case we skip the first parameter of the underlying
2439
+ # function (usually `self` or `cls`).
2440
+ sig = _get_signature_of(obj.__func__)
2441
+
2442
+ if skip_bound_arg:
2443
+ return _signature_bound_method(sig)
2444
+ else:
2445
+ return sig
2446
+
2447
+ # Was this function wrapped by a decorator?
2448
+ if follow_wrapper_chains:
2449
+ # Unwrap until we find an explicit signature or a MethodType (which will be
2450
+ # handled explicitly below).
2451
+ obj = unwrap(obj, stop=(lambda f: hasattr(f, "__signature__")
2452
+ or isinstance(f, types.MethodType)))
2453
+ if isinstance(obj, types.MethodType):
2454
+ # If the unwrapped object is a *method*, we might want to
2455
+ # skip its first parameter (self).
2456
+ # See test_signature_wrapped_bound_method for details.
2457
+ return _get_signature_of(obj)
2458
+
2459
+ try:
2460
+ sig = obj.__signature__
2461
+ except AttributeError:
2462
+ pass
2463
+ else:
2464
+ if sig is not None:
2465
+ if not isinstance(sig, Signature):
2466
+ raise TypeError(
2467
+ 'unexpected object {!r} in __signature__ '
2468
+ 'attribute'.format(sig))
2469
+ return sig
2470
+
2471
+ try:
2472
+ partialmethod = obj.__partialmethod__
2473
+ except AttributeError:
2474
+ pass
2475
+ else:
2476
+ if isinstance(partialmethod, functools.partialmethod):
2477
+ # Unbound partialmethod (see functools.partialmethod)
2478
+ # This means, that we need to calculate the signature
2479
+ # as if it's a regular partial object, but taking into
2480
+ # account that the first positional argument
2481
+ # (usually `self`, or `cls`) will not be passed
2482
+ # automatically (as for boundmethods)
2483
+
2484
+ wrapped_sig = _get_signature_of(partialmethod.func)
2485
+
2486
+ sig = _signature_get_partial(wrapped_sig, partialmethod, (None,))
2487
+ first_wrapped_param = tuple(wrapped_sig.parameters.values())[0]
2488
+ if first_wrapped_param.kind is Parameter.VAR_POSITIONAL:
2489
+ # First argument of the wrapped callable is `*args`, as in
2490
+ # `partialmethod(lambda *args)`.
2491
+ return sig
2492
+ else:
2493
+ sig_params = tuple(sig.parameters.values())
2494
+ assert (not sig_params or
2495
+ first_wrapped_param is not sig_params[0])
2496
+ # If there were placeholders set,
2497
+ # first param is transformed to positional only
2498
+ if partialmethod.args.count(functools.Placeholder):
2499
+ first_wrapped_param = first_wrapped_param.replace(
2500
+ kind=Parameter.POSITIONAL_ONLY)
2501
+ new_params = (first_wrapped_param,) + sig_params
2502
+ return sig.replace(parameters=new_params)
2503
+
2504
+ if isinstance(obj, functools.partial):
2505
+ wrapped_sig = _get_signature_of(obj.func)
2506
+ return _signature_get_partial(wrapped_sig, obj)
2507
+
2508
+ if isfunction(obj) or _signature_is_functionlike(obj):
2509
+ # If it's a pure Python function, or an object that is duck type
2510
+ # of a Python function (Cython functions, for instance), then:
2511
+ return _signature_from_function(sigcls, obj,
2512
+ skip_bound_arg=skip_bound_arg,
2513
+ globals=globals, locals=locals, eval_str=eval_str,
2514
+ annotation_format=annotation_format)
2515
+
2516
+ if _signature_is_builtin(obj):
2517
+ return _signature_from_builtin(sigcls, obj,
2518
+ skip_bound_arg=skip_bound_arg)
2519
+
2520
+ if isinstance(obj, type):
2521
+ # obj is a class or a metaclass
2522
+
2523
+ # First, let's see if it has an overloaded __call__ defined
2524
+ # in its metaclass
2525
+ call = _signature_get_user_defined_method(
2526
+ type(obj),
2527
+ '__call__',
2528
+ follow_wrapper_chains=follow_wrapper_chains,
2529
+ )
2530
+ if call is not None:
2531
+ return _get_signature_of(call)
2532
+
2533
+ # NOTE: The user-defined method can be a function with a thin wrapper
2534
+ # around object.__new__ (e.g., generated by `@warnings.deprecated`)
2535
+ new = _signature_get_user_defined_method(
2536
+ obj,
2537
+ '__new__',
2538
+ follow_wrapper_chains=follow_wrapper_chains,
2539
+ )
2540
+ init = _signature_get_user_defined_method(
2541
+ obj,
2542
+ '__init__',
2543
+ follow_wrapper_chains=follow_wrapper_chains,
2544
+ )
2545
+
2546
+ # Go through the MRO and see if any class has user-defined
2547
+ # pure Python __new__ or __init__ method
2548
+ for base in obj.__mro__:
2549
+ # Now we check if the 'obj' class has an own '__new__' method
2550
+ if new is not None and '__new__' in base.__dict__:
2551
+ sig = _get_signature_of(new)
2552
+ if skip_bound_arg:
2553
+ sig = _signature_bound_method(sig)
2554
+ return sig
2555
+ # or an own '__init__' method
2556
+ elif init is not None and '__init__' in base.__dict__:
2557
+ return _get_signature_of(init)
2558
+
2559
+ # At this point we know, that `obj` is a class, with no user-
2560
+ # defined '__init__', '__new__', or class-level '__call__'
2561
+
2562
+ for base in obj.__mro__[:-1]:
2563
+ # Since '__text_signature__' is implemented as a
2564
+ # descriptor that extracts text signature from the
2565
+ # class docstring, if 'obj' is derived from a builtin
2566
+ # class, its own '__text_signature__' may be 'None'.
2567
+ # Therefore, we go through the MRO (except the last
2568
+ # class in there, which is 'object') to find the first
2569
+ # class with non-empty text signature.
2570
+ try:
2571
+ text_sig = base.__text_signature__
2572
+ except AttributeError:
2573
+ pass
2574
+ else:
2575
+ if text_sig:
2576
+ # If 'base' class has a __text_signature__ attribute:
2577
+ # return a signature based on it
2578
+ return _signature_fromstr(sigcls, base, text_sig)
2579
+
2580
+ # No '__text_signature__' was found for the 'obj' class.
2581
+ # Last option is to check if its '__init__' is
2582
+ # object.__init__ or type.__init__.
2583
+ if type not in obj.__mro__:
2584
+ obj_init = obj.__init__
2585
+ obj_new = obj.__new__
2586
+ if follow_wrapper_chains:
2587
+ obj_init = unwrap(obj_init)
2588
+ obj_new = unwrap(obj_new)
2589
+ # We have a class (not metaclass), but no user-defined
2590
+ # __init__ or __new__ for it
2591
+ if obj_init is object.__init__ and obj_new is object.__new__:
2592
+ # Return a signature of 'object' builtin.
2593
+ return sigcls.from_callable(object)
2594
+ else:
2595
+ raise ValueError(
2596
+ 'no signature found for builtin type {!r}'.format(obj))
2597
+
2598
+ else:
2599
+ # An object with __call__
2600
+ call = getattr_static(type(obj), '__call__', None)
2601
+ if call is not None:
2602
+ try:
2603
+ text_sig = obj.__text_signature__
2604
+ except AttributeError:
2605
+ pass
2606
+ else:
2607
+ if text_sig:
2608
+ return _signature_fromstr(sigcls, obj, text_sig)
2609
+ call = _descriptor_get(call, obj)
2610
+ return _get_signature_of(call)
2611
+
2612
+ raise ValueError('callable {!r} is not supported by signature'.format(obj))
2613
+
2614
+
2615
+ class _void:
2616
+ """A private marker - used in Parameter & Signature."""
2617
+
2618
+
2619
+ class _empty:
2620
+ """Marker object for Signature.empty and Parameter.empty."""
2621
+
2622
+
2623
+ class _ParameterKind(enum.IntEnum):
2624
+ POSITIONAL_ONLY = 'positional-only'
2625
+ POSITIONAL_OR_KEYWORD = 'positional or keyword'
2626
+ VAR_POSITIONAL = 'variadic positional'
2627
+ KEYWORD_ONLY = 'keyword-only'
2628
+ VAR_KEYWORD = 'variadic keyword'
2629
+
2630
+ def __new__(cls, description):
2631
+ value = len(cls.__members__)
2632
+ member = int.__new__(cls, value)
2633
+ member._value_ = value
2634
+ member.description = description
2635
+ return member
2636
+
2637
+ def __str__(self):
2638
+ return self.name
2639
+
2640
+ _POSITIONAL_ONLY = _ParameterKind.POSITIONAL_ONLY
2641
+ _POSITIONAL_OR_KEYWORD = _ParameterKind.POSITIONAL_OR_KEYWORD
2642
+ _VAR_POSITIONAL = _ParameterKind.VAR_POSITIONAL
2643
+ _KEYWORD_ONLY = _ParameterKind.KEYWORD_ONLY
2644
+ _VAR_KEYWORD = _ParameterKind.VAR_KEYWORD
2645
+
2646
+
2647
+ class Parameter:
2648
+ """Represents a parameter in a function signature.
2649
+
2650
+ Has the following public attributes:
2651
+
2652
+ * name : str
2653
+ The name of the parameter as a string.
2654
+ * default : object
2655
+ The default value for the parameter if specified. If the
2656
+ parameter has no default value, this attribute is set to
2657
+ `Parameter.empty`.
2658
+ * annotation
2659
+ The annotation for the parameter if specified. If the
2660
+ parameter has no annotation, this attribute is set to
2661
+ `Parameter.empty`.
2662
+ * kind : str
2663
+ Describes how argument values are bound to the parameter.
2664
+ Possible values: `Parameter.POSITIONAL_ONLY`,
2665
+ `Parameter.POSITIONAL_OR_KEYWORD`, `Parameter.VAR_POSITIONAL`,
2666
+ `Parameter.KEYWORD_ONLY`, `Parameter.VAR_KEYWORD`.
2667
+ """
2668
+
2669
+ __slots__ = ('_name', '_kind', '_default', '_annotation')
2670
+
2671
+ POSITIONAL_ONLY = _POSITIONAL_ONLY
2672
+ POSITIONAL_OR_KEYWORD = _POSITIONAL_OR_KEYWORD
2673
+ VAR_POSITIONAL = _VAR_POSITIONAL
2674
+ KEYWORD_ONLY = _KEYWORD_ONLY
2675
+ VAR_KEYWORD = _VAR_KEYWORD
2676
+
2677
+ empty = _empty
2678
+
2679
+ def __init__(self, name, kind, *, default=_empty, annotation=_empty):
2680
+ try:
2681
+ self._kind = _ParameterKind(kind)
2682
+ except ValueError:
2683
+ raise ValueError(f'value {kind!r} is not a valid Parameter.kind')
2684
+ if default is not _empty:
2685
+ if self._kind in (_VAR_POSITIONAL, _VAR_KEYWORD):
2686
+ msg = '{} parameters cannot have default values'
2687
+ msg = msg.format(self._kind.description)
2688
+ raise ValueError(msg)
2689
+ self._default = default
2690
+ self._annotation = annotation
2691
+
2692
+ if name is _empty:
2693
+ raise ValueError('name is a required attribute for Parameter')
2694
+
2695
+ if not isinstance(name, str):
2696
+ msg = 'name must be a str, not a {}'.format(type(name).__name__)
2697
+ raise TypeError(msg)
2698
+
2699
+ if name[0] == '.' and name[1:].isdigit():
2700
+ # These are implicit arguments generated by comprehensions. In
2701
+ # order to provide a friendlier interface to users, we recast
2702
+ # their name as "implicitN" and treat them as positional-only.
2703
+ # See issue 19611.
2704
+ if self._kind != _POSITIONAL_OR_KEYWORD:
2705
+ msg = (
2706
+ 'implicit arguments must be passed as '
2707
+ 'positional or keyword arguments, not {}'
2708
+ )
2709
+ msg = msg.format(self._kind.description)
2710
+ raise ValueError(msg)
2711
+ self._kind = _POSITIONAL_ONLY
2712
+ name = 'implicit{}'.format(name[1:])
2713
+
2714
+ # It's possible for C functions to have a positional-only parameter
2715
+ # where the name is a keyword, so for compatibility we'll allow it.
2716
+ is_keyword = iskeyword(name) and self._kind is not _POSITIONAL_ONLY
2717
+ if is_keyword or not name.isidentifier():
2718
+ raise ValueError('{!r} is not a valid parameter name'.format(name))
2719
+
2720
+ self._name = name
2721
+
2722
+ def __reduce__(self):
2723
+ return (type(self),
2724
+ (self._name, self._kind),
2725
+ {'_default': self._default,
2726
+ '_annotation': self._annotation})
2727
+
2728
+ def __setstate__(self, state):
2729
+ self._default = state['_default']
2730
+ self._annotation = state['_annotation']
2731
+
2732
+ @property
2733
+ def name(self):
2734
+ return self._name
2735
+
2736
+ @property
2737
+ def default(self):
2738
+ return self._default
2739
+
2740
+ @property
2741
+ def annotation(self):
2742
+ return self._annotation
2743
+
2744
+ @property
2745
+ def kind(self):
2746
+ return self._kind
2747
+
2748
+ def replace(self, *, name=_void, kind=_void,
2749
+ annotation=_void, default=_void):
2750
+ """Creates a customized copy of the Parameter."""
2751
+
2752
+ if name is _void:
2753
+ name = self._name
2754
+
2755
+ if kind is _void:
2756
+ kind = self._kind
2757
+
2758
+ if annotation is _void:
2759
+ annotation = self._annotation
2760
+
2761
+ if default is _void:
2762
+ default = self._default
2763
+
2764
+ return type(self)(name, kind, default=default, annotation=annotation)
2765
+
2766
+ def __str__(self):
2767
+ return self._format()
2768
+
2769
+ def _format(self, *, quote_annotation_strings=True):
2770
+ kind = self.kind
2771
+ formatted = self._name
2772
+
2773
+ # Add annotation and default value
2774
+ if self._annotation is not _empty:
2775
+ annotation = formatannotation(self._annotation,
2776
+ quote_annotation_strings=quote_annotation_strings)
2777
+ formatted = '{}: {}'.format(formatted, annotation)
2778
+
2779
+ if self._default is not _empty:
2780
+ if self._annotation is not _empty:
2781
+ formatted = '{} = {}'.format(formatted, repr(self._default))
2782
+ else:
2783
+ formatted = '{}={}'.format(formatted, repr(self._default))
2784
+
2785
+ if kind == _VAR_POSITIONAL:
2786
+ formatted = '*' + formatted
2787
+ elif kind == _VAR_KEYWORD:
2788
+ formatted = '**' + formatted
2789
+
2790
+ return formatted
2791
+
2792
+ __replace__ = replace
2793
+
2794
+ def __repr__(self):
2795
+ return '<{} "{}">'.format(self.__class__.__name__, self)
2796
+
2797
+ def __hash__(self):
2798
+ return hash((self._name, self._kind, self._annotation, self._default))
2799
+
2800
+ def __eq__(self, other):
2801
+ if self is other:
2802
+ return True
2803
+ if not isinstance(other, Parameter):
2804
+ return NotImplemented
2805
+ return (self._name == other._name and
2806
+ self._kind == other._kind and
2807
+ self._default == other._default and
2808
+ self._annotation == other._annotation)
2809
+
2810
+
2811
+ class BoundArguments:
2812
+ """Result of `Signature.bind` call. Holds the mapping of arguments
2813
+ to the function's parameters.
2814
+
2815
+ Has the following public attributes:
2816
+
2817
+ * arguments : dict
2818
+ An ordered mutable mapping of parameters' names to arguments' values.
2819
+ Does not contain arguments' default values.
2820
+ * signature : Signature
2821
+ The Signature object that created this instance.
2822
+ * args : tuple
2823
+ Tuple of positional arguments values.
2824
+ * kwargs : dict
2825
+ Dict of keyword arguments values.
2826
+ """
2827
+
2828
+ __slots__ = ('arguments', '_signature', '__weakref__')
2829
+
2830
+ def __init__(self, signature, arguments):
2831
+ self.arguments = arguments
2832
+ self._signature = signature
2833
+
2834
+ @property
2835
+ def signature(self):
2836
+ return self._signature
2837
+
2838
+ @property
2839
+ def args(self):
2840
+ args = []
2841
+ for param_name, param in self._signature.parameters.items():
2842
+ if param.kind in (_VAR_KEYWORD, _KEYWORD_ONLY):
2843
+ break
2844
+
2845
+ try:
2846
+ arg = self.arguments[param_name]
2847
+ except KeyError:
2848
+ # We're done here. Other arguments
2849
+ # will be mapped in 'BoundArguments.kwargs'
2850
+ break
2851
+ else:
2852
+ if param.kind == _VAR_POSITIONAL:
2853
+ # *args
2854
+ args.extend(arg)
2855
+ else:
2856
+ # plain argument
2857
+ args.append(arg)
2858
+
2859
+ return tuple(args)
2860
+
2861
+ @property
2862
+ def kwargs(self):
2863
+ kwargs = {}
2864
+ kwargs_started = False
2865
+ for param_name, param in self._signature.parameters.items():
2866
+ if not kwargs_started:
2867
+ if param.kind in (_VAR_KEYWORD, _KEYWORD_ONLY):
2868
+ kwargs_started = True
2869
+ else:
2870
+ if param_name not in self.arguments:
2871
+ kwargs_started = True
2872
+ continue
2873
+
2874
+ if not kwargs_started:
2875
+ continue
2876
+
2877
+ try:
2878
+ arg = self.arguments[param_name]
2879
+ except KeyError:
2880
+ pass
2881
+ else:
2882
+ if param.kind == _VAR_KEYWORD:
2883
+ # **kwargs
2884
+ kwargs.update(arg)
2885
+ else:
2886
+ # plain keyword argument
2887
+ kwargs[param_name] = arg
2888
+
2889
+ return kwargs
2890
+
2891
+ def apply_defaults(self):
2892
+ """Set default values for missing arguments.
2893
+
2894
+ For variable-positional arguments (*args) the default is an
2895
+ empty tuple.
2896
+
2897
+ For variable-keyword arguments (**kwargs) the default is an
2898
+ empty dict.
2899
+ """
2900
+ arguments = self.arguments
2901
+ new_arguments = []
2902
+ for name, param in self._signature.parameters.items():
2903
+ try:
2904
+ new_arguments.append((name, arguments[name]))
2905
+ except KeyError:
2906
+ if param.default is not _empty:
2907
+ val = param.default
2908
+ elif param.kind is _VAR_POSITIONAL:
2909
+ val = ()
2910
+ elif param.kind is _VAR_KEYWORD:
2911
+ val = {}
2912
+ else:
2913
+ # This BoundArguments was likely produced by
2914
+ # Signature.bind_partial().
2915
+ continue
2916
+ new_arguments.append((name, val))
2917
+ self.arguments = dict(new_arguments)
2918
+
2919
+ def __eq__(self, other):
2920
+ if self is other:
2921
+ return True
2922
+ if not isinstance(other, BoundArguments):
2923
+ return NotImplemented
2924
+ return (self.signature == other.signature and
2925
+ self.arguments == other.arguments)
2926
+
2927
+ def __setstate__(self, state):
2928
+ self._signature = state['_signature']
2929
+ self.arguments = state['arguments']
2930
+
2931
+ def __getstate__(self):
2932
+ return {'_signature': self._signature, 'arguments': self.arguments}
2933
+
2934
+ def __repr__(self):
2935
+ args = []
2936
+ for arg, value in self.arguments.items():
2937
+ args.append('{}={!r}'.format(arg, value))
2938
+ return '<{} ({})>'.format(self.__class__.__name__, ', '.join(args))
2939
+
2940
+
2941
+ class Signature:
2942
+ """A Signature object represents the overall signature of a function.
2943
+ It stores a Parameter object for each parameter accepted by the
2944
+ function, as well as information specific to the function itself.
2945
+
2946
+ A Signature object has the following public attributes and methods:
2947
+
2948
+ * parameters : OrderedDict
2949
+ An ordered mapping of parameters' names to the corresponding
2950
+ Parameter objects (keyword-only arguments are in the same order
2951
+ as listed in `code.co_varnames`).
2952
+ * return_annotation : object
2953
+ The annotation for the return type of the function if specified.
2954
+ If the function has no annotation for its return type, this
2955
+ attribute is set to `Signature.empty`.
2956
+ * bind(*args, **kwargs) -> BoundArguments
2957
+ Creates a mapping from positional and keyword arguments to
2958
+ parameters.
2959
+ * bind_partial(*args, **kwargs) -> BoundArguments
2960
+ Creates a partial mapping from positional and keyword arguments
2961
+ to parameters (simulating 'functools.partial' behavior.)
2962
+ """
2963
+
2964
+ __slots__ = ('_return_annotation', '_parameters')
2965
+
2966
+ _parameter_cls = Parameter
2967
+ _bound_arguments_cls = BoundArguments
2968
+
2969
+ empty = _empty
2970
+
2971
+ def __init__(self, parameters=None, *, return_annotation=_empty,
2972
+ __validate_parameters__=True):
2973
+ """Constructs Signature from the given list of Parameter
2974
+ objects and 'return_annotation'. All arguments are optional.
2975
+ """
2976
+
2977
+ if parameters is None:
2978
+ params = OrderedDict()
2979
+ else:
2980
+ if __validate_parameters__:
2981
+ params = OrderedDict()
2982
+ top_kind = _POSITIONAL_ONLY
2983
+ seen_default = False
2984
+ seen_var_parameters = set()
2985
+
2986
+ for param in parameters:
2987
+ kind = param.kind
2988
+ name = param.name
2989
+
2990
+ if kind in (_VAR_POSITIONAL, _VAR_KEYWORD):
2991
+ if kind in seen_var_parameters:
2992
+ msg = f'more than one {kind.description} parameter'
2993
+ raise ValueError(msg)
2994
+
2995
+ seen_var_parameters.add(kind)
2996
+
2997
+ if kind < top_kind:
2998
+ msg = (
2999
+ 'wrong parameter order: {} parameter before {} '
3000
+ 'parameter'
3001
+ )
3002
+ msg = msg.format(top_kind.description,
3003
+ kind.description)
3004
+ raise ValueError(msg)
3005
+ elif kind > top_kind:
3006
+ top_kind = kind
3007
+
3008
+ if kind in (_POSITIONAL_ONLY, _POSITIONAL_OR_KEYWORD):
3009
+ if param.default is _empty:
3010
+ if seen_default:
3011
+ # No default for this parameter, but the
3012
+ # previous parameter of had a default
3013
+ msg = 'non-default argument follows default ' \
3014
+ 'argument'
3015
+ raise ValueError(msg)
3016
+ else:
3017
+ # There is a default for this parameter.
3018
+ seen_default = True
3019
+
3020
+ if name in params:
3021
+ msg = 'duplicate parameter name: {!r}'.format(name)
3022
+ raise ValueError(msg)
3023
+
3024
+ params[name] = param
3025
+ else:
3026
+ params = OrderedDict((param.name, param) for param in parameters)
3027
+
3028
+ self._parameters = types.MappingProxyType(params)
3029
+ self._return_annotation = return_annotation
3030
+
3031
+ @classmethod
3032
+ def from_callable(cls, obj, *,
3033
+ follow_wrapped=True, globals=None, locals=None, eval_str=False,
3034
+ annotation_format=Format.VALUE):
3035
+ """Constructs Signature for the given callable object."""
3036
+ return _signature_from_callable(obj, sigcls=cls,
3037
+ follow_wrapper_chains=follow_wrapped,
3038
+ globals=globals, locals=locals, eval_str=eval_str,
3039
+ annotation_format=annotation_format)
3040
+
3041
+ @property
3042
+ def parameters(self):
3043
+ return self._parameters
3044
+
3045
+ @property
3046
+ def return_annotation(self):
3047
+ return self._return_annotation
3048
+
3049
+ def replace(self, *, parameters=_void, return_annotation=_void):
3050
+ """Creates a customized copy of the Signature.
3051
+ Pass 'parameters' and/or 'return_annotation' arguments
3052
+ to override them in the new copy.
3053
+ """
3054
+
3055
+ if parameters is _void:
3056
+ parameters = self.parameters.values()
3057
+
3058
+ if return_annotation is _void:
3059
+ return_annotation = self._return_annotation
3060
+
3061
+ return type(self)(parameters,
3062
+ return_annotation=return_annotation)
3063
+
3064
+ __replace__ = replace
3065
+
3066
+ def _hash_basis(self):
3067
+ params = tuple(param for param in self.parameters.values()
3068
+ if param.kind != _KEYWORD_ONLY)
3069
+
3070
+ kwo_params = {param.name: param for param in self.parameters.values()
3071
+ if param.kind == _KEYWORD_ONLY}
3072
+
3073
+ return params, kwo_params, self.return_annotation
3074
+
3075
+ def __hash__(self):
3076
+ params, kwo_params, return_annotation = self._hash_basis()
3077
+ kwo_params = frozenset(kwo_params.values())
3078
+ return hash((params, kwo_params, return_annotation))
3079
+
3080
+ def __eq__(self, other):
3081
+ if self is other:
3082
+ return True
3083
+ if not isinstance(other, Signature):
3084
+ return NotImplemented
3085
+ return self._hash_basis() == other._hash_basis()
3086
+
3087
+ def _bind(self, args, kwargs, *, partial=False):
3088
+ """Private method. Don't use directly."""
3089
+
3090
+ arguments = {}
3091
+
3092
+ parameters = iter(self.parameters.values())
3093
+ parameters_ex = ()
3094
+ arg_vals = iter(args)
3095
+
3096
+ pos_only_param_in_kwargs = []
3097
+
3098
+ while True:
3099
+ # Let's iterate through the positional arguments and corresponding
3100
+ # parameters
3101
+ try:
3102
+ arg_val = next(arg_vals)
3103
+ except StopIteration:
3104
+ # No more positional arguments
3105
+ try:
3106
+ param = next(parameters)
3107
+ except StopIteration:
3108
+ # No more parameters. That's it. Just need to check that
3109
+ # we have no `kwargs` after this while loop
3110
+ break
3111
+ else:
3112
+ if param.kind == _VAR_POSITIONAL:
3113
+ # That's OK, just empty *args. Let's start parsing
3114
+ # kwargs
3115
+ break
3116
+ elif param.name in kwargs:
3117
+ if param.kind == _POSITIONAL_ONLY:
3118
+ if param.default is _empty:
3119
+ msg = f'missing a required positional-only argument: {param.name!r}'
3120
+ raise TypeError(msg)
3121
+ # Raise a TypeError once we are sure there is no
3122
+ # **kwargs param later.
3123
+ pos_only_param_in_kwargs.append(param)
3124
+ continue
3125
+ parameters_ex = (param,)
3126
+ break
3127
+ elif (param.kind == _VAR_KEYWORD or
3128
+ param.default is not _empty):
3129
+ # That's fine too - we have a default value for this
3130
+ # parameter. So, lets start parsing `kwargs`, starting
3131
+ # with the current parameter
3132
+ parameters_ex = (param,)
3133
+ break
3134
+ else:
3135
+ # No default, not VAR_KEYWORD, not VAR_POSITIONAL,
3136
+ # not in `kwargs`
3137
+ if partial:
3138
+ parameters_ex = (param,)
3139
+ break
3140
+ else:
3141
+ if param.kind == _KEYWORD_ONLY:
3142
+ argtype = ' keyword-only'
3143
+ else:
3144
+ argtype = ''
3145
+ msg = 'missing a required{argtype} argument: {arg!r}'
3146
+ msg = msg.format(arg=param.name, argtype=argtype)
3147
+ raise TypeError(msg) from None
3148
+ else:
3149
+ # We have a positional argument to process
3150
+ try:
3151
+ param = next(parameters)
3152
+ except StopIteration:
3153
+ raise TypeError('too many positional arguments') from None
3154
+ else:
3155
+ if param.kind in (_VAR_KEYWORD, _KEYWORD_ONLY):
3156
+ # Looks like we have no parameter for this positional
3157
+ # argument
3158
+ raise TypeError(
3159
+ 'too many positional arguments') from None
3160
+
3161
+ if param.kind == _VAR_POSITIONAL:
3162
+ # We have an '*args'-like argument, let's fill it with
3163
+ # all positional arguments we have left and move on to
3164
+ # the next phase
3165
+ values = [arg_val]
3166
+ values.extend(arg_vals)
3167
+ arguments[param.name] = tuple(values)
3168
+ break
3169
+
3170
+ if param.name in kwargs and param.kind != _POSITIONAL_ONLY:
3171
+ raise TypeError(
3172
+ 'multiple values for argument {arg!r}'.format(
3173
+ arg=param.name)) from None
3174
+
3175
+ arguments[param.name] = arg_val
3176
+
3177
+ # Now, we iterate through the remaining parameters to process
3178
+ # keyword arguments
3179
+ kwargs_param = None
3180
+ for param in itertools.chain(parameters_ex, parameters):
3181
+ if param.kind == _VAR_KEYWORD:
3182
+ # Memorize that we have a '**kwargs'-like parameter
3183
+ kwargs_param = param
3184
+ continue
3185
+
3186
+ if param.kind == _VAR_POSITIONAL:
3187
+ # Named arguments don't refer to '*args'-like parameters.
3188
+ # We only arrive here if the positional arguments ended
3189
+ # before reaching the last parameter before *args.
3190
+ continue
3191
+
3192
+ param_name = param.name
3193
+ try:
3194
+ arg_val = kwargs.pop(param_name)
3195
+ except KeyError:
3196
+ # We have no value for this parameter. It's fine though,
3197
+ # if it has a default value, or it is an '*args'-like
3198
+ # parameter, left alone by the processing of positional
3199
+ # arguments.
3200
+ if (not partial and param.kind != _VAR_POSITIONAL and
3201
+ param.default is _empty):
3202
+ raise TypeError('missing a required argument: {arg!r}'. \
3203
+ format(arg=param_name)) from None
3204
+
3205
+ else:
3206
+ arguments[param_name] = arg_val
3207
+
3208
+ if kwargs:
3209
+ if kwargs_param is not None:
3210
+ # Process our '**kwargs'-like parameter
3211
+ arguments[kwargs_param.name] = kwargs
3212
+ elif pos_only_param_in_kwargs:
3213
+ raise TypeError(
3214
+ 'got some positional-only arguments passed as '
3215
+ 'keyword arguments: {arg!r}'.format(
3216
+ arg=', '.join(
3217
+ param.name
3218
+ for param in pos_only_param_in_kwargs
3219
+ ),
3220
+ ),
3221
+ )
3222
+ else:
3223
+ raise TypeError(
3224
+ 'got an unexpected keyword argument {arg!r}'.format(
3225
+ arg=next(iter(kwargs))))
3226
+
3227
+ return self._bound_arguments_cls(self, arguments)
3228
+
3229
+ def bind(self, /, *args, **kwargs):
3230
+ """Get a BoundArguments object, that maps the passed `args`
3231
+ and `kwargs` to the function's signature. Raises `TypeError`
3232
+ if the passed arguments can not be bound.
3233
+ """
3234
+ return self._bind(args, kwargs)
3235
+
3236
+ def bind_partial(self, /, *args, **kwargs):
3237
+ """Get a BoundArguments object, that partially maps the
3238
+ passed `args` and `kwargs` to the function's signature.
3239
+ Raises `TypeError` if the passed arguments can not be bound.
3240
+ """
3241
+ return self._bind(args, kwargs, partial=True)
3242
+
3243
+ def __reduce__(self):
3244
+ return (type(self),
3245
+ (tuple(self._parameters.values()),),
3246
+ {'_return_annotation': self._return_annotation})
3247
+
3248
+ def __setstate__(self, state):
3249
+ self._return_annotation = state['_return_annotation']
3250
+
3251
+ def __repr__(self):
3252
+ return '<{} {}>'.format(self.__class__.__name__, self)
3253
+
3254
+ def __str__(self):
3255
+ return self.format()
3256
+
3257
+ def format(self, *, max_width=None, quote_annotation_strings=True):
3258
+ """Create a string representation of the Signature object.
3259
+
3260
+ If *max_width* integer is passed,
3261
+ signature will try to fit into the *max_width*.
3262
+ If signature is longer than *max_width*,
3263
+ all parameters will be on separate lines.
3264
+
3265
+ If *quote_annotation_strings* is False, annotations
3266
+ in the signature are displayed without opening and closing quotation
3267
+ marks. This is useful when the signature was created with the
3268
+ STRING format or when ``from __future__ import annotations`` was used.
3269
+ """
3270
+ result = []
3271
+ render_pos_only_separator = False
3272
+ render_kw_only_separator = True
3273
+ for param in self.parameters.values():
3274
+ formatted = param._format(quote_annotation_strings=quote_annotation_strings)
3275
+
3276
+ kind = param.kind
3277
+
3278
+ if kind == _POSITIONAL_ONLY:
3279
+ render_pos_only_separator = True
3280
+ elif render_pos_only_separator:
3281
+ # It's not a positional-only parameter, and the flag
3282
+ # is set to 'True' (there were pos-only params before.)
3283
+ result.append('/')
3284
+ render_pos_only_separator = False
3285
+
3286
+ if kind == _VAR_POSITIONAL:
3287
+ # OK, we have an '*args'-like parameter, so we won't need
3288
+ # a '*' to separate keyword-only arguments
3289
+ render_kw_only_separator = False
3290
+ elif kind == _KEYWORD_ONLY and render_kw_only_separator:
3291
+ # We have a keyword-only parameter to render and we haven't
3292
+ # rendered an '*args'-like parameter before, so add a '*'
3293
+ # separator to the parameters list ("foo(arg1, *, arg2)" case)
3294
+ result.append('*')
3295
+ # This condition should be only triggered once, so
3296
+ # reset the flag
3297
+ render_kw_only_separator = False
3298
+
3299
+ result.append(formatted)
3300
+
3301
+ if render_pos_only_separator:
3302
+ # There were only positional-only parameters, hence the
3303
+ # flag was not reset to 'False'
3304
+ result.append('/')
3305
+
3306
+ rendered = '({})'.format(', '.join(result))
3307
+ if max_width is not None and len(rendered) > max_width:
3308
+ rendered = '(\n {}\n)'.format(',\n '.join(result))
3309
+
3310
+ if self.return_annotation is not _empty:
3311
+ anno = formatannotation(self.return_annotation,
3312
+ quote_annotation_strings=quote_annotation_strings)
3313
+ rendered += ' -> {}'.format(anno)
3314
+
3315
+ return rendered
3316
+
3317
+
3318
+ def signature(obj, *, follow_wrapped=True, globals=None, locals=None, eval_str=False,
3319
+ annotation_format=Format.VALUE):
3320
+ """Get a signature object for the passed callable."""
3321
+ return Signature.from_callable(obj, follow_wrapped=follow_wrapped,
3322
+ globals=globals, locals=locals, eval_str=eval_str,
3323
+ annotation_format=annotation_format)
3324
+
3325
+
3326
+ class BufferFlags(enum.IntFlag):
3327
+ SIMPLE = 0x0
3328
+ WRITABLE = 0x1
3329
+ FORMAT = 0x4
3330
+ ND = 0x8
3331
+ STRIDES = 0x10 | ND
3332
+ C_CONTIGUOUS = 0x20 | STRIDES
3333
+ F_CONTIGUOUS = 0x40 | STRIDES
3334
+ ANY_CONTIGUOUS = 0x80 | STRIDES
3335
+ INDIRECT = 0x100 | STRIDES
3336
+ CONTIG = ND | WRITABLE
3337
+ CONTIG_RO = ND
3338
+ STRIDED = STRIDES | WRITABLE
3339
+ STRIDED_RO = STRIDES
3340
+ RECORDS = STRIDES | WRITABLE | FORMAT
3341
+ RECORDS_RO = STRIDES | FORMAT
3342
+ FULL = INDIRECT | WRITABLE | FORMAT
3343
+ FULL_RO = INDIRECT | FORMAT
3344
+ READ = 0x100
3345
+ WRITE = 0x200
3346
+
3347
+
3348
+ def _main():
3349
+ """ Logic for inspecting an object given at command line """
3350
+ import argparse
3351
+ import importlib
3352
+
3353
+ parser = argparse.ArgumentParser(color=True)
3354
+ parser.add_argument(
3355
+ 'object',
3356
+ help="The object to be analysed. "
3357
+ "It supports the 'module:qualname' syntax")
3358
+ parser.add_argument(
3359
+ '-d', '--details', action='store_true',
3360
+ help='Display info about the module rather than its source code')
3361
+
3362
+ args = parser.parse_args()
3363
+
3364
+ target = args.object
3365
+ mod_name, has_attrs, attrs = target.partition(":")
3366
+ try:
3367
+ obj = module = importlib.import_module(mod_name)
3368
+ except Exception as exc:
3369
+ msg = "Failed to import {} ({}: {})".format(mod_name,
3370
+ type(exc).__name__,
3371
+ exc)
3372
+ print(msg, file=sys.stderr)
3373
+ sys.exit(2)
3374
+
3375
+ if has_attrs:
3376
+ parts = attrs.split(".")
3377
+ obj = module
3378
+ for part in parts:
3379
+ obj = getattr(obj, part)
3380
+
3381
+ if module.__name__ in sys.builtin_module_names:
3382
+ print("Can't get info for builtin modules.", file=sys.stderr)
3383
+ sys.exit(1)
3384
+
3385
+ if args.details:
3386
+ print('Target: {}'.format(target))
3387
+ print('Origin: {}'.format(getsourcefile(module)))
3388
+ print('Cached: {}'.format(module.__cached__))
3389
+ if obj is module:
3390
+ print('Loader: {}'.format(repr(module.__loader__)))
3391
+ if hasattr(module, '__path__'):
3392
+ print('Submodule search path: {}'.format(module.__path__))
3393
+ else:
3394
+ try:
3395
+ __, lineno = findsource(obj)
3396
+ except Exception:
3397
+ pass
3398
+ else:
3399
+ print('Line: {}'.format(lineno))
3400
+
3401
+ print('\n')
3402
+ else:
3403
+ print(getsource(obj))
3404
+
3405
+
3406
+ if __name__ == "__main__":
3407
+ _main()