omlish 0.0.0.dev2__tar.gz → 0.0.0.dev4__tar.gz

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.

Potentially problematic release.


This version of omlish might be problematic. Click here for more details.

Files changed (212) hide show
  1. {omlish-0.0.0.dev2/omlish.egg-info → omlish-0.0.0.dev4}/PKG-INFO +4 -1
  2. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/__about__.py +1 -2
  3. omlish-0.0.0.dev4/omlish/__init__.py +8 -0
  4. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/argparse.py +4 -4
  5. omlish-0.0.0.dev4/omlish/asyncs/__init__.py +38 -0
  6. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/asyncs/anyio.py +13 -11
  7. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/asyncs/asyncs.py +1 -3
  8. omlish-0.0.0.dev4/omlish/asyncs/flavors.py +201 -0
  9. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/asyncs/futures.py +10 -9
  10. omlish-0.0.0.dev4/omlish/asyncs/trio_asyncio.py +41 -0
  11. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/c3.py +1 -1
  12. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/check.py +3 -3
  13. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/_abc.py +2 -0
  14. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/_io_abc.py +4 -2
  15. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/cache/__init__.py +1 -1
  16. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/cache/descriptor.py +8 -8
  17. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/cache/impl.py +24 -17
  18. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/cache/types.py +1 -1
  19. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/coerce.py +1 -1
  20. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/frozen.py +6 -6
  21. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/identity.py +3 -4
  22. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/mappings.py +2 -2
  23. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/ordered.py +7 -7
  24. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/skiplist.py +1 -1
  25. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/sorted.py +1 -1
  26. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/treap.py +25 -0
  27. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/treapmap.py +57 -5
  28. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/unmodifiable.py +9 -9
  29. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/utils.py +1 -1
  30. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/configs/flattening.py +7 -6
  31. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/configs/props.py +3 -3
  32. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/__init__.py +1 -1
  33. omlish-0.0.0.dev4/omlish/dataclasses/impl/__init__.py +24 -0
  34. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/api.py +10 -11
  35. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/as_.py +4 -4
  36. omlish-0.0.0.dev4/omlish/dataclasses/impl/exceptions.py +2 -0
  37. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/fields.py +7 -7
  38. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/frozen.py +2 -2
  39. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/init.py +5 -5
  40. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/internals.py +1 -1
  41. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/metaclass.py +1 -1
  42. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/order.py +1 -1
  43. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/replace.py +1 -1
  44. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/repr.py +4 -4
  45. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/utils.py +6 -6
  46. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/defs.py +13 -17
  47. {omlish-0.0.0.dev2/omlish → omlish-0.0.0.dev4/omlish/diag}/procfs.py +22 -24
  48. omlish-0.0.0.dev4/omlish/diag/ps.py +47 -0
  49. {omlish-0.0.0.dev2/omlish → omlish-0.0.0.dev4/omlish/diag}/replserver/console.py +18 -20
  50. {omlish-0.0.0.dev2/omlish → omlish-0.0.0.dev4/omlish/diag}/replserver/server.py +8 -8
  51. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dispatch/dispatch.py +5 -8
  52. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dispatch/functions.py +1 -1
  53. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dispatch/methods.py +4 -5
  54. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/docker.py +1 -1
  55. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dynamic.py +10 -10
  56. omlish-0.0.0.dev4/omlish/fnpairs.py +400 -0
  57. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/graphs/trees.py +13 -13
  58. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/__init__.py +7 -7
  59. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/elements.py +1 -1
  60. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/exceptions.py +7 -7
  61. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/impl/elements.py +17 -5
  62. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/impl/injector.py +12 -10
  63. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/impl/inspect.py +2 -2
  64. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/impl/scopes.py +12 -11
  65. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/proxy.py +5 -5
  66. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/iterators.py +19 -24
  67. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/json.py +143 -6
  68. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/__init__.py +13 -4
  69. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/cached.py +2 -5
  70. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/classes/__init__.py +2 -2
  71. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/classes/abstract.py +2 -2
  72. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/classes/restrict.py +14 -14
  73. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/classes/simple.py +1 -1
  74. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/classes/virtual.py +5 -5
  75. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/clsdct.py +1 -1
  76. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/cmp.py +2 -2
  77. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/contextmanagers.py +12 -14
  78. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/descriptors.py +16 -4
  79. omlish-0.0.0.dev4/omlish/lang/exceptions.py +2 -0
  80. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/functions.py +58 -22
  81. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/imports.py +22 -27
  82. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/iterables.py +2 -2
  83. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/maybes.py +1 -0
  84. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/objects.py +15 -9
  85. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/resolving.py +1 -1
  86. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/strings.py +1 -1
  87. omlish-0.0.0.dev4/omlish/lang/sys.py +7 -0
  88. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/typing.py +3 -3
  89. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/libc.py +9 -5
  90. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/logs/_abc.py +5 -1
  91. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/logs/filters.py +2 -0
  92. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/logs/formatters.py +6 -2
  93. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/logs/utils.py +1 -1
  94. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/base.py +3 -3
  95. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/exceptions.py +1 -1
  96. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/global_.py +10 -4
  97. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/objects.py +1 -2
  98. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/registries.py +3 -3
  99. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/utils.py +2 -2
  100. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/values.py +1 -1
  101. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/math.py +9 -9
  102. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/reflect.py +3 -3
  103. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/runmodule.py +0 -0
  104. omlish-0.0.0.dev4/omlish/sql/__init__.py +9 -0
  105. omlish-0.0.0.dev4/omlish/sql/asyncs.py +148 -0
  106. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/stats.py +4 -5
  107. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/term.py +1 -1
  108. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/testing/pydevd.py +28 -6
  109. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/testing/pytest/inject/harness.py +1 -1
  110. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/testing/pytest/plugins/pydevd.py +1 -1
  111. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/testing/pytest/plugins/switches.py +1 -1
  112. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/text/delimit.py +3 -6
  113. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4/omlish.egg-info}/PKG-INFO +4 -1
  114. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish.egg-info/SOURCES.txt +13 -11
  115. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish.egg-info/requires.txt +4 -0
  116. omlish-0.0.0.dev4/pyproject.toml +279 -0
  117. omlish-0.0.0.dev2/omlish/asyncs/__init__.py +0 -17
  118. omlish-0.0.0.dev2/omlish/dataclasses/impl/__init__.py +0 -8
  119. omlish-0.0.0.dev2/omlish/dataclasses/impl/exceptions.py +0 -2
  120. omlish-0.0.0.dev2/omlish/lang/classes/test/test_abstract.py +0 -89
  121. omlish-0.0.0.dev2/omlish/lang/classes/test/test_restrict.py +0 -71
  122. omlish-0.0.0.dev2/omlish/lang/classes/test/test_simple.py +0 -58
  123. omlish-0.0.0.dev2/omlish/lang/classes/test/test_virtual.py +0 -72
  124. omlish-0.0.0.dev2/omlish/lang/exceptions.py +0 -2
  125. omlish-0.0.0.dev2/omlish/sql/__init__.py +0 -0
  126. omlish-0.0.0.dev2/omlish/text/__init__.py +0 -0
  127. omlish-0.0.0.dev2/pyproject.toml +0 -200
  128. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/LICENSE +0 -0
  129. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/MANIFEST.in +0 -0
  130. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/README.md +0 -0
  131. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/asyncs/asyncio.py +0 -0
  132. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/asyncs/trio.py +0 -0
  133. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/cached.py +0 -0
  134. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/__init__.py +0 -0
  135. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/indexed.py +0 -0
  136. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/collections/persistent.py +0 -0
  137. {omlish-0.0.0.dev2/omlish → omlish-0.0.0.dev4/omlish/configs}/__init__.py +0 -0
  138. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/hashing.py +0 -0
  139. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/main.py +0 -0
  140. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/metadata.py +0 -0
  141. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/params.py +0 -0
  142. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/processing.py +0 -0
  143. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/reflect.py +0 -0
  144. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/simple.py +0 -0
  145. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dataclasses/impl/slots.py +0 -0
  146. {omlish-0.0.0.dev2/omlish/configs → omlish-0.0.0.dev4/omlish/diag}/__init__.py +0 -0
  147. {omlish-0.0.0.dev2/omlish → omlish-0.0.0.dev4/omlish/diag}/replserver/__init__.py +0 -0
  148. {omlish-0.0.0.dev2/omlish → omlish-0.0.0.dev4/omlish/diag}/replserver/__main__.py +0 -0
  149. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/dispatch/__init__.py +0 -0
  150. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/graphs/__init__.py +0 -0
  151. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/graphs/dot/__init__.py +0 -0
  152. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/graphs/dot/items.py +0 -0
  153. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/graphs/dot/rendering.py +0 -0
  154. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/graphs/dot/utils.py +0 -0
  155. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/http/__init__.py +0 -0
  156. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/http/consts.py +0 -0
  157. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/http/wsgi.py +0 -0
  158. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/binder.py +0 -0
  159. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/bindings.py +0 -0
  160. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/eagers.py +0 -0
  161. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/impl/__init__.py +0 -0
  162. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/impl/bindings.py +0 -0
  163. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/impl/private.py +0 -0
  164. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/impl/providers.py +0 -0
  165. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/injector.py +0 -0
  166. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/inspect.py +0 -0
  167. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/keys.py +0 -0
  168. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/managed.py +0 -0
  169. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/overrides.py +0 -0
  170. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/private.py +0 -0
  171. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/providers.py +0 -0
  172. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/scopes.py +0 -0
  173. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/inject/types.py +0 -0
  174. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/datetimes.py +0 -0
  175. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/lang/timeouts.py +0 -0
  176. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/logs/__init__.py +0 -0
  177. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/logs/configs.py +0 -0
  178. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/__init__.py +0 -0
  179. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/any.py +0 -0
  180. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/base64.py +0 -0
  181. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/dataclasses.py +0 -0
  182. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/datetimes.py +0 -0
  183. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/enums.py +0 -0
  184. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/factories.py +0 -0
  185. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/iterables.py +0 -0
  186. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/mappings.py +0 -0
  187. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/naming.py +0 -0
  188. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/optionals.py +0 -0
  189. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/polymorphism.py +0 -0
  190. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/primitives.py +0 -0
  191. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/standard.py +0 -0
  192. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/marshal/uuids.py +0 -0
  193. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/os.py +0 -0
  194. /omlish-0.0.0.dev2/omlish/sql/_abcs.py → /omlish-0.0.0.dev4/omlish/sql/_abc.py +0 -0
  195. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/sql/dbs.py +0 -0
  196. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/testing/__init__.py +0 -0
  197. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/testing/pytest/__init__.py +0 -0
  198. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/testing/pytest/helpers.py +0 -0
  199. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/testing/pytest/inject/__init__.py +0 -0
  200. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/testing/pytest/plugins/__init__.py +0 -0
  201. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/testing/pytest/plugins/_registry.py +0 -0
  202. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/testing/pytest/plugins/logging.py +0 -0
  203. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/testing/pytest/plugins/repeat.py +0 -0
  204. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/testing/pytest/plugins/skips.py +0 -0
  205. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/testing/pytest/plugins/spacing.py +0 -0
  206. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/testing/testing.py +0 -0
  207. {omlish-0.0.0.dev2/omlish/lang/classes/test → omlish-0.0.0.dev4/omlish/text}/__init__.py +0 -0
  208. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/text/indent.py +0 -0
  209. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish/text/parts.py +0 -0
  210. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish.egg-info/dependency_links.txt +0 -0
  211. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/omlish.egg-info/top_level.txt +0 -0
  212. {omlish-0.0.0.dev2 → omlish-0.0.0.dev4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omlish
3
- Version: 0.0.0.dev2
3
+ Version: 0.0.0.dev4
4
4
  Summary: omlish
5
5
  Author: wrmsr
6
6
  License: BSD-3-Clause
@@ -13,6 +13,9 @@ Requires-Python: >=3.12
13
13
  License-File: LICENSE
14
14
  Provides-Extra: async
15
15
  Requires-Dist: anyio; extra == "async"
16
+ Provides-Extra: trio
17
+ Requires-Dist: trio; extra == "trio"
18
+ Requires-Dist: trio-asyncio; extra == "trio"
16
19
  Provides-Extra: http
17
20
  Requires-Dist: httpx; extra == "http"
18
21
  Provides-Extra: sql
@@ -1,7 +1,6 @@
1
- __name__ = 'omlish'
2
1
  __author__ = 'wrmsr'
3
2
  __url__ = 'https://github.com/wrmsr/omlish'
4
3
  __license__ = 'BSD-3-Clause'
5
4
  __requires_python__ = '>=3.12'
6
5
 
7
- __version__ = '0.0.0.dev2'
6
+ __version__ = '0.0.0.dev4'
@@ -0,0 +1,8 @@
1
+ import sys as _sys
2
+
3
+
4
+ REQUIRED_PYTHON_VERSION = (3, 12)
5
+
6
+
7
+ if _sys.version_info < REQUIRED_PYTHON_VERSION:
8
+ raise EnvironmentError(f'Python version {_sys.version_info=} < {REQUIRED_PYTHON_VERSION}')
@@ -164,7 +164,7 @@ class _CliMeta(type):
164
164
  namespace['_parser'] = parser
165
165
 
166
166
  subparsers = parser.add_subparsers()
167
- for name, obj in objs.items():
167
+ for att, obj in objs.items():
168
168
  if isinstance(obj, Command):
169
169
  if obj.parent is not None:
170
170
  raise NotImplementedError
@@ -174,14 +174,14 @@ class _CliMeta(type):
174
174
  cparser.set_defaults(_cmd=obj)
175
175
 
176
176
  elif isinstance(obj, Arg):
177
- if name in anns:
178
- akwargs = get_arg_ann_kwargs(anns[name])
177
+ if att in anns:
178
+ akwargs = get_arg_ann_kwargs(anns[att])
179
179
  obj.kwargs = {**akwargs, **obj.kwargs}
180
180
  if not obj.dest:
181
181
  if 'dest' in obj.kwargs:
182
182
  obj.dest = obj.kwargs['dest']
183
183
  else:
184
- obj.dest = obj.kwargs['dest'] = name # type: ignore
184
+ obj.dest = obj.kwargs['dest'] = att # type: ignore
185
185
  parser.add_argument(*obj.args, **obj.kwargs)
186
186
 
187
187
  else:
@@ -0,0 +1,38 @@
1
+ from .asyncs import ( # noqa
2
+ SyncableIterable,
3
+ async_list,
4
+ sync_await,
5
+ sync_list,
6
+ syncable_iterable,
7
+ )
8
+
9
+ from .flavors import ( # noqa
10
+ ContextManagerAdapter,
11
+ Flavor,
12
+ adapt,
13
+ adapt_context,
14
+ from_anyio,
15
+ from_anyio_context,
16
+ from_asyncio,
17
+ from_asyncio_context,
18
+ from_trio,
19
+ from_trio_context,
20
+ get_flavor,
21
+ mark_anyio,
22
+ mark_asyncio,
23
+ mark_flavor,
24
+ mark_trio,
25
+ )
26
+
27
+ from .futures import ( # noqa
28
+ FutureError,
29
+ FutureTimeoutError,
30
+ ImmediateExecutor,
31
+ new_thread_or_immediate_executor,
32
+ wait_dependent_futures,
33
+ wait_futures,
34
+ )
35
+
36
+ from .trio_asyncio import ( # noqa
37
+ with_trio_asyncio_loop,
38
+ )
@@ -39,11 +39,12 @@ def split_memory_object_streams(
39
39
 
40
40
 
41
41
  # FIXME: https://github.com/python/mypy/issues/15238
42
- # def create_memory_object_stream[T](max_buffer_size: float = 0) -> tuple[
43
- # anyio.streams.memory.MemoryObjectSendStream[T],
44
- # anyio.streams.memory.MemoryObjectReceiveStream[T],
45
- # ]:
46
- # return anyio.create_memory_object_stream[T](max_buffer_size)
42
+ # FIXME: https://youtrack.jetbrains.com/issues?q=tag:%20%7BPEP%20695%7D
43
+ def create_memory_object_stream[T](max_buffer_size: float = 0) -> tuple[
44
+ anyio.streams.memory.MemoryObjectSendStream[T],
45
+ anyio.streams.memory.MemoryObjectReceiveStream[T],
46
+ ]:
47
+ return anyio.create_memory_object_stream[T](max_buffer_size) # noqa
47
48
 
48
49
 
49
50
  def staple_memory_object_stream(
@@ -57,12 +58,13 @@ def staple_memory_object_stream(
57
58
 
58
59
 
59
60
  # FIXME: https://github.com/python/mypy/issues/15238
60
- # def staple_memory_object_stream2[T](max_buffer_size: float = 0) -> anyio.streams.stapled.StapledObjectStream[T]:
61
- # send, receive = anyio.create_memory_object_stream[T](max_buffer_size)
62
- # return anyio.streams.stapled.StapledObjectStream(
63
- # check.isinstance(send, anyio.streams.memory.MemoryObjectSendStream), # type: ignore
64
- # check.isinstance(receive, anyio.streams.memory.MemoryObjectReceiveStream), # type: ignore
65
- # )
61
+ # FIXME: https://youtrack.jetbrains.com/issues?q=tag:%20%7BPEP%20695%7D
62
+ def staple_memory_object_stream2[T](max_buffer_size: float = 0) -> anyio.streams.stapled.StapledObjectStream[T]:
63
+ send, receive = anyio.create_memory_object_stream[T](max_buffer_size)
64
+ return anyio.streams.stapled.StapledObjectStream(
65
+ check.isinstance(send, anyio.streams.memory.MemoryObjectSendStream), # type: ignore
66
+ check.isinstance(receive, anyio.streams.memory.MemoryObjectReceiveStream), # type: ignore
67
+ )
66
68
 
67
69
 
68
70
  async def gather(*fns: ta.Callable[..., ta.Awaitable[T]], take_first: bool = False) -> list[lang.Maybe[T]]:
@@ -26,10 +26,8 @@ def sync_await(fn: ta.Callable[..., T], *args, **kwargs) -> T:
26
26
 
27
27
  cr = gate()
28
28
  with contextlib.closing(cr):
29
- try:
29
+ with contextlib.suppress(StopIteration):
30
30
  cr.send(None)
31
- except StopIteration:
32
- pass
33
31
  if ret is missing or cr.cr_await is not None or cr.cr_running:
34
32
  raise TypeError('Not terminated')
35
33
 
@@ -0,0 +1,201 @@
1
+ """
2
+ TODO:
3
+ - 'get current'? -> sniffio..
4
+ - mark whole class / module?
5
+ - sync/greenlet bridge
6
+ """
7
+ import abc
8
+ import dataclasses as dc
9
+ import enum
10
+ import typing as ta
11
+
12
+ from .. import lang
13
+ from .trio_asyncio import check_trio_asyncio
14
+
15
+ if ta.TYPE_CHECKING:
16
+ import sniffio
17
+ import trio_asyncio
18
+ else:
19
+ sniffio = lang.proxy_import('sniffio')
20
+ trio_asyncio = lang.proxy_import('trio_asyncio')
21
+
22
+
23
+ T = ta.TypeVar('T')
24
+
25
+
26
+ ##
27
+
28
+
29
+ _FLAVOR_ATTR = '__async_flavor__'
30
+
31
+
32
+ class _MISSING(lang.Marker):
33
+ pass
34
+
35
+
36
+ class Flavor(enum.Enum):
37
+ ASYNCIO = enum.auto()
38
+ TRIO = enum.auto()
39
+ ANYIO = enum.auto()
40
+
41
+
42
+ def mark_flavor(f: Flavor):
43
+ if not isinstance(f, Flavor):
44
+ raise TypeError(f)
45
+
46
+ def inner(fn):
47
+ setattr(fn, _FLAVOR_ATTR, f)
48
+ return fn
49
+
50
+ return inner
51
+
52
+
53
+ mark_asyncio = mark_flavor(Flavor.ASYNCIO)
54
+ mark_anyio = mark_flavor(Flavor.ANYIO)
55
+ mark_trio = mark_flavor(Flavor.TRIO)
56
+
57
+ PACKAGE_FLAVORS: ta.MutableMapping[str, Flavor] = {
58
+ 'anyio': Flavor.ANYIO,
59
+ 'asyncio': Flavor.ASYNCIO,
60
+ 'trio': Flavor.TRIO,
61
+
62
+ 'sqlalchemy.ext.asyncio': Flavor.ASYNCIO,
63
+ }
64
+
65
+ _MODULE_FLAVOR_CACHE: dict[str, Flavor | None] = {}
66
+
67
+
68
+ def _get_module_flavor(p: str) -> Flavor | None:
69
+ try:
70
+ return _MODULE_FLAVOR_CACHE[p]
71
+ except KeyError:
72
+ pass
73
+ pf: Flavor | None = None
74
+ for cp, cf in PACKAGE_FLAVORS.items():
75
+ if p.startswith(cp) and (len(cp) == len(p) or p[len(cp)] == '.'):
76
+ pf = cf
77
+ break
78
+ _MODULE_FLAVOR_CACHE[p] = pf
79
+ return pf
80
+
81
+
82
+ def get_flavor(obj: ta.Any, default: ta.Union[Flavor, type[_MISSING], None] = _MISSING) -> Flavor:
83
+ u = lang.unwrap_func(obj)
84
+
85
+ try:
86
+ return getattr(u, _FLAVOR_ATTR)
87
+ except AttributeError:
88
+ pass
89
+
90
+ if (mn := getattr(u, '__module__', None)) is not None:
91
+ if (pf := _get_module_flavor(mn)):
92
+ return pf
93
+
94
+ if default is not _MISSING:
95
+ return default # type: ignore
96
+
97
+ raise TypeError(f'not marked with flavor: {obj}')
98
+
99
+
100
+ ##
101
+
102
+
103
+ class Adapter(lang.Abstract):
104
+ _FROM_METHODS_BY_FLAVOR: ta.ClassVar[ta.Mapping[Flavor, str]] = {
105
+ Flavor.ANYIO: 'from_anyio',
106
+ Flavor.ASYNCIO: 'from_asyncio',
107
+ Flavor.TRIO: 'from_trio',
108
+ }
109
+
110
+ def adapt(self, fn, fl=None):
111
+ if fl is None:
112
+ fl = get_flavor(fn)
113
+ return getattr(self, self._FROM_METHODS_BY_FLAVOR[fl])(fn)
114
+
115
+ #
116
+
117
+ def from_anyio(self, fn):
118
+ return fn
119
+
120
+ @abc.abstractmethod
121
+ def from_asyncio(self, fn):
122
+ raise NotImplementedError
123
+
124
+ @abc.abstractmethod
125
+ def from_trio(self, fn):
126
+ raise NotImplementedError
127
+
128
+
129
+ class AsyncioAdapter(Adapter):
130
+ def from_asyncio(self, fn):
131
+ return fn
132
+
133
+ def from_trio(self, fn):
134
+ check_trio_asyncio()
135
+ return trio_asyncio.trio_as_aio(fn)
136
+
137
+
138
+ class TrioAdapter(Adapter):
139
+ def from_asyncio(self, fn):
140
+ check_trio_asyncio()
141
+ return trio_asyncio.aio_as_trio(fn)
142
+
143
+ def from_trio(self, fn):
144
+ return fn
145
+
146
+
147
+ _ADAPTERS_BY_BACKEND: ta.Mapping[str, Adapter] = {
148
+ 'asyncio': AsyncioAdapter(),
149
+ 'trio': TrioAdapter(),
150
+ }
151
+
152
+
153
+ def get_adapter() -> Adapter:
154
+ return _ADAPTERS_BY_BACKEND[sniffio.current_async_library()]
155
+
156
+
157
+ def adapt(fn, fl=None):
158
+ return get_adapter().adapt(fn, fl)
159
+
160
+
161
+ def from_anyio(fn):
162
+ return get_adapter().from_anyio(fn)
163
+
164
+
165
+ def from_asyncio(fn):
166
+ return get_adapter().from_asyncio(fn)
167
+
168
+
169
+ def from_trio(fn):
170
+ return get_adapter().from_trio(fn)
171
+
172
+
173
+ ##
174
+
175
+
176
+ @dc.dataclass(frozen=True)
177
+ class ContextManagerAdapter(ta.Generic[T]):
178
+ obj: ta.AsyncContextManager[T]
179
+ adapt: ta.Callable[[ta.Callable], ta.Callable]
180
+
181
+ async def __aenter__(self, *args: ta.Any, **kwargs: ta.Any) -> T:
182
+ return await self.adapt(self.obj.__aenter__)(*args, **kwargs)
183
+
184
+ async def __aexit__(self, exc_type, exc_val, exc_tb):
185
+ return await self.adapt(self.obj.__aexit__)(exc_type, exc_val, exc_tb)
186
+
187
+
188
+ def adapt_context(obj):
189
+ return ContextManagerAdapter(obj, get_adapter().adapt)
190
+
191
+
192
+ def from_anyio_context(obj):
193
+ return ContextManagerAdapter(obj, get_adapter().from_anyio)
194
+
195
+
196
+ def from_asyncio_context(obj):
197
+ return ContextManagerAdapter(obj, get_adapter().from_asyncio)
198
+
199
+
200
+ def from_trio_context(obj):
201
+ return ContextManagerAdapter(obj, get_adapter().from_trio)
@@ -5,12 +5,13 @@ import typing as ta
5
5
 
6
6
 
7
7
  T = ta.TypeVar('T')
8
+ P = ta.ParamSpec('P')
8
9
 
9
10
 
10
11
  ##
11
12
 
12
13
 
13
- class FutureException(Exception, ta.Generic[T]):
14
+ class FutureError(Exception, ta.Generic[T]):
14
15
 
15
16
  def __init__(self, future: cf.Future, target: T | None = None) -> None:
16
17
  super().__init__()
@@ -37,7 +38,7 @@ class FutureException(Exception, ta.Generic[T]):
37
38
  __str__ = __repr__
38
39
 
39
40
 
40
- class FutureTimeoutException(Exception):
41
+ class FutureTimeoutError(Exception):
41
42
  pass
42
43
 
43
44
 
@@ -61,14 +62,14 @@ def wait_futures(
61
62
  if cancel_on_exception:
62
63
  for cancel_fut in not_done:
63
64
  cancel_fut.cancel()
64
- raise FutureException(fut) from fut.exception()
65
+ raise FutureError(fut) from fut.exception()
65
66
 
66
67
  not_done -= done
67
68
  if not not_done:
68
69
  return True
69
70
 
70
71
  if time.time() >= (start + timeout_s):
71
- raise FutureTimeoutException
72
+ raise FutureTimeoutError
72
73
  time.sleep(tick_interval_s)
73
74
 
74
75
  return False
@@ -91,7 +92,7 @@ def wait_dependent_futures(
91
92
  if fn in dependency_sets_by_fn[dep]:
92
93
  raise Exception(f'Cyclic dependencies: {fn} <-> {dep}', fn, dep)
93
94
 
94
- dependent_sets_by_fn: ta.Dict[ta.Callable, ta.Set[ta.Callable]] = {fn: set() for fn in dependency_sets_by_fn}
95
+ dependent_sets_by_fn: dict[ta.Callable, set[ta.Callable]] = {fn: set() for fn in dependency_sets_by_fn}
95
96
  for fn, deps in dependency_sets_by_fn.items():
96
97
  for dep in deps:
97
98
  dependent_sets_by_fn[dep].add(fn)
@@ -114,7 +115,7 @@ def wait_dependent_futures(
114
115
  for fut in done:
115
116
  if fut.exception():
116
117
  cancel()
117
- raise FutureException(fut) from fut.exception()
118
+ raise FutureError(fut) from fut.exception()
118
119
 
119
120
  fn = fns_by_fut[fut]
120
121
  for dependent_fn in dependent_sets_by_fn.get(fn, set()):
@@ -128,11 +129,11 @@ def wait_dependent_futures(
128
129
 
129
130
  if time.time() >= (start + timeout_s):
130
131
  cancel()
131
- raise FutureTimeoutException
132
+ raise FutureTimeoutError
132
133
 
133
134
  remaining_fns = {fn: deps for fn, deps in remaining_dep_sets_by_fn.items() if deps}
134
135
  if remaining_fns:
135
- raise Exception(f"Unfinished fns: {remaining_fns}", remaining_fns)
136
+ raise Exception(f'Unfinished fns: {remaining_fns}', remaining_fns)
136
137
 
137
138
  futs_by_fn = {fn: fut for fut, fn in fns_by_fut.items()}
138
139
  return futs_by_fn
@@ -147,7 +148,7 @@ class ImmediateExecutor(cf.Executor):
147
148
  super().__init__()
148
149
  self._immediate_exceptions = immediate_exceptions
149
150
 
150
- def submit(self, fn, *args, **kwargs):
151
+ def submit(self, fn: ta.Callable[P, T], /, *args: P.args, **kwargs: P.kwargs) -> cf.Future[T]:
151
152
  future: ta.Any = cf.Future()
152
153
  try:
153
154
  result = fn(*args, **kwargs)
@@ -0,0 +1,41 @@
1
+ import functools
2
+ import typing as ta
3
+
4
+ from .. import lang
5
+
6
+ if ta.TYPE_CHECKING:
7
+ import asyncio
8
+ import sniffio
9
+ import trio_asyncio
10
+ else:
11
+ asyncio = lang.proxy_import('asyncio')
12
+ sniffio = lang.proxy_import('sniffio')
13
+ trio_asyncio = lang.proxy_import('trio_asyncio')
14
+
15
+
16
+ def check_trio_asyncio() -> None:
17
+ if trio_asyncio.current_loop.get() is None:
18
+ raise RuntimeError('trio_asyncio loop not running')
19
+
20
+
21
+ def with_trio_asyncio_loop(fn, *, wait=False):
22
+ @functools.wraps(fn)
23
+ async def inner(*args, **kwargs):
24
+ if trio_asyncio.current_loop.get() is not None:
25
+ await fn(*args, **kwargs)
26
+ return
27
+
28
+ if sniffio.current_async_library() != 'trio':
29
+ raise RuntimeError('trio loop not running')
30
+
31
+ loop: asyncio.BaseEventLoop
32
+ async with trio_asyncio.open_loop() as loop:
33
+ try:
34
+ await fn(*args, **kwargs)
35
+ finally:
36
+ if wait:
37
+ # FIXME: lol
38
+ while asyncio.all_tasks(loop):
39
+ await asyncio.sleep(.2)
40
+
41
+ return inner
@@ -113,7 +113,7 @@ def mro(
113
113
  abstract_c3_mros = [mro(base, abcs=abcs, get_bases=get_bases, is_subclass=is_subclass) for base in abstract_bases]
114
114
  other_c3_mros = [mro(base, abcs=abcs, get_bases=get_bases, is_subclass=is_subclass) for base in other_bases]
115
115
  return merge(
116
- [[cls]] +
116
+ [[cls]] + # noqa
117
117
  explicit_c3_mros + abstract_c3_mros + other_c3_mros +
118
118
  [explicit_bases] + [abstract_bases] + [other_bases],
119
119
  )
@@ -9,7 +9,7 @@ import typing as ta
9
9
  T = ta.TypeVar('T')
10
10
  SizedT = ta.TypeVar('SizedT', bound=ta.Sized)
11
11
 
12
- Message = ta.Union[str, ta.Callable[..., str | None], None]
12
+ Message = str | ta.Callable[..., str | None] | None
13
13
 
14
14
  _NONE_TYPE = type(None)
15
15
 
@@ -52,7 +52,7 @@ def _unpack_isinstance_spec(spec: ta.Any) -> tuple:
52
52
  if not _isinstance(spec, tuple):
53
53
  spec = (spec,)
54
54
  if None in spec:
55
- spec = tuple(filter(None, spec)) + (_NONE_TYPE,)
55
+ spec = tuple(filter(None, spec)) + (_NONE_TYPE,) # noqa
56
56
  if ta.Any in spec:
57
57
  spec = (object,)
58
58
  return spec
@@ -206,7 +206,7 @@ def is_not(v: T, *os: ta.Any, msg: Message = None) -> T:
206
206
  return v
207
207
 
208
208
 
209
- def callable(v: T, msg: Message = None) -> T:
209
+ def callable(v: T, msg: Message = None) -> T: # noqa
210
210
  if not _callable(v):
211
211
  _raise(TypeError, 'Must be callable', msg, v)
212
212
  return v # type: ignore
@@ -1,3 +1,5 @@
1
+ # ruff: noqa: ANN204
2
+
1
3
  class Hashable:
2
4
  def __hash__(self): ...
3
5
 
@@ -1,3 +1,5 @@
1
+ # ruff: noqa: ANN204
2
+
1
3
  class IOBase:
2
4
  def seek(self, pos, whence=0): ...
3
5
 
@@ -16,7 +18,7 @@ class IOBase:
16
18
  def writable(self): ...
17
19
 
18
20
  @property
19
- def closed(self): ...
21
+ def closed(self): ... # noqa
20
22
 
21
23
  def __enter__(self): ...
22
24
 
@@ -64,7 +66,7 @@ class TextIOBase(IOBase):
64
66
 
65
67
  def truncate(self, pos=None): ...
66
68
 
67
- def readline(self): ...
69
+ def readline(self, size=-1): ...
68
70
 
69
71
  def detach(self): ...
70
72
 
@@ -8,4 +8,4 @@ from .impl import LRU # noqa
8
8
  from .impl import new_cache # noqa
9
9
  from .types import Cache # noqa
10
10
  from .types import Eviction # noqa
11
- from .types import OverweightException # noqa
11
+ from .types import OverweightError # noqa
@@ -26,7 +26,7 @@ class _HashedSeq(list):
26
26
 
27
27
  def __init__(
28
28
  self,
29
- tup: ta.Tuple,
29
+ tup: tuple,
30
30
  hasher: ta.Callable[[ta.Any], int] = hash,
31
31
  ) -> None:
32
32
  super().__init__()
@@ -34,19 +34,19 @@ class _HashedSeq(list):
34
34
  self[:] = tup
35
35
  self.hash_value = hasher(tup)
36
36
 
37
- def __hash__(self):
37
+ def __hash__(self) -> int: # type: ignore
38
38
  return self.hash_value
39
39
 
40
40
 
41
41
  def _make_key(
42
- args: ta.Tuple,
43
- kwargs: ta.Dict[str, ta.Any],
42
+ args: tuple,
43
+ kwargs: dict[str, ta.Any],
44
44
  typed: bool,
45
45
  kwd_mark=(object(),),
46
46
  fasttypes=frozenset([int, str, frozenset, type(None)]),
47
- tuple=tuple,
48
- type=type,
49
- len=len,
47
+ tuple=tuple, # noqa
48
+ type=type, # noqa
49
+ len=len, # noqa
50
50
  ) -> ta.Any:
51
51
  key = args
52
52
  if kwargs:
@@ -109,7 +109,7 @@ class _CacheDescriptor:
109
109
  def _build(self, fn: ta.Callable, cache: Cache):
110
110
  def miss(key, result):
111
111
  if isinstance(result, Ignore):
112
- return result._value
112
+ return result._value # noqa
113
113
  else:
114
114
  cache[key] = result
115
115
  return result