omlish 0.0.0.dev423__py3-none-any.whl → 0.0.0.dev484__py3-none-any.whl

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 (464) hide show
  1. omlish/{.manifests.json → .omlish-manifests.json} +12 -0
  2. omlish/__about__.py +21 -18
  3. omlish/argparse/all.py +17 -9
  4. omlish/argparse/cli.py +16 -3
  5. omlish/argparse/utils.py +21 -0
  6. omlish/asyncs/all.py +0 -13
  7. omlish/asyncs/asyncio/rlock.py +110 -0
  8. omlish/asyncs/asyncio/subprocesses.py +2 -2
  9. omlish/asyncs/asyncio/sync.py +43 -0
  10. omlish/asyncs/asyncio/utils.py +2 -0
  11. omlish/asyncs/ioproxy/proxy.py +1 -1
  12. omlish/asyncs/sync.py +25 -0
  13. omlish/bootstrap/_marshal.py +1 -1
  14. omlish/bootstrap/diag.py +12 -21
  15. omlish/bootstrap/main.py +2 -5
  16. omlish/bootstrap/sys.py +27 -28
  17. omlish/c3.py +4 -1
  18. omlish/cexts/include/omlish/omlish.hh +1 -0
  19. omlish/collections/__init__.py +13 -1
  20. omlish/collections/attrregistry.py +210 -0
  21. omlish/collections/cache/impl.py +3 -2
  22. omlish/collections/identity.py +1 -0
  23. omlish/collections/mappings.py +28 -0
  24. omlish/collections/trie.py +5 -1
  25. omlish/collections/utils.py +77 -0
  26. omlish/concurrent/__init__.py +0 -11
  27. omlish/concurrent/all.py +18 -0
  28. omlish/concurrent/futures.py +25 -0
  29. omlish/concurrent/threadlets.py +1 -1
  30. omlish/configs/processing/flattening.py +1 -1
  31. omlish/configs/processing/merging.py +8 -6
  32. omlish/configs/types.py +1 -1
  33. omlish/daemons/__init__.py +70 -0
  34. omlish/daemons/daemon.py +2 -2
  35. omlish/daemons/launching.py +2 -2
  36. omlish/daemons/reparent.py +2 -3
  37. omlish/daemons/spawning.py +2 -3
  38. omlish/dataclasses/__init__.py +5 -5
  39. omlish/dataclasses/errors.py +1 -1
  40. omlish/dataclasses/impl/api/classes/decorator.py +3 -0
  41. omlish/dataclasses/impl/api/classes/make.py +4 -1
  42. omlish/dataclasses/impl/concerns/doc.py +1 -1
  43. omlish/dataclasses/impl/concerns/repr.py +15 -2
  44. omlish/dataclasses/impl/configs.py +97 -36
  45. omlish/dataclasses/impl/generation/compilation.py +21 -19
  46. omlish/dataclasses/impl/generation/globals.py +1 -0
  47. omlish/dataclasses/impl/generation/ops.py +1 -0
  48. omlish/dataclasses/impl/generation/processor.py +105 -24
  49. omlish/dataclasses/impl/processing/base.py +8 -0
  50. omlish/dataclasses/impl/processing/driving.py +8 -8
  51. omlish/dataclasses/specs.py +34 -2
  52. omlish/dataclasses/tools/as_.py +0 -12
  53. omlish/dataclasses/tools/modifiers.py +5 -0
  54. omlish/dataclasses/tools/static.py +1 -1
  55. omlish/diag/_pycharm/runhack.py +1 -1
  56. omlish/diag/{lslocks.py → cmds/lslocks.py} +6 -6
  57. omlish/diag/{lsof.py → cmds/lsof.py} +6 -6
  58. omlish/diag/{ps.py → cmds/ps.py} +6 -6
  59. omlish/diag/procfs.py +4 -4
  60. omlish/diag/pycharm.py +16 -2
  61. omlish/diag/pydevd.py +58 -40
  62. omlish/diag/replserver/console.py +3 -3
  63. omlish/diag/replserver/server.py +2 -2
  64. omlish/dispatch/__init__.py +18 -12
  65. omlish/dispatch/methods.py +50 -140
  66. omlish/dom/rendering.py +1 -1
  67. omlish/formats/dotenv.py +8 -8
  68. omlish/formats/json/stream/__init__.py +18 -3
  69. omlish/formats/json/stream/building.py +2 -2
  70. omlish/formats/json/stream/lexing.py +401 -67
  71. omlish/formats/json/stream/parsing.py +32 -10
  72. omlish/formats/json/stream/rendering.py +6 -6
  73. omlish/formats/json/stream/utils.py +132 -30
  74. omlish/formats/json5/literals.py +7 -4
  75. omlish/formats/json5/parsing.py +33 -79
  76. omlish/formats/json5/stream.py +77 -0
  77. omlish/formats/logfmt.py +8 -2
  78. omlish/funcs/genmachine.py +2 -2
  79. omlish/funcs/guard.py +225 -0
  80. omlish/graphs/dot/rendering.py +1 -1
  81. omlish/http/all.py +122 -53
  82. omlish/http/asgi.py +2 -2
  83. omlish/http/clients/__init__.py +0 -34
  84. omlish/http/clients/asyncs.py +153 -0
  85. omlish/http/clients/base.py +63 -122
  86. omlish/http/clients/coro/sync.py +171 -0
  87. omlish/http/clients/default.py +209 -30
  88. omlish/http/clients/executor.py +56 -0
  89. omlish/http/clients/httpx.py +78 -13
  90. omlish/http/clients/middleware.py +181 -0
  91. omlish/http/clients/sync.py +151 -0
  92. omlish/http/clients/syncasync.py +49 -0
  93. omlish/http/clients/urllib.py +8 -5
  94. omlish/http/coro/client/{client.py → connection.py} +43 -37
  95. omlish/http/coro/client/headers.py +5 -5
  96. omlish/http/coro/client/response.py +37 -38
  97. omlish/http/coro/client/status.py +4 -4
  98. omlish/http/coro/{client/io.py → io.py} +19 -2
  99. omlish/http/coro/server/fdio.py +10 -9
  100. omlish/http/coro/server/server.py +14 -41
  101. omlish/http/coro/server/sockets.py +7 -6
  102. omlish/http/flasky/__init__.py +40 -0
  103. omlish/http/flasky/_compat.py +2 -0
  104. omlish/http/flasky/api.py +82 -0
  105. omlish/http/flasky/app.py +203 -0
  106. omlish/http/flasky/cvs.py +59 -0
  107. omlish/http/flasky/requests.py +20 -0
  108. omlish/http/flasky/responses.py +23 -0
  109. omlish/http/flasky/routes.py +23 -0
  110. omlish/http/flasky/types.py +15 -0
  111. omlish/http/handlers.py +3 -2
  112. omlish/http/headers.py +69 -35
  113. omlish/http/sse.py +1 -1
  114. omlish/http/urls.py +67 -0
  115. omlish/inject/__init__.py +173 -126
  116. omlish/inject/_dataclasses.py +4986 -0
  117. omlish/inject/binder.py +10 -49
  118. omlish/inject/elements.py +27 -0
  119. omlish/inject/{utils.py → helpers/constfn.py} +3 -3
  120. omlish/inject/{tags.py → helpers/id.py} +2 -2
  121. omlish/inject/helpers/multis.py +143 -0
  122. omlish/inject/helpers/wrappers.py +54 -0
  123. omlish/inject/impl/elements.py +52 -22
  124. omlish/inject/impl/injector.py +76 -49
  125. omlish/inject/impl/inspect.py +11 -1
  126. omlish/inject/impl/maysync.py +43 -0
  127. omlish/inject/impl/multis.py +10 -7
  128. omlish/inject/impl/privates.py +8 -8
  129. omlish/inject/impl/providers.py +23 -34
  130. omlish/inject/impl/providersmap.py +43 -0
  131. omlish/inject/impl/proxy.py +0 -2
  132. omlish/inject/impl/scopes.py +19 -23
  133. omlish/inject/impl/sync.py +41 -0
  134. omlish/inject/injector.py +37 -8
  135. omlish/inject/inspect.py +35 -0
  136. omlish/inject/listeners.py +4 -4
  137. omlish/inject/managed.py +54 -18
  138. omlish/inject/maysync.py +27 -0
  139. omlish/inject/multis.py +8 -0
  140. omlish/inject/overrides.py +3 -3
  141. omlish/inject/privates.py +6 -0
  142. omlish/inject/providers.py +8 -1
  143. omlish/inject/scopes.py +40 -12
  144. omlish/inject/sync.py +49 -0
  145. omlish/io/buffers.py +119 -1
  146. omlish/io/readers.py +29 -0
  147. omlish/iterators/__init__.py +28 -20
  148. omlish/iterators/transforms.py +204 -0
  149. omlish/lang/__init__.py +240 -129
  150. omlish/lang/_asyncs.cc +186 -0
  151. omlish/lang/asyncs.py +67 -43
  152. omlish/lang/{attrs.py → attrstorage.py} +15 -15
  153. omlish/lang/cached/property.py +2 -2
  154. omlish/lang/casing.py +11 -0
  155. omlish/lang/classes/bindable.py +2 -3
  156. omlish/lang/classes/restrict.py +8 -0
  157. omlish/lang/classes/simple.py +26 -4
  158. omlish/lang/collections.py +1 -1
  159. omlish/lang/contextmanagers.py +59 -9
  160. omlish/lang/functions.py +31 -33
  161. omlish/lang/imports/_capture.cc +103 -0
  162. omlish/lang/imports/capture.py +902 -0
  163. omlish/lang/imports/lazy.py +0 -25
  164. omlish/lang/imports/proxy.py +559 -0
  165. omlish/lang/iterables.py +2 -2
  166. omlish/lang/lazyglobals.py +49 -14
  167. omlish/lang/maybes.py +2 -1
  168. omlish/lang/maysync.py +2 -2
  169. omlish/lang/params.py +17 -0
  170. omlish/lang/recursion.py +0 -1
  171. omlish/lang/resources.py +1 -1
  172. omlish/lang/sequences.py +124 -0
  173. omlish/lifecycles/contextmanagers.py +1 -2
  174. omlish/lifecycles/controller.py +1 -2
  175. omlish/lite/abstract.py +54 -24
  176. omlish/lite/asyncs.py +146 -0
  177. omlish/lite/attrops.py +415 -0
  178. omlish/lite/cached.py +57 -1
  179. omlish/lite/contextmanagers.py +4 -4
  180. omlish/lite/dataclasses.py +55 -0
  181. omlish/lite/inject.py +5 -4
  182. omlish/lite/marshal.py +1 -0
  183. omlish/lite/maybes.py +10 -2
  184. omlish/lite/maysync.py +22 -5
  185. omlish/lite/pycharm.py +1 -1
  186. omlish/lite/strings.py +0 -7
  187. omlish/lite/timing.py +6 -3
  188. omlish/lite/typing.py +6 -0
  189. omlish/logs/_amalg.py +8 -0
  190. omlish/logs/all.py +59 -31
  191. omlish/logs/base.py +204 -0
  192. omlish/logs/contexts.py +171 -0
  193. omlish/logs/formatters.py +13 -0
  194. omlish/logs/infos.py +377 -0
  195. omlish/logs/levels.py +97 -0
  196. omlish/logs/modules.py +13 -0
  197. omlish/logs/protocols.py +32 -0
  198. omlish/logs/standard.py +20 -15
  199. omlish/logs/std/configs.py +29 -0
  200. omlish/logs/{filters.py → std/filters.py} +1 -1
  201. omlish/logs/std/formatters.py +25 -0
  202. omlish/logs/std/handlers.py +19 -0
  203. omlish/logs/{json.py → std/json.py} +2 -2
  204. omlish/logs/std/loggers.py +48 -0
  205. omlish/logs/{proxy.py → std/proxy.py} +3 -3
  206. omlish/logs/std/records.py +671 -0
  207. omlish/logs/typed/bindings.py +108 -37
  208. omlish/logs/typed/types.py +17 -1
  209. omlish/logs/typed/values.py +2 -2
  210. omlish/logs/utils.py +60 -4
  211. omlish/logs/warnings.py +8 -0
  212. omlish/manifests/loading.py +8 -1
  213. omlish/marshal/__init__.py +54 -22
  214. omlish/marshal/_dataclasses.py +2774 -0
  215. omlish/marshal/base/configs.py +12 -0
  216. omlish/marshal/base/contexts.py +36 -21
  217. omlish/marshal/base/funcs.py +8 -11
  218. omlish/marshal/base/options.py +8 -0
  219. omlish/marshal/base/registries.py +146 -44
  220. omlish/marshal/base/types.py +40 -16
  221. omlish/marshal/composite/iterables.py +33 -20
  222. omlish/marshal/composite/literals.py +20 -18
  223. omlish/marshal/composite/mappings.py +36 -23
  224. omlish/marshal/composite/maybes.py +29 -19
  225. omlish/marshal/composite/newtypes.py +16 -16
  226. omlish/marshal/composite/optionals.py +14 -14
  227. omlish/marshal/composite/special.py +15 -15
  228. omlish/marshal/composite/unions/literals.py +93 -0
  229. omlish/marshal/composite/unions/primitives.py +103 -0
  230. omlish/marshal/factories/invalidate.py +18 -68
  231. omlish/marshal/factories/method.py +26 -0
  232. omlish/marshal/factories/moduleimport/factories.py +22 -65
  233. omlish/marshal/factories/multi.py +13 -25
  234. omlish/marshal/factories/recursive.py +42 -56
  235. omlish/marshal/factories/typecache.py +29 -74
  236. omlish/marshal/factories/typemap.py +42 -43
  237. omlish/marshal/objects/dataclasses.py +129 -106
  238. omlish/marshal/objects/marshal.py +18 -14
  239. omlish/marshal/objects/namedtuples.py +48 -42
  240. omlish/marshal/objects/unmarshal.py +19 -15
  241. omlish/marshal/polymorphism/marshal.py +9 -11
  242. omlish/marshal/polymorphism/metadata.py +16 -5
  243. omlish/marshal/polymorphism/standard.py +13 -1
  244. omlish/marshal/polymorphism/unions.py +15 -105
  245. omlish/marshal/polymorphism/unmarshal.py +9 -10
  246. omlish/marshal/singular/enums.py +14 -18
  247. omlish/marshal/standard.py +10 -6
  248. omlish/marshal/trivial/any.py +1 -1
  249. omlish/marshal/trivial/forbidden.py +21 -26
  250. omlish/math/fixed.py +2 -2
  251. omlish/metadata.py +23 -1
  252. omlish/os/atomics.py +2 -2
  253. omlish/os/forkhooks.py +4 -0
  254. omlish/os/journald.py +3 -3
  255. omlish/os/pidfiles/pinning.py +2 -2
  256. omlish/reflect/ops.py +9 -0
  257. omlish/reflect/types.py +44 -8
  258. omlish/secrets/marshal.py +1 -1
  259. omlish/secrets/secrets.py +6 -3
  260. omlish/sockets/addresses.py +1 -1
  261. omlish/sockets/server/handlers.py +2 -2
  262. omlish/sockets/server/server.py +4 -3
  263. omlish/sockets/server/ssl.py +2 -2
  264. omlish/specs/jmespath/__init__.py +12 -3
  265. omlish/specs/jmespath/_dataclasses.py +2893 -0
  266. omlish/specs/jmespath/ast.py +1 -1
  267. omlish/specs/jsonrpc/__init__.py +13 -0
  268. omlish/specs/jsonrpc/_marshal.py +32 -23
  269. omlish/specs/jsonrpc/conns.py +10 -7
  270. omlish/specs/jsonschema/_marshal.py +1 -1
  271. omlish/specs/jsonschema/keywords/__init__.py +7 -0
  272. omlish/specs/jsonschema/keywords/_dataclasses.py +1644 -0
  273. omlish/specs/openapi/_marshal.py +31 -22
  274. omlish/sql/__init__.py +15 -20
  275. omlish/sql/{tabledefs/alchemy.py → alchemy/tabledefs.py} +2 -2
  276. omlish/sql/queries/_marshal.py +3 -3
  277. omlish/sql/queries/params.py +1 -1
  278. omlish/sql/queries/rendering.py +1 -1
  279. omlish/sql/tabledefs/_marshal.py +1 -1
  280. omlish/subprocesses/all.py +135 -0
  281. omlish/subprocesses/base.py +8 -3
  282. omlish/subprocesses/editor.py +1 -1
  283. omlish/sync.py +181 -20
  284. omlish/term/alt.py +60 -0
  285. omlish/term/confirm.py +8 -8
  286. omlish/term/pager.py +235 -0
  287. omlish/term/terminfo.py +935 -0
  288. omlish/term/termstate.py +67 -0
  289. omlish/term/vt100/terminal.py +0 -3
  290. omlish/testing/pytest/plugins/asyncs/fixtures.py +4 -1
  291. omlish/testing/pytest/plugins/skips.py +2 -5
  292. omlish/testing/unittest/main.py +3 -3
  293. omlish/text/docwrap/__init__.py +3 -0
  294. omlish/text/docwrap/__main__.py +11 -0
  295. omlish/text/docwrap/api.py +83 -0
  296. omlish/text/docwrap/cli.py +86 -0
  297. omlish/text/docwrap/groups.py +84 -0
  298. omlish/text/docwrap/lists.py +167 -0
  299. omlish/text/docwrap/parts.py +146 -0
  300. omlish/text/docwrap/reflowing.py +106 -0
  301. omlish/text/docwrap/rendering.py +151 -0
  302. omlish/text/docwrap/utils.py +11 -0
  303. omlish/text/docwrap/wrapping.py +59 -0
  304. omlish/text/filecache.py +2 -2
  305. omlish/text/lorem.py +6 -0
  306. omlish/text/parts.py +2 -2
  307. omlish/text/textwrap.py +51 -0
  308. omlish/typedvalues/__init__.py +1 -1
  309. omlish/typedvalues/marshal.py +85 -59
  310. omlish/typedvalues/values.py +2 -1
  311. {omlish-0.0.0.dev423.dist-info → omlish-0.0.0.dev484.dist-info}/METADATA +36 -38
  312. {omlish-0.0.0.dev423.dist-info → omlish-0.0.0.dev484.dist-info}/RECORD +323 -385
  313. omlish/asyncs/bluelet/LICENSE +0 -6
  314. omlish/asyncs/bluelet/all.py +0 -67
  315. omlish/asyncs/bluelet/api.py +0 -23
  316. omlish/asyncs/bluelet/core.py +0 -178
  317. omlish/asyncs/bluelet/events.py +0 -79
  318. omlish/asyncs/bluelet/files.py +0 -80
  319. omlish/asyncs/bluelet/runner.py +0 -417
  320. omlish/asyncs/bluelet/sockets.py +0 -216
  321. omlish/asyncs/bridge.py +0 -359
  322. omlish/asyncs/utils.py +0 -18
  323. omlish/dataclasses/impl/generation/mangling.py +0 -18
  324. omlish/defs.py +0 -216
  325. omlish/dispatch/_dispatch2.py +0 -69
  326. omlish/dispatch/_dispatch3.py +0 -108
  327. omlish/dynamic.py +0 -219
  328. omlish/formats/json/Json.g4 +0 -77
  329. omlish/formats/json/_antlr/JsonLexer.py +0 -109
  330. omlish/formats/json/_antlr/JsonListener.py +0 -61
  331. omlish/formats/json/_antlr/JsonParser.py +0 -457
  332. omlish/formats/json/_antlr/JsonVisitor.py +0 -42
  333. omlish/formats/json5/Json5.g4 +0 -168
  334. omlish/formats/json5/_antlr/Json5Lexer.py +0 -354
  335. omlish/formats/json5/_antlr/Json5Listener.py +0 -79
  336. omlish/formats/json5/_antlr/Json5Parser.py +0 -617
  337. omlish/formats/json5/_antlr/Json5Visitor.py +0 -52
  338. omlish/funcs/match.py +0 -227
  339. omlish/io/trampoline.py +0 -289
  340. omlish/lang/imports/proxyinit.py +0 -665
  341. omlish/lite/logs.py +0 -4
  342. omlish/lite/reprs.py +0 -85
  343. omlish/logs/abc.py +0 -319
  344. omlish/logs/callers.py +0 -67
  345. omlish/logs/color.py +0 -27
  346. omlish/logs/configs.py +0 -29
  347. omlish/logs/handlers.py +0 -17
  348. omlish/logs/protocol.py +0 -218
  349. omlish/logs/timing.py +0 -58
  350. omlish/marshal/factories/match.py +0 -34
  351. omlish/marshal/factories/simple.py +0 -28
  352. omlish/specs/irc/messages/base.py +0 -49
  353. omlish/specs/irc/messages/formats.py +0 -92
  354. omlish/specs/irc/messages/messages.py +0 -774
  355. omlish/specs/irc/messages/parsing.py +0 -98
  356. omlish/specs/irc/numerics/formats.py +0 -97
  357. omlish/specs/irc/numerics/numerics.py +0 -865
  358. omlish/specs/irc/numerics/types.py +0 -59
  359. omlish/specs/irc/protocol/LICENSE +0 -11
  360. omlish/specs/irc/protocol/__init__.py +0 -61
  361. omlish/specs/irc/protocol/consts.py +0 -6
  362. omlish/specs/irc/protocol/errors.py +0 -30
  363. omlish/specs/irc/protocol/message.py +0 -21
  364. omlish/specs/irc/protocol/nuh.py +0 -55
  365. omlish/specs/irc/protocol/parsing.py +0 -158
  366. omlish/specs/irc/protocol/rendering.py +0 -153
  367. omlish/specs/irc/protocol/tags.py +0 -102
  368. omlish/specs/irc/protocol/utils.py +0 -30
  369. omlish/specs/proto/Protobuf3.g4 +0 -396
  370. omlish/specs/proto/__init__.py +0 -0
  371. omlish/specs/proto/_antlr/Protobuf3Lexer.py +0 -340
  372. omlish/specs/proto/_antlr/Protobuf3Listener.py +0 -448
  373. omlish/specs/proto/_antlr/Protobuf3Parser.py +0 -3909
  374. omlish/specs/proto/_antlr/Protobuf3Visitor.py +0 -257
  375. omlish/specs/proto/_antlr/__init__.py +0 -0
  376. omlish/specs/proto/nodes.py +0 -54
  377. omlish/specs/proto/parsing.py +0 -97
  378. omlish/sql/parsing/Minisql.g4 +0 -292
  379. omlish/sql/parsing/__init__.py +0 -0
  380. omlish/sql/parsing/_antlr/MinisqlLexer.py +0 -322
  381. omlish/sql/parsing/_antlr/MinisqlListener.py +0 -511
  382. omlish/sql/parsing/_antlr/MinisqlParser.py +0 -3763
  383. omlish/sql/parsing/_antlr/MinisqlVisitor.py +0 -292
  384. omlish/sql/parsing/_antlr/__init__.py +0 -0
  385. omlish/sql/parsing/parsing.py +0 -119
  386. omlish/text/antlr/__init__.py +0 -3
  387. omlish/text/antlr/_runtime/BufferedTokenStream.py +0 -305
  388. omlish/text/antlr/_runtime/CommonTokenFactory.py +0 -64
  389. omlish/text/antlr/_runtime/CommonTokenStream.py +0 -90
  390. omlish/text/antlr/_runtime/FileStream.py +0 -30
  391. omlish/text/antlr/_runtime/InputStream.py +0 -90
  392. omlish/text/antlr/_runtime/IntervalSet.py +0 -183
  393. omlish/text/antlr/_runtime/LICENSE.txt +0 -28
  394. omlish/text/antlr/_runtime/LL1Analyzer.py +0 -176
  395. omlish/text/antlr/_runtime/Lexer.py +0 -332
  396. omlish/text/antlr/_runtime/ListTokenSource.py +0 -147
  397. omlish/text/antlr/_runtime/Parser.py +0 -583
  398. omlish/text/antlr/_runtime/ParserInterpreter.py +0 -173
  399. omlish/text/antlr/_runtime/ParserRuleContext.py +0 -189
  400. omlish/text/antlr/_runtime/PredictionContext.py +0 -632
  401. omlish/text/antlr/_runtime/Recognizer.py +0 -150
  402. omlish/text/antlr/_runtime/RuleContext.py +0 -230
  403. omlish/text/antlr/_runtime/StdinStream.py +0 -14
  404. omlish/text/antlr/_runtime/Token.py +0 -158
  405. omlish/text/antlr/_runtime/TokenStreamRewriter.py +0 -258
  406. omlish/text/antlr/_runtime/Utils.py +0 -36
  407. omlish/text/antlr/_runtime/__init__.py +0 -2
  408. omlish/text/antlr/_runtime/_all.py +0 -24
  409. omlish/text/antlr/_runtime/_pygrun.py +0 -174
  410. omlish/text/antlr/_runtime/atn/ATN.py +0 -135
  411. omlish/text/antlr/_runtime/atn/ATNConfig.py +0 -162
  412. omlish/text/antlr/_runtime/atn/ATNConfigSet.py +0 -215
  413. omlish/text/antlr/_runtime/atn/ATNDeserializationOptions.py +0 -27
  414. omlish/text/antlr/_runtime/atn/ATNDeserializer.py +0 -449
  415. omlish/text/antlr/_runtime/atn/ATNSimulator.py +0 -50
  416. omlish/text/antlr/_runtime/atn/ATNState.py +0 -267
  417. omlish/text/antlr/_runtime/atn/ATNType.py +0 -20
  418. omlish/text/antlr/_runtime/atn/LexerATNSimulator.py +0 -573
  419. omlish/text/antlr/_runtime/atn/LexerAction.py +0 -301
  420. omlish/text/antlr/_runtime/atn/LexerActionExecutor.py +0 -146
  421. omlish/text/antlr/_runtime/atn/ParserATNSimulator.py +0 -1664
  422. omlish/text/antlr/_runtime/atn/PredictionMode.py +0 -502
  423. omlish/text/antlr/_runtime/atn/SemanticContext.py +0 -333
  424. omlish/text/antlr/_runtime/atn/Transition.py +0 -271
  425. omlish/text/antlr/_runtime/atn/__init__.py +0 -4
  426. omlish/text/antlr/_runtime/dfa/DFA.py +0 -136
  427. omlish/text/antlr/_runtime/dfa/DFASerializer.py +0 -76
  428. omlish/text/antlr/_runtime/dfa/DFAState.py +0 -129
  429. omlish/text/antlr/_runtime/dfa/__init__.py +0 -4
  430. omlish/text/antlr/_runtime/error/DiagnosticErrorListener.py +0 -111
  431. omlish/text/antlr/_runtime/error/ErrorListener.py +0 -75
  432. omlish/text/antlr/_runtime/error/ErrorStrategy.py +0 -712
  433. omlish/text/antlr/_runtime/error/Errors.py +0 -176
  434. omlish/text/antlr/_runtime/error/__init__.py +0 -4
  435. omlish/text/antlr/_runtime/tree/Chunk.py +0 -33
  436. omlish/text/antlr/_runtime/tree/ParseTreeMatch.py +0 -121
  437. omlish/text/antlr/_runtime/tree/ParseTreePattern.py +0 -75
  438. omlish/text/antlr/_runtime/tree/ParseTreePatternMatcher.py +0 -377
  439. omlish/text/antlr/_runtime/tree/RuleTagToken.py +0 -53
  440. omlish/text/antlr/_runtime/tree/TokenTagToken.py +0 -50
  441. omlish/text/antlr/_runtime/tree/Tree.py +0 -194
  442. omlish/text/antlr/_runtime/tree/Trees.py +0 -114
  443. omlish/text/antlr/_runtime/tree/__init__.py +0 -2
  444. omlish/text/antlr/_runtime/xpath/XPath.py +0 -278
  445. omlish/text/antlr/_runtime/xpath/XPathLexer.py +0 -98
  446. omlish/text/antlr/_runtime/xpath/__init__.py +0 -4
  447. omlish/text/antlr/delimit.py +0 -109
  448. omlish/text/antlr/dot.py +0 -41
  449. omlish/text/antlr/errors.py +0 -14
  450. omlish/text/antlr/input.py +0 -96
  451. omlish/text/antlr/parsing.py +0 -54
  452. omlish/text/antlr/runtime.py +0 -102
  453. omlish/text/antlr/utils.py +0 -38
  454. /omlish/{asyncs/bluelet → cexts}/__init__.py +0 -0
  455. /omlish/{formats/json/_antlr → diag/cmds}/__init__.py +0 -0
  456. /omlish/{formats/json5/_antlr → http/clients/coro}/__init__.py +0 -0
  457. /omlish/{specs/irc → inject/helpers}/__init__.py +0 -0
  458. /omlish/{specs/irc/messages → logs/std}/__init__.py +0 -0
  459. /omlish/logs/{noisy.py → std/noisy.py} +0 -0
  460. /omlish/{specs/irc/numerics → marshal/composite/unions}/__init__.py +0 -0
  461. {omlish-0.0.0.dev423.dist-info → omlish-0.0.0.dev484.dist-info}/WHEEL +0 -0
  462. {omlish-0.0.0.dev423.dist-info → omlish-0.0.0.dev484.dist-info}/entry_points.txt +0 -0
  463. {omlish-0.0.0.dev423.dist-info → omlish-0.0.0.dev484.dist-info}/licenses/LICENSE +0 -0
  464. {omlish-0.0.0.dev423.dist-info → omlish-0.0.0.dev484.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,2893 @@
1
+ # @omlish-generated
2
+ # type: ignore
3
+ # ruff: noqa
4
+ # flake8: noqa
5
+ import dataclasses
6
+ import reprlib
7
+ import types
8
+
9
+
10
+ ##
11
+
12
+
13
+ REGISTRY = {}
14
+
15
+
16
+ def _register(**kwargs):
17
+ def inner(fn):
18
+ REGISTRY[kwargs['plan_repr']] = (kwargs, fn)
19
+ return fn
20
+ return inner
21
+
22
+
23
+ ##
24
+
25
+
26
+ @_register(
27
+ plan_repr=(
28
+ "Plans(tup=(CopyPlan(fields=('node',)), EqPlan(fields=('node',)), FrozenPlan(fields=('node',), allow_dynamic_du"
29
+ "nder_attrs=False), HashPlan(action='add', fields=('node',), cache=False), InitPlan(fields=(InitPlan.Field(name"
30
+ "='node', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, ove"
31
+ "rride=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='self',"
32
+ " std_params=('node',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), valida"
33
+ "te_fns=()), ReprPlan(fields=(ReprPlan.Field(name='node', kw_only=False, fn=None),), id=False, terse=False, def"
34
+ "ault_fn=None)))"
35
+ ),
36
+ plan_repr_sha1='04121723da73369a153101f1c1cd7d127fdcfad7',
37
+ op_ref_idents=(
38
+ '__dataclass__init__fields__0__annotation',
39
+ ),
40
+ cls_names=(
41
+ ('omlish.specs.jmespath', 'Flatten'),
42
+ ),
43
+ )
44
+ def _process_dataclass__04121723da73369a153101f1c1cd7d127fdcfad7():
45
+ def _process_dataclass(
46
+ *,
47
+ __dataclass__cls,
48
+ __dataclass__init__fields__0__annotation,
49
+ __dataclass__FieldFnValidationError, # noqa
50
+ __dataclass__FieldTypeValidationError, # noqa
51
+ __dataclass__FnValidationError, # noqa
52
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
53
+ __dataclass__FunctionType=types.FunctionType, # noqa
54
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
55
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
56
+ __dataclass__None=None, # noqa
57
+ __dataclass__TypeError=TypeError, # noqa
58
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
59
+ __dataclass__isinstance=isinstance, # noqa
60
+ __dataclass__object_setattr=object.__setattr__, # noqa
61
+ __dataclass__property=property, # noqa
62
+ ):
63
+ def __copy__(self):
64
+ if self.__class__ is not __dataclass__cls:
65
+ raise TypeError(self)
66
+ return __dataclass__cls( # noqa
67
+ node=self.node,
68
+ )
69
+
70
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
71
+ if '__copy__' in __dataclass__cls.__dict__:
72
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
73
+ setattr(__dataclass__cls, '__copy__', __copy__)
74
+
75
+ def __eq__(self, other):
76
+ if self is other:
77
+ return True
78
+ if self.__class__ is not other.__class__:
79
+ return NotImplemented
80
+ return (
81
+ self.node == other.node
82
+ )
83
+
84
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
85
+ if '__eq__' in __dataclass__cls.__dict__:
86
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
87
+ setattr(__dataclass__cls, '__eq__', __eq__)
88
+
89
+ __dataclass___setattr_frozen_fields = {
90
+ 'node',
91
+ }
92
+
93
+ def __setattr__(self, name, value):
94
+ if (
95
+ type(self) is __dataclass__cls
96
+ or name in __dataclass___setattr_frozen_fields
97
+ ):
98
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
99
+ super(__dataclass__cls, self).__setattr__(name, value)
100
+
101
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
102
+ if '__setattr__' in __dataclass__cls.__dict__:
103
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
104
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
105
+
106
+ __dataclass___delattr_frozen_fields = {
107
+ 'node',
108
+ }
109
+
110
+ def __delattr__(self, name):
111
+ if (
112
+ type(self) is __dataclass__cls
113
+ or name in __dataclass___delattr_frozen_fields
114
+ ):
115
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
116
+ super(__dataclass__cls, self).__delattr__(name)
117
+
118
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
119
+ if '__delattr__' in __dataclass__cls.__dict__:
120
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
121
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
122
+
123
+ def __hash__(self):
124
+ return hash((
125
+ self.node,
126
+ ))
127
+
128
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
129
+ setattr(__dataclass__cls, '__hash__', __hash__)
130
+
131
+ def __init__(
132
+ self,
133
+ node: __dataclass__init__fields__0__annotation,
134
+ ) -> __dataclass__None:
135
+ __dataclass__object_setattr(self, 'node', node)
136
+
137
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
138
+ if '__init__' in __dataclass__cls.__dict__:
139
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
140
+ setattr(__dataclass__cls, '__init__', __init__)
141
+
142
+ @__dataclass___recursive_repr()
143
+ def __repr__(self):
144
+ parts = []
145
+ parts.append(f"node={self.node!r}")
146
+ return (
147
+ f"{self.__class__.__qualname__}("
148
+ f"{', '.join(parts)}"
149
+ f")"
150
+ )
151
+
152
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
153
+ if '__repr__' in __dataclass__cls.__dict__:
154
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
155
+ setattr(__dataclass__cls, '__repr__', __repr__)
156
+
157
+ return _process_dataclass
158
+
159
+
160
+ @_register(
161
+ plan_repr=(
162
+ "Plans(tup=(CopyPlan(fields=('name', 'first', 'second')), EqPlan(fields=('name', 'first', 'second')), FrozenPla"
163
+ "n(fields=('name', 'first', 'second'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('name'"
164
+ ", 'first', 'second'), cache=False), InitPlan(fields=(InitPlan.Field(name='name', annotation=OpRef(name='init.f"
165
+ "ields.0.annotation'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INST"
166
+ "ANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='first', annotation=OpRef(name='init.f"
167
+ "ields.1.annotation'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INST"
168
+ "ANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='second', annotation=OpRef(name='init."
169
+ "fields.2.annotation'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INS"
170
+ "TANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=('name', 'first', 'second'"
171
+ "), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan"
172
+ "(fields=(ReprPlan.Field(name='name', kw_only=False, fn=None), ReprPlan.Field(name='first', kw_only=False, fn=N"
173
+ "one), ReprPlan.Field(name='second', kw_only=False, fn=None)), id=False, terse=False, default_fn=None)))"
174
+ ),
175
+ plan_repr_sha1='17f73a891c5ca759d782b4a50d841d4e19830e44',
176
+ op_ref_idents=(
177
+ '__dataclass__init__fields__0__annotation',
178
+ '__dataclass__init__fields__1__annotation',
179
+ '__dataclass__init__fields__2__annotation',
180
+ ),
181
+ cls_names=(
182
+ ('omlish.specs.jmespath', 'Comparator'),
183
+ ),
184
+ )
185
+ def _process_dataclass__17f73a891c5ca759d782b4a50d841d4e19830e44():
186
+ def _process_dataclass(
187
+ *,
188
+ __dataclass__cls,
189
+ __dataclass__init__fields__0__annotation,
190
+ __dataclass__init__fields__1__annotation,
191
+ __dataclass__init__fields__2__annotation,
192
+ __dataclass__FieldFnValidationError, # noqa
193
+ __dataclass__FieldTypeValidationError, # noqa
194
+ __dataclass__FnValidationError, # noqa
195
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
196
+ __dataclass__FunctionType=types.FunctionType, # noqa
197
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
198
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
199
+ __dataclass__None=None, # noqa
200
+ __dataclass__TypeError=TypeError, # noqa
201
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
202
+ __dataclass__isinstance=isinstance, # noqa
203
+ __dataclass__object_setattr=object.__setattr__, # noqa
204
+ __dataclass__property=property, # noqa
205
+ ):
206
+ def __copy__(self):
207
+ if self.__class__ is not __dataclass__cls:
208
+ raise TypeError(self)
209
+ return __dataclass__cls( # noqa
210
+ name=self.name,
211
+ first=self.first,
212
+ second=self.second,
213
+ )
214
+
215
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
216
+ if '__copy__' in __dataclass__cls.__dict__:
217
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
218
+ setattr(__dataclass__cls, '__copy__', __copy__)
219
+
220
+ def __eq__(self, other):
221
+ if self is other:
222
+ return True
223
+ if self.__class__ is not other.__class__:
224
+ return NotImplemented
225
+ return (
226
+ self.name == other.name and
227
+ self.first == other.first and
228
+ self.second == other.second
229
+ )
230
+
231
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
232
+ if '__eq__' in __dataclass__cls.__dict__:
233
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
234
+ setattr(__dataclass__cls, '__eq__', __eq__)
235
+
236
+ __dataclass___setattr_frozen_fields = {
237
+ 'name',
238
+ 'first',
239
+ 'second',
240
+ }
241
+
242
+ def __setattr__(self, name, value):
243
+ if (
244
+ type(self) is __dataclass__cls
245
+ or name in __dataclass___setattr_frozen_fields
246
+ ):
247
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
248
+ super(__dataclass__cls, self).__setattr__(name, value)
249
+
250
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
251
+ if '__setattr__' in __dataclass__cls.__dict__:
252
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
253
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
254
+
255
+ __dataclass___delattr_frozen_fields = {
256
+ 'name',
257
+ 'first',
258
+ 'second',
259
+ }
260
+
261
+ def __delattr__(self, name):
262
+ if (
263
+ type(self) is __dataclass__cls
264
+ or name in __dataclass___delattr_frozen_fields
265
+ ):
266
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
267
+ super(__dataclass__cls, self).__delattr__(name)
268
+
269
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
270
+ if '__delattr__' in __dataclass__cls.__dict__:
271
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
272
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
273
+
274
+ def __hash__(self):
275
+ return hash((
276
+ self.name,
277
+ self.first,
278
+ self.second,
279
+ ))
280
+
281
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
282
+ setattr(__dataclass__cls, '__hash__', __hash__)
283
+
284
+ def __init__(
285
+ self,
286
+ name: __dataclass__init__fields__0__annotation,
287
+ first: __dataclass__init__fields__1__annotation,
288
+ second: __dataclass__init__fields__2__annotation,
289
+ ) -> __dataclass__None:
290
+ __dataclass__object_setattr(self, 'name', name)
291
+ __dataclass__object_setattr(self, 'first', first)
292
+ __dataclass__object_setattr(self, 'second', second)
293
+
294
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
295
+ if '__init__' in __dataclass__cls.__dict__:
296
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
297
+ setattr(__dataclass__cls, '__init__', __init__)
298
+
299
+ @__dataclass___recursive_repr()
300
+ def __repr__(self):
301
+ parts = []
302
+ parts.append(f"name={self.name!r}")
303
+ parts.append(f"first={self.first!r}")
304
+ parts.append(f"second={self.second!r}")
305
+ return (
306
+ f"{self.__class__.__qualname__}("
307
+ f"{', '.join(parts)}"
308
+ f")"
309
+ )
310
+
311
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
312
+ if '__repr__' in __dataclass__cls.__dict__:
313
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
314
+ setattr(__dataclass__cls, '__repr__', __repr__)
315
+
316
+ return _process_dataclass
317
+
318
+
319
+ @_register(
320
+ plan_repr=(
321
+ "Plans(tup=(CopyPlan(fields=('expr',)), EqPlan(fields=('expr',)), FrozenPlan(fields=('expr',), allow_dynamic_du"
322
+ "nder_attrs=False), HashPlan(action='add', fields=('expr',), cache=False), InitPlan(fields=(InitPlan.Field(name"
323
+ "='expr', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, ove"
324
+ "rride=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='self',"
325
+ " std_params=('expr',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), valida"
326
+ "te_fns=()), ReprPlan(fields=(ReprPlan.Field(name='expr', kw_only=False, fn=None),), id=False, terse=False, def"
327
+ "ault_fn=None)))"
328
+ ),
329
+ plan_repr_sha1='40ccd63db7a447b608d0875571d487f96ef3af93',
330
+ op_ref_idents=(
331
+ '__dataclass__init__fields__0__annotation',
332
+ ),
333
+ cls_names=(
334
+ ('omlish.specs.jmespath', 'NotExpression'),
335
+ ),
336
+ )
337
+ def _process_dataclass__40ccd63db7a447b608d0875571d487f96ef3af93():
338
+ def _process_dataclass(
339
+ *,
340
+ __dataclass__cls,
341
+ __dataclass__init__fields__0__annotation,
342
+ __dataclass__FieldFnValidationError, # noqa
343
+ __dataclass__FieldTypeValidationError, # noqa
344
+ __dataclass__FnValidationError, # noqa
345
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
346
+ __dataclass__FunctionType=types.FunctionType, # noqa
347
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
348
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
349
+ __dataclass__None=None, # noqa
350
+ __dataclass__TypeError=TypeError, # noqa
351
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
352
+ __dataclass__isinstance=isinstance, # noqa
353
+ __dataclass__object_setattr=object.__setattr__, # noqa
354
+ __dataclass__property=property, # noqa
355
+ ):
356
+ def __copy__(self):
357
+ if self.__class__ is not __dataclass__cls:
358
+ raise TypeError(self)
359
+ return __dataclass__cls( # noqa
360
+ expr=self.expr,
361
+ )
362
+
363
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
364
+ if '__copy__' in __dataclass__cls.__dict__:
365
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
366
+ setattr(__dataclass__cls, '__copy__', __copy__)
367
+
368
+ def __eq__(self, other):
369
+ if self is other:
370
+ return True
371
+ if self.__class__ is not other.__class__:
372
+ return NotImplemented
373
+ return (
374
+ self.expr == other.expr
375
+ )
376
+
377
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
378
+ if '__eq__' in __dataclass__cls.__dict__:
379
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
380
+ setattr(__dataclass__cls, '__eq__', __eq__)
381
+
382
+ __dataclass___setattr_frozen_fields = {
383
+ 'expr',
384
+ }
385
+
386
+ def __setattr__(self, name, value):
387
+ if (
388
+ type(self) is __dataclass__cls
389
+ or name in __dataclass___setattr_frozen_fields
390
+ ):
391
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
392
+ super(__dataclass__cls, self).__setattr__(name, value)
393
+
394
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
395
+ if '__setattr__' in __dataclass__cls.__dict__:
396
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
397
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
398
+
399
+ __dataclass___delattr_frozen_fields = {
400
+ 'expr',
401
+ }
402
+
403
+ def __delattr__(self, name):
404
+ if (
405
+ type(self) is __dataclass__cls
406
+ or name in __dataclass___delattr_frozen_fields
407
+ ):
408
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
409
+ super(__dataclass__cls, self).__delattr__(name)
410
+
411
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
412
+ if '__delattr__' in __dataclass__cls.__dict__:
413
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
414
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
415
+
416
+ def __hash__(self):
417
+ return hash((
418
+ self.expr,
419
+ ))
420
+
421
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
422
+ setattr(__dataclass__cls, '__hash__', __hash__)
423
+
424
+ def __init__(
425
+ self,
426
+ expr: __dataclass__init__fields__0__annotation,
427
+ ) -> __dataclass__None:
428
+ __dataclass__object_setattr(self, 'expr', expr)
429
+
430
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
431
+ if '__init__' in __dataclass__cls.__dict__:
432
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
433
+ setattr(__dataclass__cls, '__init__', __init__)
434
+
435
+ @__dataclass___recursive_repr()
436
+ def __repr__(self):
437
+ parts = []
438
+ parts.append(f"expr={self.expr!r}")
439
+ return (
440
+ f"{self.__class__.__qualname__}("
441
+ f"{', '.join(parts)}"
442
+ f")"
443
+ )
444
+
445
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
446
+ if '__repr__' in __dataclass__cls.__dict__:
447
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
448
+ setattr(__dataclass__cls, '__repr__', __repr__)
449
+
450
+ return _process_dataclass
451
+
452
+
453
+ @_register(
454
+ plan_repr=(
455
+ "Plans(tup=(CopyPlan(fields=('name', 'args')), EqPlan(fields=('name', 'args')), FrozenPlan(fields=('name', 'arg"
456
+ "s'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('name', 'args'), cache=False), InitPlan"
457
+ "(fields=(InitPlan.Field(name='name', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_"
458
+ "factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type"
459
+ "=None), InitPlan.Field(name='args', annotation=OpRef(name='init.fields.1.annotation'), default=None, default_f"
460
+ "actory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type="
461
+ "None)), self_param='self', std_params=('name', 'args'), kw_only_params=(), frozen=True, slots=False, post_init"
462
+ "_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='name', kw_only=False, fn=No"
463
+ "ne), ReprPlan.Field(name='args', kw_only=False, fn=None)), id=False, terse=False, default_fn=None)))"
464
+ ),
465
+ plan_repr_sha1='46b21a57c7f935afb031452a3d30815129505ec6',
466
+ op_ref_idents=(
467
+ '__dataclass__init__fields__0__annotation',
468
+ '__dataclass__init__fields__1__annotation',
469
+ ),
470
+ cls_names=(
471
+ ('omlish.specs.jmespath', 'FunctionExpression'),
472
+ ),
473
+ )
474
+ def _process_dataclass__46b21a57c7f935afb031452a3d30815129505ec6():
475
+ def _process_dataclass(
476
+ *,
477
+ __dataclass__cls,
478
+ __dataclass__init__fields__0__annotation,
479
+ __dataclass__init__fields__1__annotation,
480
+ __dataclass__FieldFnValidationError, # noqa
481
+ __dataclass__FieldTypeValidationError, # noqa
482
+ __dataclass__FnValidationError, # noqa
483
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
484
+ __dataclass__FunctionType=types.FunctionType, # noqa
485
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
486
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
487
+ __dataclass__None=None, # noqa
488
+ __dataclass__TypeError=TypeError, # noqa
489
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
490
+ __dataclass__isinstance=isinstance, # noqa
491
+ __dataclass__object_setattr=object.__setattr__, # noqa
492
+ __dataclass__property=property, # noqa
493
+ ):
494
+ def __copy__(self):
495
+ if self.__class__ is not __dataclass__cls:
496
+ raise TypeError(self)
497
+ return __dataclass__cls( # noqa
498
+ name=self.name,
499
+ args=self.args,
500
+ )
501
+
502
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
503
+ if '__copy__' in __dataclass__cls.__dict__:
504
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
505
+ setattr(__dataclass__cls, '__copy__', __copy__)
506
+
507
+ def __eq__(self, other):
508
+ if self is other:
509
+ return True
510
+ if self.__class__ is not other.__class__:
511
+ return NotImplemented
512
+ return (
513
+ self.name == other.name and
514
+ self.args == other.args
515
+ )
516
+
517
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
518
+ if '__eq__' in __dataclass__cls.__dict__:
519
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
520
+ setattr(__dataclass__cls, '__eq__', __eq__)
521
+
522
+ __dataclass___setattr_frozen_fields = {
523
+ 'name',
524
+ 'args',
525
+ }
526
+
527
+ def __setattr__(self, name, value):
528
+ if (
529
+ type(self) is __dataclass__cls
530
+ or name in __dataclass___setattr_frozen_fields
531
+ ):
532
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
533
+ super(__dataclass__cls, self).__setattr__(name, value)
534
+
535
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
536
+ if '__setattr__' in __dataclass__cls.__dict__:
537
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
538
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
539
+
540
+ __dataclass___delattr_frozen_fields = {
541
+ 'name',
542
+ 'args',
543
+ }
544
+
545
+ def __delattr__(self, name):
546
+ if (
547
+ type(self) is __dataclass__cls
548
+ or name in __dataclass___delattr_frozen_fields
549
+ ):
550
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
551
+ super(__dataclass__cls, self).__delattr__(name)
552
+
553
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
554
+ if '__delattr__' in __dataclass__cls.__dict__:
555
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
556
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
557
+
558
+ def __hash__(self):
559
+ return hash((
560
+ self.name,
561
+ self.args,
562
+ ))
563
+
564
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
565
+ setattr(__dataclass__cls, '__hash__', __hash__)
566
+
567
+ def __init__(
568
+ self,
569
+ name: __dataclass__init__fields__0__annotation,
570
+ args: __dataclass__init__fields__1__annotation,
571
+ ) -> __dataclass__None:
572
+ __dataclass__object_setattr(self, 'name', name)
573
+ __dataclass__object_setattr(self, 'args', args)
574
+
575
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
576
+ if '__init__' in __dataclass__cls.__dict__:
577
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
578
+ setattr(__dataclass__cls, '__init__', __init__)
579
+
580
+ @__dataclass___recursive_repr()
581
+ def __repr__(self):
582
+ parts = []
583
+ parts.append(f"name={self.name!r}")
584
+ parts.append(f"args={self.args!r}")
585
+ return (
586
+ f"{self.__class__.__qualname__}("
587
+ f"{', '.join(parts)}"
588
+ f")"
589
+ )
590
+
591
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
592
+ if '__repr__' in __dataclass__cls.__dict__:
593
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
594
+ setattr(__dataclass__cls, '__repr__', __repr__)
595
+
596
+ return _process_dataclass
597
+
598
+
599
+ @_register(
600
+ plan_repr=(
601
+ "Plans(tup=(CopyPlan(fields=('index',)), EqPlan(fields=('index',)), FrozenPlan(fields=('index',), allow_dynamic"
602
+ "_dunder_attrs=False), HashPlan(action='add', fields=('index',), cache=False), InitPlan(fields=(InitPlan.Field("
603
+ "name='index', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True"
604
+ ", override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='s"
605
+ "elf', std_params=('index',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), "
606
+ "validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='index', kw_only=False, fn=None),), id=False, terse=Fal"
607
+ "se, default_fn=None)))"
608
+ ),
609
+ plan_repr_sha1='58d0143ed6bbec74538c3af1d493d5b4f36423f2',
610
+ op_ref_idents=(
611
+ '__dataclass__init__fields__0__annotation',
612
+ ),
613
+ cls_names=(
614
+ ('omlish.specs.jmespath', 'Index'),
615
+ ),
616
+ )
617
+ def _process_dataclass__58d0143ed6bbec74538c3af1d493d5b4f36423f2():
618
+ def _process_dataclass(
619
+ *,
620
+ __dataclass__cls,
621
+ __dataclass__init__fields__0__annotation,
622
+ __dataclass__FieldFnValidationError, # noqa
623
+ __dataclass__FieldTypeValidationError, # noqa
624
+ __dataclass__FnValidationError, # noqa
625
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
626
+ __dataclass__FunctionType=types.FunctionType, # noqa
627
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
628
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
629
+ __dataclass__None=None, # noqa
630
+ __dataclass__TypeError=TypeError, # noqa
631
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
632
+ __dataclass__isinstance=isinstance, # noqa
633
+ __dataclass__object_setattr=object.__setattr__, # noqa
634
+ __dataclass__property=property, # noqa
635
+ ):
636
+ def __copy__(self):
637
+ if self.__class__ is not __dataclass__cls:
638
+ raise TypeError(self)
639
+ return __dataclass__cls( # noqa
640
+ index=self.index,
641
+ )
642
+
643
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
644
+ if '__copy__' in __dataclass__cls.__dict__:
645
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
646
+ setattr(__dataclass__cls, '__copy__', __copy__)
647
+
648
+ def __eq__(self, other):
649
+ if self is other:
650
+ return True
651
+ if self.__class__ is not other.__class__:
652
+ return NotImplemented
653
+ return (
654
+ self.index == other.index
655
+ )
656
+
657
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
658
+ if '__eq__' in __dataclass__cls.__dict__:
659
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
660
+ setattr(__dataclass__cls, '__eq__', __eq__)
661
+
662
+ __dataclass___setattr_frozen_fields = {
663
+ 'index',
664
+ }
665
+
666
+ def __setattr__(self, name, value):
667
+ if (
668
+ type(self) is __dataclass__cls
669
+ or name in __dataclass___setattr_frozen_fields
670
+ ):
671
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
672
+ super(__dataclass__cls, self).__setattr__(name, value)
673
+
674
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
675
+ if '__setattr__' in __dataclass__cls.__dict__:
676
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
677
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
678
+
679
+ __dataclass___delattr_frozen_fields = {
680
+ 'index',
681
+ }
682
+
683
+ def __delattr__(self, name):
684
+ if (
685
+ type(self) is __dataclass__cls
686
+ or name in __dataclass___delattr_frozen_fields
687
+ ):
688
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
689
+ super(__dataclass__cls, self).__delattr__(name)
690
+
691
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
692
+ if '__delattr__' in __dataclass__cls.__dict__:
693
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
694
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
695
+
696
+ def __hash__(self):
697
+ return hash((
698
+ self.index,
699
+ ))
700
+
701
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
702
+ setattr(__dataclass__cls, '__hash__', __hash__)
703
+
704
+ def __init__(
705
+ self,
706
+ index: __dataclass__init__fields__0__annotation,
707
+ ) -> __dataclass__None:
708
+ __dataclass__object_setattr(self, 'index', index)
709
+
710
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
711
+ if '__init__' in __dataclass__cls.__dict__:
712
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
713
+ setattr(__dataclass__cls, '__init__', __init__)
714
+
715
+ @__dataclass___recursive_repr()
716
+ def __repr__(self):
717
+ parts = []
718
+ parts.append(f"index={self.index!r}")
719
+ return (
720
+ f"{self.__class__.__qualname__}("
721
+ f"{', '.join(parts)}"
722
+ f")"
723
+ )
724
+
725
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
726
+ if '__repr__' in __dataclass__cls.__dict__:
727
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
728
+ setattr(__dataclass__cls, '__repr__', __repr__)
729
+
730
+ return _process_dataclass
731
+
732
+
733
+ @_register(
734
+ plan_repr=(
735
+ "Plans(tup=(CopyPlan(fields=('key_name', 'node')), EqPlan(fields=('key_name', 'node')), FrozenPlan(fields=('key"
736
+ "_name', 'node'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('key_name', 'node'), cache="
737
+ "False), InitPlan(fields=(InitPlan.Field(name='key_name', annotation=OpRef(name='init.fields.0.annotation'), de"
738
+ "fault=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, valid"
739
+ "ate=None, check_type=None), InitPlan.Field(name='node', annotation=OpRef(name='init.fields.1.annotation'), def"
740
+ "ault=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, valida"
741
+ "te=None, check_type=None)), self_param='self', std_params=('key_name', 'node'), kw_only_params=(), frozen=True"
742
+ ", slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='key"
743
+ "_name', kw_only=False, fn=None), ReprPlan.Field(name='node', kw_only=False, fn=None)), id=False, terse=False, "
744
+ "default_fn=None)))"
745
+ ),
746
+ plan_repr_sha1='5c98f4baa29dbd0603b7dae82100421eaccc16c1',
747
+ op_ref_idents=(
748
+ '__dataclass__init__fields__0__annotation',
749
+ '__dataclass__init__fields__1__annotation',
750
+ ),
751
+ cls_names=(
752
+ ('omlish.specs.jmespath', 'KeyValPair'),
753
+ ),
754
+ )
755
+ def _process_dataclass__5c98f4baa29dbd0603b7dae82100421eaccc16c1():
756
+ def _process_dataclass(
757
+ *,
758
+ __dataclass__cls,
759
+ __dataclass__init__fields__0__annotation,
760
+ __dataclass__init__fields__1__annotation,
761
+ __dataclass__FieldFnValidationError, # noqa
762
+ __dataclass__FieldTypeValidationError, # noqa
763
+ __dataclass__FnValidationError, # noqa
764
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
765
+ __dataclass__FunctionType=types.FunctionType, # noqa
766
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
767
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
768
+ __dataclass__None=None, # noqa
769
+ __dataclass__TypeError=TypeError, # noqa
770
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
771
+ __dataclass__isinstance=isinstance, # noqa
772
+ __dataclass__object_setattr=object.__setattr__, # noqa
773
+ __dataclass__property=property, # noqa
774
+ ):
775
+ def __copy__(self):
776
+ if self.__class__ is not __dataclass__cls:
777
+ raise TypeError(self)
778
+ return __dataclass__cls( # noqa
779
+ key_name=self.key_name,
780
+ node=self.node,
781
+ )
782
+
783
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
784
+ if '__copy__' in __dataclass__cls.__dict__:
785
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
786
+ setattr(__dataclass__cls, '__copy__', __copy__)
787
+
788
+ def __eq__(self, other):
789
+ if self is other:
790
+ return True
791
+ if self.__class__ is not other.__class__:
792
+ return NotImplemented
793
+ return (
794
+ self.key_name == other.key_name and
795
+ self.node == other.node
796
+ )
797
+
798
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
799
+ if '__eq__' in __dataclass__cls.__dict__:
800
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
801
+ setattr(__dataclass__cls, '__eq__', __eq__)
802
+
803
+ __dataclass___setattr_frozen_fields = {
804
+ 'key_name',
805
+ 'node',
806
+ }
807
+
808
+ def __setattr__(self, name, value):
809
+ if (
810
+ type(self) is __dataclass__cls
811
+ or name in __dataclass___setattr_frozen_fields
812
+ ):
813
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
814
+ super(__dataclass__cls, self).__setattr__(name, value)
815
+
816
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
817
+ if '__setattr__' in __dataclass__cls.__dict__:
818
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
819
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
820
+
821
+ __dataclass___delattr_frozen_fields = {
822
+ 'key_name',
823
+ 'node',
824
+ }
825
+
826
+ def __delattr__(self, name):
827
+ if (
828
+ type(self) is __dataclass__cls
829
+ or name in __dataclass___delattr_frozen_fields
830
+ ):
831
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
832
+ super(__dataclass__cls, self).__delattr__(name)
833
+
834
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
835
+ if '__delattr__' in __dataclass__cls.__dict__:
836
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
837
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
838
+
839
+ def __hash__(self):
840
+ return hash((
841
+ self.key_name,
842
+ self.node,
843
+ ))
844
+
845
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
846
+ setattr(__dataclass__cls, '__hash__', __hash__)
847
+
848
+ def __init__(
849
+ self,
850
+ key_name: __dataclass__init__fields__0__annotation,
851
+ node: __dataclass__init__fields__1__annotation,
852
+ ) -> __dataclass__None:
853
+ __dataclass__object_setattr(self, 'key_name', key_name)
854
+ __dataclass__object_setattr(self, 'node', node)
855
+
856
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
857
+ if '__init__' in __dataclass__cls.__dict__:
858
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
859
+ setattr(__dataclass__cls, '__init__', __init__)
860
+
861
+ @__dataclass___recursive_repr()
862
+ def __repr__(self):
863
+ parts = []
864
+ parts.append(f"key_name={self.key_name!r}")
865
+ parts.append(f"node={self.node!r}")
866
+ return (
867
+ f"{self.__class__.__qualname__}("
868
+ f"{', '.join(parts)}"
869
+ f")"
870
+ )
871
+
872
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
873
+ if '__repr__' in __dataclass__cls.__dict__:
874
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
875
+ setattr(__dataclass__cls, '__repr__', __repr__)
876
+
877
+ return _process_dataclass
878
+
879
+
880
+ @_register(
881
+ plan_repr=(
882
+ "Plans(tup=(CopyPlan(fields=('left', 'right')), EqPlan(fields=('left', 'right')), FrozenPlan(fields=('left', 'r"
883
+ "ight'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('left', 'right'), cache=False), Init"
884
+ "Plan(fields=(InitPlan.Field(name='left', annotation=OpRef(name='init.fields.0.annotation'), default=None, defa"
885
+ "ult_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_"
886
+ "type=None), InitPlan.Field(name='right', annotation=OpRef(name='init.fields.1.annotation'), default=None, defa"
887
+ "ult_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_"
888
+ "type=None)), self_param='self', std_params=('left', 'right'), kw_only_params=(), frozen=True, slots=False, pos"
889
+ "t_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='left', kw_only=False,"
890
+ " fn=None), ReprPlan.Field(name='right', kw_only=False, fn=None)), id=False, terse=False, default_fn=None)))"
891
+ ),
892
+ plan_repr_sha1='683a8fba51ac0aaee8d49314879ce436e8ee2d3b',
893
+ op_ref_idents=(
894
+ '__dataclass__init__fields__0__annotation',
895
+ '__dataclass__init__fields__1__annotation',
896
+ ),
897
+ cls_names=(
898
+ ('omlish.specs.jmespath', 'AndExpression'),
899
+ ('omlish.specs.jmespath', 'OrExpression'),
900
+ ('omlish.specs.jmespath', 'Pipe'),
901
+ ('omlish.specs.jmespath', 'Projection'),
902
+ ('omlish.specs.jmespath', 'ValueProjection'),
903
+ ),
904
+ )
905
+ def _process_dataclass__683a8fba51ac0aaee8d49314879ce436e8ee2d3b():
906
+ def _process_dataclass(
907
+ *,
908
+ __dataclass__cls,
909
+ __dataclass__init__fields__0__annotation,
910
+ __dataclass__init__fields__1__annotation,
911
+ __dataclass__FieldFnValidationError, # noqa
912
+ __dataclass__FieldTypeValidationError, # noqa
913
+ __dataclass__FnValidationError, # noqa
914
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
915
+ __dataclass__FunctionType=types.FunctionType, # noqa
916
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
917
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
918
+ __dataclass__None=None, # noqa
919
+ __dataclass__TypeError=TypeError, # noqa
920
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
921
+ __dataclass__isinstance=isinstance, # noqa
922
+ __dataclass__object_setattr=object.__setattr__, # noqa
923
+ __dataclass__property=property, # noqa
924
+ ):
925
+ def __copy__(self):
926
+ if self.__class__ is not __dataclass__cls:
927
+ raise TypeError(self)
928
+ return __dataclass__cls( # noqa
929
+ left=self.left,
930
+ right=self.right,
931
+ )
932
+
933
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
934
+ if '__copy__' in __dataclass__cls.__dict__:
935
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
936
+ setattr(__dataclass__cls, '__copy__', __copy__)
937
+
938
+ def __eq__(self, other):
939
+ if self is other:
940
+ return True
941
+ if self.__class__ is not other.__class__:
942
+ return NotImplemented
943
+ return (
944
+ self.left == other.left and
945
+ self.right == other.right
946
+ )
947
+
948
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
949
+ if '__eq__' in __dataclass__cls.__dict__:
950
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
951
+ setattr(__dataclass__cls, '__eq__', __eq__)
952
+
953
+ __dataclass___setattr_frozen_fields = {
954
+ 'left',
955
+ 'right',
956
+ }
957
+
958
+ def __setattr__(self, name, value):
959
+ if (
960
+ type(self) is __dataclass__cls
961
+ or name in __dataclass___setattr_frozen_fields
962
+ ):
963
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
964
+ super(__dataclass__cls, self).__setattr__(name, value)
965
+
966
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
967
+ if '__setattr__' in __dataclass__cls.__dict__:
968
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
969
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
970
+
971
+ __dataclass___delattr_frozen_fields = {
972
+ 'left',
973
+ 'right',
974
+ }
975
+
976
+ def __delattr__(self, name):
977
+ if (
978
+ type(self) is __dataclass__cls
979
+ or name in __dataclass___delattr_frozen_fields
980
+ ):
981
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
982
+ super(__dataclass__cls, self).__delattr__(name)
983
+
984
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
985
+ if '__delattr__' in __dataclass__cls.__dict__:
986
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
987
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
988
+
989
+ def __hash__(self):
990
+ return hash((
991
+ self.left,
992
+ self.right,
993
+ ))
994
+
995
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
996
+ setattr(__dataclass__cls, '__hash__', __hash__)
997
+
998
+ def __init__(
999
+ self,
1000
+ left: __dataclass__init__fields__0__annotation,
1001
+ right: __dataclass__init__fields__1__annotation,
1002
+ ) -> __dataclass__None:
1003
+ __dataclass__object_setattr(self, 'left', left)
1004
+ __dataclass__object_setattr(self, 'right', right)
1005
+
1006
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
1007
+ if '__init__' in __dataclass__cls.__dict__:
1008
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
1009
+ setattr(__dataclass__cls, '__init__', __init__)
1010
+
1011
+ @__dataclass___recursive_repr()
1012
+ def __repr__(self):
1013
+ parts = []
1014
+ parts.append(f"left={self.left!r}")
1015
+ parts.append(f"right={self.right!r}")
1016
+ return (
1017
+ f"{self.__class__.__qualname__}("
1018
+ f"{', '.join(parts)}"
1019
+ f")"
1020
+ )
1021
+
1022
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
1023
+ if '__repr__' in __dataclass__cls.__dict__:
1024
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
1025
+ setattr(__dataclass__cls, '__repr__', __repr__)
1026
+
1027
+ return _process_dataclass
1028
+
1029
+
1030
+ @_register(
1031
+ plan_repr=(
1032
+ "Plans(tup=(CopyPlan(fields=('literal_value',)), EqPlan(fields=('literal_value',)), FrozenPlan(fields=('literal"
1033
+ "_value',), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('literal_value',), cache=False), "
1034
+ "InitPlan(fields=(InitPlan.Field(name='literal_value', annotation=OpRef(name='init.fields.0.annotation'), defau"
1035
+ "lt=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate"
1036
+ "=None, check_type=None),), self_param='self', std_params=('literal_value',), kw_only_params=(), frozen=True, s"
1037
+ "lots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='litera"
1038
+ "l_value', kw_only=False, fn=None),), id=False, terse=False, default_fn=None)))"
1039
+ ),
1040
+ plan_repr_sha1='84f3ffbf073b3ca8957fd80ce73aa63d4e81555d',
1041
+ op_ref_idents=(
1042
+ '__dataclass__init__fields__0__annotation',
1043
+ ),
1044
+ cls_names=(
1045
+ ('omlish.specs.jmespath', 'Literal'),
1046
+ ),
1047
+ )
1048
+ def _process_dataclass__84f3ffbf073b3ca8957fd80ce73aa63d4e81555d():
1049
+ def _process_dataclass(
1050
+ *,
1051
+ __dataclass__cls,
1052
+ __dataclass__init__fields__0__annotation,
1053
+ __dataclass__FieldFnValidationError, # noqa
1054
+ __dataclass__FieldTypeValidationError, # noqa
1055
+ __dataclass__FnValidationError, # noqa
1056
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
1057
+ __dataclass__FunctionType=types.FunctionType, # noqa
1058
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
1059
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
1060
+ __dataclass__None=None, # noqa
1061
+ __dataclass__TypeError=TypeError, # noqa
1062
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
1063
+ __dataclass__isinstance=isinstance, # noqa
1064
+ __dataclass__object_setattr=object.__setattr__, # noqa
1065
+ __dataclass__property=property, # noqa
1066
+ ):
1067
+ def __copy__(self):
1068
+ if self.__class__ is not __dataclass__cls:
1069
+ raise TypeError(self)
1070
+ return __dataclass__cls( # noqa
1071
+ literal_value=self.literal_value,
1072
+ )
1073
+
1074
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
1075
+ if '__copy__' in __dataclass__cls.__dict__:
1076
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
1077
+ setattr(__dataclass__cls, '__copy__', __copy__)
1078
+
1079
+ def __eq__(self, other):
1080
+ if self is other:
1081
+ return True
1082
+ if self.__class__ is not other.__class__:
1083
+ return NotImplemented
1084
+ return (
1085
+ self.literal_value == other.literal_value
1086
+ )
1087
+
1088
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
1089
+ if '__eq__' in __dataclass__cls.__dict__:
1090
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
1091
+ setattr(__dataclass__cls, '__eq__', __eq__)
1092
+
1093
+ __dataclass___setattr_frozen_fields = {
1094
+ 'literal_value',
1095
+ }
1096
+
1097
+ def __setattr__(self, name, value):
1098
+ if (
1099
+ type(self) is __dataclass__cls
1100
+ or name in __dataclass___setattr_frozen_fields
1101
+ ):
1102
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
1103
+ super(__dataclass__cls, self).__setattr__(name, value)
1104
+
1105
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
1106
+ if '__setattr__' in __dataclass__cls.__dict__:
1107
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
1108
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
1109
+
1110
+ __dataclass___delattr_frozen_fields = {
1111
+ 'literal_value',
1112
+ }
1113
+
1114
+ def __delattr__(self, name):
1115
+ if (
1116
+ type(self) is __dataclass__cls
1117
+ or name in __dataclass___delattr_frozen_fields
1118
+ ):
1119
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
1120
+ super(__dataclass__cls, self).__delattr__(name)
1121
+
1122
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
1123
+ if '__delattr__' in __dataclass__cls.__dict__:
1124
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
1125
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
1126
+
1127
+ def __hash__(self):
1128
+ return hash((
1129
+ self.literal_value,
1130
+ ))
1131
+
1132
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
1133
+ setattr(__dataclass__cls, '__hash__', __hash__)
1134
+
1135
+ def __init__(
1136
+ self,
1137
+ literal_value: __dataclass__init__fields__0__annotation,
1138
+ ) -> __dataclass__None:
1139
+ __dataclass__object_setattr(self, 'literal_value', literal_value)
1140
+
1141
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
1142
+ if '__init__' in __dataclass__cls.__dict__:
1143
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
1144
+ setattr(__dataclass__cls, '__init__', __init__)
1145
+
1146
+ @__dataclass___recursive_repr()
1147
+ def __repr__(self):
1148
+ parts = []
1149
+ parts.append(f"literal_value={self.literal_value!r}")
1150
+ return (
1151
+ f"{self.__class__.__qualname__}("
1152
+ f"{', '.join(parts)}"
1153
+ f")"
1154
+ )
1155
+
1156
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
1157
+ if '__repr__' in __dataclass__cls.__dict__:
1158
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
1159
+ setattr(__dataclass__cls, '__repr__', __repr__)
1160
+
1161
+ return _process_dataclass
1162
+
1163
+
1164
+ @_register(
1165
+ plan_repr=(
1166
+ "Plans(tup=(CopyPlan(fields=('expression',)), EqPlan(fields=('expression',)), FrozenPlan(fields=('expression',)"
1167
+ ", allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('expression',), cache=False), InitPlan(fie"
1168
+ "lds=(InitPlan.Field(name='expression', annotation=OpRef(name='init.fields.0.annotation'), default=None, defaul"
1169
+ "t_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_ty"
1170
+ "pe=None),), self_param='self', std_params=('expression',), kw_only_params=(), frozen=True, slots=False, post_i"
1171
+ "nit_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='expression', kw_only=Fal"
1172
+ "se, fn=None),), id=False, terse=False, default_fn=None)))"
1173
+ ),
1174
+ plan_repr_sha1='88b2bcfae28e19661d346bbf4c87a846e786b0ea',
1175
+ op_ref_idents=(
1176
+ '__dataclass__init__fields__0__annotation',
1177
+ ),
1178
+ cls_names=(
1179
+ ('omlish.specs.jmespath', 'Expref'),
1180
+ ),
1181
+ )
1182
+ def _process_dataclass__88b2bcfae28e19661d346bbf4c87a846e786b0ea():
1183
+ def _process_dataclass(
1184
+ *,
1185
+ __dataclass__cls,
1186
+ __dataclass__init__fields__0__annotation,
1187
+ __dataclass__FieldFnValidationError, # noqa
1188
+ __dataclass__FieldTypeValidationError, # noqa
1189
+ __dataclass__FnValidationError, # noqa
1190
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
1191
+ __dataclass__FunctionType=types.FunctionType, # noqa
1192
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
1193
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
1194
+ __dataclass__None=None, # noqa
1195
+ __dataclass__TypeError=TypeError, # noqa
1196
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
1197
+ __dataclass__isinstance=isinstance, # noqa
1198
+ __dataclass__object_setattr=object.__setattr__, # noqa
1199
+ __dataclass__property=property, # noqa
1200
+ ):
1201
+ def __copy__(self):
1202
+ if self.__class__ is not __dataclass__cls:
1203
+ raise TypeError(self)
1204
+ return __dataclass__cls( # noqa
1205
+ expression=self.expression,
1206
+ )
1207
+
1208
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
1209
+ if '__copy__' in __dataclass__cls.__dict__:
1210
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
1211
+ setattr(__dataclass__cls, '__copy__', __copy__)
1212
+
1213
+ def __eq__(self, other):
1214
+ if self is other:
1215
+ return True
1216
+ if self.__class__ is not other.__class__:
1217
+ return NotImplemented
1218
+ return (
1219
+ self.expression == other.expression
1220
+ )
1221
+
1222
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
1223
+ if '__eq__' in __dataclass__cls.__dict__:
1224
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
1225
+ setattr(__dataclass__cls, '__eq__', __eq__)
1226
+
1227
+ __dataclass___setattr_frozen_fields = {
1228
+ 'expression',
1229
+ }
1230
+
1231
+ def __setattr__(self, name, value):
1232
+ if (
1233
+ type(self) is __dataclass__cls
1234
+ or name in __dataclass___setattr_frozen_fields
1235
+ ):
1236
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
1237
+ super(__dataclass__cls, self).__setattr__(name, value)
1238
+
1239
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
1240
+ if '__setattr__' in __dataclass__cls.__dict__:
1241
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
1242
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
1243
+
1244
+ __dataclass___delattr_frozen_fields = {
1245
+ 'expression',
1246
+ }
1247
+
1248
+ def __delattr__(self, name):
1249
+ if (
1250
+ type(self) is __dataclass__cls
1251
+ or name in __dataclass___delattr_frozen_fields
1252
+ ):
1253
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
1254
+ super(__dataclass__cls, self).__delattr__(name)
1255
+
1256
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
1257
+ if '__delattr__' in __dataclass__cls.__dict__:
1258
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
1259
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
1260
+
1261
+ def __hash__(self):
1262
+ return hash((
1263
+ self.expression,
1264
+ ))
1265
+
1266
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
1267
+ setattr(__dataclass__cls, '__hash__', __hash__)
1268
+
1269
+ def __init__(
1270
+ self,
1271
+ expression: __dataclass__init__fields__0__annotation,
1272
+ ) -> __dataclass__None:
1273
+ __dataclass__object_setattr(self, 'expression', expression)
1274
+
1275
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
1276
+ if '__init__' in __dataclass__cls.__dict__:
1277
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
1278
+ setattr(__dataclass__cls, '__init__', __init__)
1279
+
1280
+ @__dataclass___recursive_repr()
1281
+ def __repr__(self):
1282
+ parts = []
1283
+ parts.append(f"expression={self.expression!r}")
1284
+ return (
1285
+ f"{self.__class__.__qualname__}("
1286
+ f"{', '.join(parts)}"
1287
+ f")"
1288
+ )
1289
+
1290
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
1291
+ if '__repr__' in __dataclass__cls.__dict__:
1292
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
1293
+ setattr(__dataclass__cls, '__repr__', __repr__)
1294
+
1295
+ return _process_dataclass
1296
+
1297
+
1298
+ @_register(
1299
+ plan_repr=(
1300
+ "Plans(tup=(CopyPlan(fields=('nodes',)), EqPlan(fields=('nodes',)), FrozenPlan(fields=('nodes',), allow_dynamic"
1301
+ "_dunder_attrs=False), HashPlan(action='add', fields=('nodes',), cache=False), InitPlan(fields=(InitPlan.Field("
1302
+ "name='nodes', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True"
1303
+ ", override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='s"
1304
+ "elf', std_params=('nodes',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), "
1305
+ "validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='nodes', kw_only=False, fn=None),), id=False, terse=Fal"
1306
+ "se, default_fn=None)))"
1307
+ ),
1308
+ plan_repr_sha1='95a04b516e507c6ca7803679cc697feffd03c2fe',
1309
+ op_ref_idents=(
1310
+ '__dataclass__init__fields__0__annotation',
1311
+ ),
1312
+ cls_names=(
1313
+ ('omlish.specs.jmespath', 'IndexExpression'),
1314
+ ('omlish.specs.jmespath', 'MultiSelectDict'),
1315
+ ('omlish.specs.jmespath', 'MultiSelectList'),
1316
+ ),
1317
+ )
1318
+ def _process_dataclass__95a04b516e507c6ca7803679cc697feffd03c2fe():
1319
+ def _process_dataclass(
1320
+ *,
1321
+ __dataclass__cls,
1322
+ __dataclass__init__fields__0__annotation,
1323
+ __dataclass__FieldFnValidationError, # noqa
1324
+ __dataclass__FieldTypeValidationError, # noqa
1325
+ __dataclass__FnValidationError, # noqa
1326
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
1327
+ __dataclass__FunctionType=types.FunctionType, # noqa
1328
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
1329
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
1330
+ __dataclass__None=None, # noqa
1331
+ __dataclass__TypeError=TypeError, # noqa
1332
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
1333
+ __dataclass__isinstance=isinstance, # noqa
1334
+ __dataclass__object_setattr=object.__setattr__, # noqa
1335
+ __dataclass__property=property, # noqa
1336
+ ):
1337
+ def __copy__(self):
1338
+ if self.__class__ is not __dataclass__cls:
1339
+ raise TypeError(self)
1340
+ return __dataclass__cls( # noqa
1341
+ nodes=self.nodes,
1342
+ )
1343
+
1344
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
1345
+ if '__copy__' in __dataclass__cls.__dict__:
1346
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
1347
+ setattr(__dataclass__cls, '__copy__', __copy__)
1348
+
1349
+ def __eq__(self, other):
1350
+ if self is other:
1351
+ return True
1352
+ if self.__class__ is not other.__class__:
1353
+ return NotImplemented
1354
+ return (
1355
+ self.nodes == other.nodes
1356
+ )
1357
+
1358
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
1359
+ if '__eq__' in __dataclass__cls.__dict__:
1360
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
1361
+ setattr(__dataclass__cls, '__eq__', __eq__)
1362
+
1363
+ __dataclass___setattr_frozen_fields = {
1364
+ 'nodes',
1365
+ }
1366
+
1367
+ def __setattr__(self, name, value):
1368
+ if (
1369
+ type(self) is __dataclass__cls
1370
+ or name in __dataclass___setattr_frozen_fields
1371
+ ):
1372
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
1373
+ super(__dataclass__cls, self).__setattr__(name, value)
1374
+
1375
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
1376
+ if '__setattr__' in __dataclass__cls.__dict__:
1377
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
1378
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
1379
+
1380
+ __dataclass___delattr_frozen_fields = {
1381
+ 'nodes',
1382
+ }
1383
+
1384
+ def __delattr__(self, name):
1385
+ if (
1386
+ type(self) is __dataclass__cls
1387
+ or name in __dataclass___delattr_frozen_fields
1388
+ ):
1389
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
1390
+ super(__dataclass__cls, self).__delattr__(name)
1391
+
1392
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
1393
+ if '__delattr__' in __dataclass__cls.__dict__:
1394
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
1395
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
1396
+
1397
+ def __hash__(self):
1398
+ return hash((
1399
+ self.nodes,
1400
+ ))
1401
+
1402
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
1403
+ setattr(__dataclass__cls, '__hash__', __hash__)
1404
+
1405
+ def __init__(
1406
+ self,
1407
+ nodes: __dataclass__init__fields__0__annotation,
1408
+ ) -> __dataclass__None:
1409
+ __dataclass__object_setattr(self, 'nodes', nodes)
1410
+
1411
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
1412
+ if '__init__' in __dataclass__cls.__dict__:
1413
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
1414
+ setattr(__dataclass__cls, '__init__', __init__)
1415
+
1416
+ @__dataclass___recursive_repr()
1417
+ def __repr__(self):
1418
+ parts = []
1419
+ parts.append(f"nodes={self.nodes!r}")
1420
+ return (
1421
+ f"{self.__class__.__qualname__}("
1422
+ f"{', '.join(parts)}"
1423
+ f")"
1424
+ )
1425
+
1426
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
1427
+ if '__repr__' in __dataclass__cls.__dict__:
1428
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
1429
+ setattr(__dataclass__cls, '__repr__', __repr__)
1430
+
1431
+ return _process_dataclass
1432
+
1433
+
1434
+ @_register(
1435
+ plan_repr=(
1436
+ "Plans(tup=(CopyPlan(fields=('operator', 'left', 'right')), EqPlan(fields=('operator', 'left', 'right')), Froze"
1437
+ "nPlan(fields=('operator', 'left', 'right'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=("
1438
+ "'operator', 'left', 'right'), cache=False), InitPlan(fields=(InitPlan.Field(name='operator', annotation=OpRef("
1439
+ "name='init.fields.0.annotation'), default=None, default_factory=None, init=True, override=False, field_type=Fi"
1440
+ "eldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='left', annotation=OpRef(n"
1441
+ "ame='init.fields.1.annotation'), default=None, default_factory=None, init=True, override=False, field_type=Fie"
1442
+ "ldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='right', annotation=OpRef(n"
1443
+ "ame='init.fields.2.annotation'), default=None, default_factory=None, init=True, override=False, field_type=Fie"
1444
+ "ldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=('operator', 'le"
1445
+ "ft', 'right'), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=("
1446
+ ")), ReprPlan(fields=(ReprPlan.Field(name='operator', kw_only=False, fn=None), ReprPlan.Field(name='left', kw_o"
1447
+ "nly=False, fn=None), ReprPlan.Field(name='right', kw_only=False, fn=None)), id=False, terse=False, default_fn="
1448
+ "None)))"
1449
+ ),
1450
+ plan_repr_sha1='9ad32a9de77661d138040ae8b9ef479f313da67b',
1451
+ op_ref_idents=(
1452
+ '__dataclass__init__fields__0__annotation',
1453
+ '__dataclass__init__fields__1__annotation',
1454
+ '__dataclass__init__fields__2__annotation',
1455
+ ),
1456
+ cls_names=(
1457
+ ('omlish.specs.jmespath', 'Arithmetic'),
1458
+ ),
1459
+ )
1460
+ def _process_dataclass__9ad32a9de77661d138040ae8b9ef479f313da67b():
1461
+ def _process_dataclass(
1462
+ *,
1463
+ __dataclass__cls,
1464
+ __dataclass__init__fields__0__annotation,
1465
+ __dataclass__init__fields__1__annotation,
1466
+ __dataclass__init__fields__2__annotation,
1467
+ __dataclass__FieldFnValidationError, # noqa
1468
+ __dataclass__FieldTypeValidationError, # noqa
1469
+ __dataclass__FnValidationError, # noqa
1470
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
1471
+ __dataclass__FunctionType=types.FunctionType, # noqa
1472
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
1473
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
1474
+ __dataclass__None=None, # noqa
1475
+ __dataclass__TypeError=TypeError, # noqa
1476
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
1477
+ __dataclass__isinstance=isinstance, # noqa
1478
+ __dataclass__object_setattr=object.__setattr__, # noqa
1479
+ __dataclass__property=property, # noqa
1480
+ ):
1481
+ def __copy__(self):
1482
+ if self.__class__ is not __dataclass__cls:
1483
+ raise TypeError(self)
1484
+ return __dataclass__cls( # noqa
1485
+ operator=self.operator,
1486
+ left=self.left,
1487
+ right=self.right,
1488
+ )
1489
+
1490
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
1491
+ if '__copy__' in __dataclass__cls.__dict__:
1492
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
1493
+ setattr(__dataclass__cls, '__copy__', __copy__)
1494
+
1495
+ def __eq__(self, other):
1496
+ if self is other:
1497
+ return True
1498
+ if self.__class__ is not other.__class__:
1499
+ return NotImplemented
1500
+ return (
1501
+ self.operator == other.operator and
1502
+ self.left == other.left and
1503
+ self.right == other.right
1504
+ )
1505
+
1506
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
1507
+ if '__eq__' in __dataclass__cls.__dict__:
1508
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
1509
+ setattr(__dataclass__cls, '__eq__', __eq__)
1510
+
1511
+ __dataclass___setattr_frozen_fields = {
1512
+ 'operator',
1513
+ 'left',
1514
+ 'right',
1515
+ }
1516
+
1517
+ def __setattr__(self, name, value):
1518
+ if (
1519
+ type(self) is __dataclass__cls
1520
+ or name in __dataclass___setattr_frozen_fields
1521
+ ):
1522
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
1523
+ super(__dataclass__cls, self).__setattr__(name, value)
1524
+
1525
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
1526
+ if '__setattr__' in __dataclass__cls.__dict__:
1527
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
1528
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
1529
+
1530
+ __dataclass___delattr_frozen_fields = {
1531
+ 'operator',
1532
+ 'left',
1533
+ 'right',
1534
+ }
1535
+
1536
+ def __delattr__(self, name):
1537
+ if (
1538
+ type(self) is __dataclass__cls
1539
+ or name in __dataclass___delattr_frozen_fields
1540
+ ):
1541
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
1542
+ super(__dataclass__cls, self).__delattr__(name)
1543
+
1544
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
1545
+ if '__delattr__' in __dataclass__cls.__dict__:
1546
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
1547
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
1548
+
1549
+ def __hash__(self):
1550
+ return hash((
1551
+ self.operator,
1552
+ self.left,
1553
+ self.right,
1554
+ ))
1555
+
1556
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
1557
+ setattr(__dataclass__cls, '__hash__', __hash__)
1558
+
1559
+ def __init__(
1560
+ self,
1561
+ operator: __dataclass__init__fields__0__annotation,
1562
+ left: __dataclass__init__fields__1__annotation,
1563
+ right: __dataclass__init__fields__2__annotation,
1564
+ ) -> __dataclass__None:
1565
+ __dataclass__object_setattr(self, 'operator', operator)
1566
+ __dataclass__object_setattr(self, 'left', left)
1567
+ __dataclass__object_setattr(self, 'right', right)
1568
+
1569
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
1570
+ if '__init__' in __dataclass__cls.__dict__:
1571
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
1572
+ setattr(__dataclass__cls, '__init__', __init__)
1573
+
1574
+ @__dataclass___recursive_repr()
1575
+ def __repr__(self):
1576
+ parts = []
1577
+ parts.append(f"operator={self.operator!r}")
1578
+ parts.append(f"left={self.left!r}")
1579
+ parts.append(f"right={self.right!r}")
1580
+ return (
1581
+ f"{self.__class__.__qualname__}("
1582
+ f"{', '.join(parts)}"
1583
+ f")"
1584
+ )
1585
+
1586
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
1587
+ if '__repr__' in __dataclass__cls.__dict__:
1588
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
1589
+ setattr(__dataclass__cls, '__repr__', __repr__)
1590
+
1591
+ return _process_dataclass
1592
+
1593
+
1594
+ @_register(
1595
+ plan_repr=(
1596
+ "Plans(tup=(CopyPlan(fields=('name',)), EqPlan(fields=('name',)), FrozenPlan(fields=('name',), allow_dynamic_du"
1597
+ "nder_attrs=False), HashPlan(action='add', fields=('name',), cache=False), InitPlan(fields=(InitPlan.Field(name"
1598
+ "='name', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, ove"
1599
+ "rride=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None),), self_param='self',"
1600
+ " std_params=('name',), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), valida"
1601
+ "te_fns=()), ReprPlan(fields=(ReprPlan.Field(name='name', kw_only=False, fn=None),), id=False, terse=False, def"
1602
+ "ault_fn=None)))"
1603
+ ),
1604
+ plan_repr_sha1='a8c678a92ec79b6aa505feedefe70ee7fef92ccd',
1605
+ op_ref_idents=(
1606
+ '__dataclass__init__fields__0__annotation',
1607
+ ),
1608
+ cls_names=(
1609
+ ('omlish.specs.jmespath', 'Field'),
1610
+ ('omlish.specs.jmespath', 'VariableRef'),
1611
+ ),
1612
+ )
1613
+ def _process_dataclass__a8c678a92ec79b6aa505feedefe70ee7fef92ccd():
1614
+ def _process_dataclass(
1615
+ *,
1616
+ __dataclass__cls,
1617
+ __dataclass__init__fields__0__annotation,
1618
+ __dataclass__FieldFnValidationError, # noqa
1619
+ __dataclass__FieldTypeValidationError, # noqa
1620
+ __dataclass__FnValidationError, # noqa
1621
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
1622
+ __dataclass__FunctionType=types.FunctionType, # noqa
1623
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
1624
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
1625
+ __dataclass__None=None, # noqa
1626
+ __dataclass__TypeError=TypeError, # noqa
1627
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
1628
+ __dataclass__isinstance=isinstance, # noqa
1629
+ __dataclass__object_setattr=object.__setattr__, # noqa
1630
+ __dataclass__property=property, # noqa
1631
+ ):
1632
+ def __copy__(self):
1633
+ if self.__class__ is not __dataclass__cls:
1634
+ raise TypeError(self)
1635
+ return __dataclass__cls( # noqa
1636
+ name=self.name,
1637
+ )
1638
+
1639
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
1640
+ if '__copy__' in __dataclass__cls.__dict__:
1641
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
1642
+ setattr(__dataclass__cls, '__copy__', __copy__)
1643
+
1644
+ def __eq__(self, other):
1645
+ if self is other:
1646
+ return True
1647
+ if self.__class__ is not other.__class__:
1648
+ return NotImplemented
1649
+ return (
1650
+ self.name == other.name
1651
+ )
1652
+
1653
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
1654
+ if '__eq__' in __dataclass__cls.__dict__:
1655
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
1656
+ setattr(__dataclass__cls, '__eq__', __eq__)
1657
+
1658
+ __dataclass___setattr_frozen_fields = {
1659
+ 'name',
1660
+ }
1661
+
1662
+ def __setattr__(self, name, value):
1663
+ if (
1664
+ type(self) is __dataclass__cls
1665
+ or name in __dataclass___setattr_frozen_fields
1666
+ ):
1667
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
1668
+ super(__dataclass__cls, self).__setattr__(name, value)
1669
+
1670
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
1671
+ if '__setattr__' in __dataclass__cls.__dict__:
1672
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
1673
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
1674
+
1675
+ __dataclass___delattr_frozen_fields = {
1676
+ 'name',
1677
+ }
1678
+
1679
+ def __delattr__(self, name):
1680
+ if (
1681
+ type(self) is __dataclass__cls
1682
+ or name in __dataclass___delattr_frozen_fields
1683
+ ):
1684
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
1685
+ super(__dataclass__cls, self).__delattr__(name)
1686
+
1687
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
1688
+ if '__delattr__' in __dataclass__cls.__dict__:
1689
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
1690
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
1691
+
1692
+ def __hash__(self):
1693
+ return hash((
1694
+ self.name,
1695
+ ))
1696
+
1697
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
1698
+ setattr(__dataclass__cls, '__hash__', __hash__)
1699
+
1700
+ def __init__(
1701
+ self,
1702
+ name: __dataclass__init__fields__0__annotation,
1703
+ ) -> __dataclass__None:
1704
+ __dataclass__object_setattr(self, 'name', name)
1705
+
1706
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
1707
+ if '__init__' in __dataclass__cls.__dict__:
1708
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
1709
+ setattr(__dataclass__cls, '__init__', __init__)
1710
+
1711
+ @__dataclass___recursive_repr()
1712
+ def __repr__(self):
1713
+ parts = []
1714
+ parts.append(f"name={self.name!r}")
1715
+ return (
1716
+ f"{self.__class__.__qualname__}("
1717
+ f"{', '.join(parts)}"
1718
+ f")"
1719
+ )
1720
+
1721
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
1722
+ if '__repr__' in __dataclass__cls.__dict__:
1723
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
1724
+ setattr(__dataclass__cls, '__repr__', __repr__)
1725
+
1726
+ return _process_dataclass
1727
+
1728
+
1729
+ @_register(
1730
+ plan_repr=(
1731
+ "Plans(tup=(CopyPlan(fields=('start', 'end', 'step')), EqPlan(fields=('start', 'end', 'step')), FrozenPlan(fiel"
1732
+ "ds=('start', 'end', 'step'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('start', 'end',"
1733
+ " 'step'), cache=False), InitPlan(fields=(InitPlan.Field(name='start', annotation=OpRef(name='init.fields.0.ann"
1734
+ "otation'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerc"
1735
+ "e=None, validate=None, check_type=None), InitPlan.Field(name='end', annotation=OpRef(name='init.fields.1.annot"
1736
+ "ation'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce="
1737
+ "None, validate=None, check_type=None), InitPlan.Field(name='step', annotation=OpRef(name='init.fields.2.annota"
1738
+ "tion'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=N"
1739
+ "one, validate=None, check_type=None)), self_param='self', std_params=('start', 'end', 'step'), kw_only_params="
1740
+ "(), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan."
1741
+ "Field(name='start', kw_only=False, fn=None), ReprPlan.Field(name='end', kw_only=False, fn=None), ReprPlan.Fiel"
1742
+ "d(name='step', kw_only=False, fn=None)), id=False, terse=False, default_fn=None)))"
1743
+ ),
1744
+ plan_repr_sha1='b32606cc73be16bf4f754945264efc4ebda65099',
1745
+ op_ref_idents=(
1746
+ '__dataclass__init__fields__0__annotation',
1747
+ '__dataclass__init__fields__1__annotation',
1748
+ '__dataclass__init__fields__2__annotation',
1749
+ ),
1750
+ cls_names=(
1751
+ ('omlish.specs.jmespath', 'Slice'),
1752
+ ),
1753
+ )
1754
+ def _process_dataclass__b32606cc73be16bf4f754945264efc4ebda65099():
1755
+ def _process_dataclass(
1756
+ *,
1757
+ __dataclass__cls,
1758
+ __dataclass__init__fields__0__annotation,
1759
+ __dataclass__init__fields__1__annotation,
1760
+ __dataclass__init__fields__2__annotation,
1761
+ __dataclass__FieldFnValidationError, # noqa
1762
+ __dataclass__FieldTypeValidationError, # noqa
1763
+ __dataclass__FnValidationError, # noqa
1764
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
1765
+ __dataclass__FunctionType=types.FunctionType, # noqa
1766
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
1767
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
1768
+ __dataclass__None=None, # noqa
1769
+ __dataclass__TypeError=TypeError, # noqa
1770
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
1771
+ __dataclass__isinstance=isinstance, # noqa
1772
+ __dataclass__object_setattr=object.__setattr__, # noqa
1773
+ __dataclass__property=property, # noqa
1774
+ ):
1775
+ def __copy__(self):
1776
+ if self.__class__ is not __dataclass__cls:
1777
+ raise TypeError(self)
1778
+ return __dataclass__cls( # noqa
1779
+ start=self.start,
1780
+ end=self.end,
1781
+ step=self.step,
1782
+ )
1783
+
1784
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
1785
+ if '__copy__' in __dataclass__cls.__dict__:
1786
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
1787
+ setattr(__dataclass__cls, '__copy__', __copy__)
1788
+
1789
+ def __eq__(self, other):
1790
+ if self is other:
1791
+ return True
1792
+ if self.__class__ is not other.__class__:
1793
+ return NotImplemented
1794
+ return (
1795
+ self.start == other.start and
1796
+ self.end == other.end and
1797
+ self.step == other.step
1798
+ )
1799
+
1800
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
1801
+ if '__eq__' in __dataclass__cls.__dict__:
1802
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
1803
+ setattr(__dataclass__cls, '__eq__', __eq__)
1804
+
1805
+ __dataclass___setattr_frozen_fields = {
1806
+ 'start',
1807
+ 'end',
1808
+ 'step',
1809
+ }
1810
+
1811
+ def __setattr__(self, name, value):
1812
+ if (
1813
+ type(self) is __dataclass__cls
1814
+ or name in __dataclass___setattr_frozen_fields
1815
+ ):
1816
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
1817
+ super(__dataclass__cls, self).__setattr__(name, value)
1818
+
1819
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
1820
+ if '__setattr__' in __dataclass__cls.__dict__:
1821
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
1822
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
1823
+
1824
+ __dataclass___delattr_frozen_fields = {
1825
+ 'start',
1826
+ 'end',
1827
+ 'step',
1828
+ }
1829
+
1830
+ def __delattr__(self, name):
1831
+ if (
1832
+ type(self) is __dataclass__cls
1833
+ or name in __dataclass___delattr_frozen_fields
1834
+ ):
1835
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
1836
+ super(__dataclass__cls, self).__delattr__(name)
1837
+
1838
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
1839
+ if '__delattr__' in __dataclass__cls.__dict__:
1840
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
1841
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
1842
+
1843
+ def __hash__(self):
1844
+ return hash((
1845
+ self.start,
1846
+ self.end,
1847
+ self.step,
1848
+ ))
1849
+
1850
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
1851
+ setattr(__dataclass__cls, '__hash__', __hash__)
1852
+
1853
+ def __init__(
1854
+ self,
1855
+ start: __dataclass__init__fields__0__annotation,
1856
+ end: __dataclass__init__fields__1__annotation,
1857
+ step: __dataclass__init__fields__2__annotation,
1858
+ ) -> __dataclass__None:
1859
+ __dataclass__object_setattr(self, 'start', start)
1860
+ __dataclass__object_setattr(self, 'end', end)
1861
+ __dataclass__object_setattr(self, 'step', step)
1862
+
1863
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
1864
+ if '__init__' in __dataclass__cls.__dict__:
1865
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
1866
+ setattr(__dataclass__cls, '__init__', __init__)
1867
+
1868
+ @__dataclass___recursive_repr()
1869
+ def __repr__(self):
1870
+ parts = []
1871
+ parts.append(f"start={self.start!r}")
1872
+ parts.append(f"end={self.end!r}")
1873
+ parts.append(f"step={self.step!r}")
1874
+ return (
1875
+ f"{self.__class__.__qualname__}("
1876
+ f"{', '.join(parts)}"
1877
+ f")"
1878
+ )
1879
+
1880
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
1881
+ if '__repr__' in __dataclass__cls.__dict__:
1882
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
1883
+ setattr(__dataclass__cls, '__repr__', __repr__)
1884
+
1885
+ return _process_dataclass
1886
+
1887
+
1888
+ @_register(
1889
+ plan_repr=(
1890
+ "Plans(tup=(CopyPlan(fields=('bindings', 'expr')), EqPlan(fields=('bindings', 'expr')), FrozenPlan(fields=('bin"
1891
+ "dings', 'expr'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('bindings', 'expr'), cache="
1892
+ "False), InitPlan(fields=(InitPlan.Field(name='bindings', annotation=OpRef(name='init.fields.0.annotation'), de"
1893
+ "fault=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, valid"
1894
+ "ate=None, check_type=None), InitPlan.Field(name='expr', annotation=OpRef(name='init.fields.1.annotation'), def"
1895
+ "ault=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, valida"
1896
+ "te=None, check_type=None)), self_param='self', std_params=('bindings', 'expr'), kw_only_params=(), frozen=True"
1897
+ ", slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='bin"
1898
+ "dings', kw_only=False, fn=None), ReprPlan.Field(name='expr', kw_only=False, fn=None)), id=False, terse=False, "
1899
+ "default_fn=None)))"
1900
+ ),
1901
+ plan_repr_sha1='c8a250c76298910f7bf4f1d857d2754886ebd5c1',
1902
+ op_ref_idents=(
1903
+ '__dataclass__init__fields__0__annotation',
1904
+ '__dataclass__init__fields__1__annotation',
1905
+ ),
1906
+ cls_names=(
1907
+ ('omlish.specs.jmespath', 'LetExpression'),
1908
+ ),
1909
+ )
1910
+ def _process_dataclass__c8a250c76298910f7bf4f1d857d2754886ebd5c1():
1911
+ def _process_dataclass(
1912
+ *,
1913
+ __dataclass__cls,
1914
+ __dataclass__init__fields__0__annotation,
1915
+ __dataclass__init__fields__1__annotation,
1916
+ __dataclass__FieldFnValidationError, # noqa
1917
+ __dataclass__FieldTypeValidationError, # noqa
1918
+ __dataclass__FnValidationError, # noqa
1919
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
1920
+ __dataclass__FunctionType=types.FunctionType, # noqa
1921
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
1922
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
1923
+ __dataclass__None=None, # noqa
1924
+ __dataclass__TypeError=TypeError, # noqa
1925
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
1926
+ __dataclass__isinstance=isinstance, # noqa
1927
+ __dataclass__object_setattr=object.__setattr__, # noqa
1928
+ __dataclass__property=property, # noqa
1929
+ ):
1930
+ def __copy__(self):
1931
+ if self.__class__ is not __dataclass__cls:
1932
+ raise TypeError(self)
1933
+ return __dataclass__cls( # noqa
1934
+ bindings=self.bindings,
1935
+ expr=self.expr,
1936
+ )
1937
+
1938
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
1939
+ if '__copy__' in __dataclass__cls.__dict__:
1940
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
1941
+ setattr(__dataclass__cls, '__copy__', __copy__)
1942
+
1943
+ def __eq__(self, other):
1944
+ if self is other:
1945
+ return True
1946
+ if self.__class__ is not other.__class__:
1947
+ return NotImplemented
1948
+ return (
1949
+ self.bindings == other.bindings and
1950
+ self.expr == other.expr
1951
+ )
1952
+
1953
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
1954
+ if '__eq__' in __dataclass__cls.__dict__:
1955
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
1956
+ setattr(__dataclass__cls, '__eq__', __eq__)
1957
+
1958
+ __dataclass___setattr_frozen_fields = {
1959
+ 'bindings',
1960
+ 'expr',
1961
+ }
1962
+
1963
+ def __setattr__(self, name, value):
1964
+ if (
1965
+ type(self) is __dataclass__cls
1966
+ or name in __dataclass___setattr_frozen_fields
1967
+ ):
1968
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
1969
+ super(__dataclass__cls, self).__setattr__(name, value)
1970
+
1971
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
1972
+ if '__setattr__' in __dataclass__cls.__dict__:
1973
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
1974
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
1975
+
1976
+ __dataclass___delattr_frozen_fields = {
1977
+ 'bindings',
1978
+ 'expr',
1979
+ }
1980
+
1981
+ def __delattr__(self, name):
1982
+ if (
1983
+ type(self) is __dataclass__cls
1984
+ or name in __dataclass___delattr_frozen_fields
1985
+ ):
1986
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
1987
+ super(__dataclass__cls, self).__delattr__(name)
1988
+
1989
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
1990
+ if '__delattr__' in __dataclass__cls.__dict__:
1991
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
1992
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
1993
+
1994
+ def __hash__(self):
1995
+ return hash((
1996
+ self.bindings,
1997
+ self.expr,
1998
+ ))
1999
+
2000
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
2001
+ setattr(__dataclass__cls, '__hash__', __hash__)
2002
+
2003
+ def __init__(
2004
+ self,
2005
+ bindings: __dataclass__init__fields__0__annotation,
2006
+ expr: __dataclass__init__fields__1__annotation,
2007
+ ) -> __dataclass__None:
2008
+ __dataclass__object_setattr(self, 'bindings', bindings)
2009
+ __dataclass__object_setattr(self, 'expr', expr)
2010
+
2011
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
2012
+ if '__init__' in __dataclass__cls.__dict__:
2013
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
2014
+ setattr(__dataclass__cls, '__init__', __init__)
2015
+
2016
+ @__dataclass___recursive_repr()
2017
+ def __repr__(self):
2018
+ parts = []
2019
+ parts.append(f"bindings={self.bindings!r}")
2020
+ parts.append(f"expr={self.expr!r}")
2021
+ return (
2022
+ f"{self.__class__.__qualname__}("
2023
+ f"{', '.join(parts)}"
2024
+ f")"
2025
+ )
2026
+
2027
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
2028
+ if '__repr__' in __dataclass__cls.__dict__:
2029
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
2030
+ setattr(__dataclass__cls, '__repr__', __repr__)
2031
+
2032
+ return _process_dataclass
2033
+
2034
+
2035
+ @_register(
2036
+ plan_repr=(
2037
+ "Plans(tup=(CopyPlan(fields=('operator', 'expression')), EqPlan(fields=('operator', 'expression')), FrozenPlan("
2038
+ "fields=('operator', 'expression'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('operator"
2039
+ "', 'expression'), cache=False), InitPlan(fields=(InitPlan.Field(name='operator', annotation=OpRef(name='init.f"
2040
+ "ields.0.annotation'), default=None, default_factory=None, init=True, override=False, field_type=FieldType.INST"
2041
+ "ANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='expression', annotation=OpRef(name='i"
2042
+ "nit.fields.1.annotation'), default=None, default_factory=None, init=True, override=False, field_type=FieldType"
2043
+ ".INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=('operator', 'expressi"
2044
+ "on'), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprP"
2045
+ "lan(fields=(ReprPlan.Field(name='operator', kw_only=False, fn=None), ReprPlan.Field(name='expression', kw_only"
2046
+ "=False, fn=None)), id=False, terse=False, default_fn=None)))"
2047
+ ),
2048
+ plan_repr_sha1='cdb3249bff15c580f8a8beab3e47937e31fe71a0',
2049
+ op_ref_idents=(
2050
+ '__dataclass__init__fields__0__annotation',
2051
+ '__dataclass__init__fields__1__annotation',
2052
+ ),
2053
+ cls_names=(
2054
+ ('omlish.specs.jmespath', 'ArithmeticUnary'),
2055
+ ),
2056
+ )
2057
+ def _process_dataclass__cdb3249bff15c580f8a8beab3e47937e31fe71a0():
2058
+ def _process_dataclass(
2059
+ *,
2060
+ __dataclass__cls,
2061
+ __dataclass__init__fields__0__annotation,
2062
+ __dataclass__init__fields__1__annotation,
2063
+ __dataclass__FieldFnValidationError, # noqa
2064
+ __dataclass__FieldTypeValidationError, # noqa
2065
+ __dataclass__FnValidationError, # noqa
2066
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
2067
+ __dataclass__FunctionType=types.FunctionType, # noqa
2068
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
2069
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
2070
+ __dataclass__None=None, # noqa
2071
+ __dataclass__TypeError=TypeError, # noqa
2072
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
2073
+ __dataclass__isinstance=isinstance, # noqa
2074
+ __dataclass__object_setattr=object.__setattr__, # noqa
2075
+ __dataclass__property=property, # noqa
2076
+ ):
2077
+ def __copy__(self):
2078
+ if self.__class__ is not __dataclass__cls:
2079
+ raise TypeError(self)
2080
+ return __dataclass__cls( # noqa
2081
+ operator=self.operator,
2082
+ expression=self.expression,
2083
+ )
2084
+
2085
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
2086
+ if '__copy__' in __dataclass__cls.__dict__:
2087
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
2088
+ setattr(__dataclass__cls, '__copy__', __copy__)
2089
+
2090
+ def __eq__(self, other):
2091
+ if self is other:
2092
+ return True
2093
+ if self.__class__ is not other.__class__:
2094
+ return NotImplemented
2095
+ return (
2096
+ self.operator == other.operator and
2097
+ self.expression == other.expression
2098
+ )
2099
+
2100
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
2101
+ if '__eq__' in __dataclass__cls.__dict__:
2102
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
2103
+ setattr(__dataclass__cls, '__eq__', __eq__)
2104
+
2105
+ __dataclass___setattr_frozen_fields = {
2106
+ 'operator',
2107
+ 'expression',
2108
+ }
2109
+
2110
+ def __setattr__(self, name, value):
2111
+ if (
2112
+ type(self) is __dataclass__cls
2113
+ or name in __dataclass___setattr_frozen_fields
2114
+ ):
2115
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
2116
+ super(__dataclass__cls, self).__setattr__(name, value)
2117
+
2118
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
2119
+ if '__setattr__' in __dataclass__cls.__dict__:
2120
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
2121
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
2122
+
2123
+ __dataclass___delattr_frozen_fields = {
2124
+ 'operator',
2125
+ 'expression',
2126
+ }
2127
+
2128
+ def __delattr__(self, name):
2129
+ if (
2130
+ type(self) is __dataclass__cls
2131
+ or name in __dataclass___delattr_frozen_fields
2132
+ ):
2133
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
2134
+ super(__dataclass__cls, self).__delattr__(name)
2135
+
2136
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
2137
+ if '__delattr__' in __dataclass__cls.__dict__:
2138
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
2139
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
2140
+
2141
+ def __hash__(self):
2142
+ return hash((
2143
+ self.operator,
2144
+ self.expression,
2145
+ ))
2146
+
2147
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
2148
+ setattr(__dataclass__cls, '__hash__', __hash__)
2149
+
2150
+ def __init__(
2151
+ self,
2152
+ operator: __dataclass__init__fields__0__annotation,
2153
+ expression: __dataclass__init__fields__1__annotation,
2154
+ ) -> __dataclass__None:
2155
+ __dataclass__object_setattr(self, 'operator', operator)
2156
+ __dataclass__object_setattr(self, 'expression', expression)
2157
+
2158
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
2159
+ if '__init__' in __dataclass__cls.__dict__:
2160
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
2161
+ setattr(__dataclass__cls, '__init__', __init__)
2162
+
2163
+ @__dataclass___recursive_repr()
2164
+ def __repr__(self):
2165
+ parts = []
2166
+ parts.append(f"operator={self.operator!r}")
2167
+ parts.append(f"expression={self.expression!r}")
2168
+ return (
2169
+ f"{self.__class__.__qualname__}("
2170
+ f"{', '.join(parts)}"
2171
+ f")"
2172
+ )
2173
+
2174
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
2175
+ if '__repr__' in __dataclass__cls.__dict__:
2176
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
2177
+ setattr(__dataclass__cls, '__repr__', __repr__)
2178
+
2179
+ return _process_dataclass
2180
+
2181
+
2182
+ @_register(
2183
+ plan_repr=(
2184
+ "Plans(tup=(CopyPlan(fields=('children_nodes',)), EqPlan(fields=('children_nodes',)), FrozenPlan(fields=('child"
2185
+ "ren_nodes',), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('children_nodes',), cache=Fals"
2186
+ "e), InitPlan(fields=(InitPlan.Field(name='children_nodes', annotation=OpRef(name='init.fields.0.annotation'), "
2187
+ "default=None, default_factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, val"
2188
+ "idate=None, check_type=None),), self_param='self', std_params=('children_nodes',), kw_only_params=(), frozen=T"
2189
+ "rue, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='"
2190
+ "children_nodes', kw_only=False, fn=None),), id=False, terse=False, default_fn=None)))"
2191
+ ),
2192
+ plan_repr_sha1='d958b10b4f15409b30504a103e6c94dfe8c47b9d',
2193
+ op_ref_idents=(
2194
+ '__dataclass__init__fields__0__annotation',
2195
+ ),
2196
+ cls_names=(
2197
+ ('omlish.specs.jmespath', 'Subexpression'),
2198
+ ),
2199
+ )
2200
+ def _process_dataclass__d958b10b4f15409b30504a103e6c94dfe8c47b9d():
2201
+ def _process_dataclass(
2202
+ *,
2203
+ __dataclass__cls,
2204
+ __dataclass__init__fields__0__annotation,
2205
+ __dataclass__FieldFnValidationError, # noqa
2206
+ __dataclass__FieldTypeValidationError, # noqa
2207
+ __dataclass__FnValidationError, # noqa
2208
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
2209
+ __dataclass__FunctionType=types.FunctionType, # noqa
2210
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
2211
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
2212
+ __dataclass__None=None, # noqa
2213
+ __dataclass__TypeError=TypeError, # noqa
2214
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
2215
+ __dataclass__isinstance=isinstance, # noqa
2216
+ __dataclass__object_setattr=object.__setattr__, # noqa
2217
+ __dataclass__property=property, # noqa
2218
+ ):
2219
+ def __copy__(self):
2220
+ if self.__class__ is not __dataclass__cls:
2221
+ raise TypeError(self)
2222
+ return __dataclass__cls( # noqa
2223
+ children_nodes=self.children_nodes,
2224
+ )
2225
+
2226
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
2227
+ if '__copy__' in __dataclass__cls.__dict__:
2228
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
2229
+ setattr(__dataclass__cls, '__copy__', __copy__)
2230
+
2231
+ def __eq__(self, other):
2232
+ if self is other:
2233
+ return True
2234
+ if self.__class__ is not other.__class__:
2235
+ return NotImplemented
2236
+ return (
2237
+ self.children_nodes == other.children_nodes
2238
+ )
2239
+
2240
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
2241
+ if '__eq__' in __dataclass__cls.__dict__:
2242
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
2243
+ setattr(__dataclass__cls, '__eq__', __eq__)
2244
+
2245
+ __dataclass___setattr_frozen_fields = {
2246
+ 'children_nodes',
2247
+ }
2248
+
2249
+ def __setattr__(self, name, value):
2250
+ if (
2251
+ type(self) is __dataclass__cls
2252
+ or name in __dataclass___setattr_frozen_fields
2253
+ ):
2254
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
2255
+ super(__dataclass__cls, self).__setattr__(name, value)
2256
+
2257
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
2258
+ if '__setattr__' in __dataclass__cls.__dict__:
2259
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
2260
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
2261
+
2262
+ __dataclass___delattr_frozen_fields = {
2263
+ 'children_nodes',
2264
+ }
2265
+
2266
+ def __delattr__(self, name):
2267
+ if (
2268
+ type(self) is __dataclass__cls
2269
+ or name in __dataclass___delattr_frozen_fields
2270
+ ):
2271
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
2272
+ super(__dataclass__cls, self).__delattr__(name)
2273
+
2274
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
2275
+ if '__delattr__' in __dataclass__cls.__dict__:
2276
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
2277
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
2278
+
2279
+ def __hash__(self):
2280
+ return hash((
2281
+ self.children_nodes,
2282
+ ))
2283
+
2284
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
2285
+ setattr(__dataclass__cls, '__hash__', __hash__)
2286
+
2287
+ def __init__(
2288
+ self,
2289
+ children_nodes: __dataclass__init__fields__0__annotation,
2290
+ ) -> __dataclass__None:
2291
+ __dataclass__object_setattr(self, 'children_nodes', children_nodes)
2292
+
2293
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
2294
+ if '__init__' in __dataclass__cls.__dict__:
2295
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
2296
+ setattr(__dataclass__cls, '__init__', __init__)
2297
+
2298
+ @__dataclass___recursive_repr()
2299
+ def __repr__(self):
2300
+ parts = []
2301
+ parts.append(f"children_nodes={self.children_nodes!r}")
2302
+ return (
2303
+ f"{self.__class__.__qualname__}("
2304
+ f"{', '.join(parts)}"
2305
+ f")"
2306
+ )
2307
+
2308
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
2309
+ if '__repr__' in __dataclass__cls.__dict__:
2310
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
2311
+ setattr(__dataclass__cls, '__repr__', __repr__)
2312
+
2313
+ return _process_dataclass
2314
+
2315
+
2316
+ @_register(
2317
+ plan_repr=(
2318
+ "Plans(tup=(CopyPlan(fields=()), EqPlan(fields=()), FrozenPlan(fields=(), allow_dynamic_dunder_attrs=False), Ha"
2319
+ "shPlan(action='add', fields=(), cache=False), InitPlan(fields=(), self_param='self', std_params=(), kw_only_pa"
2320
+ "rams=(), frozen=True, slots=False, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(), i"
2321
+ "d=False, terse=False, default_fn=None)))"
2322
+ ),
2323
+ plan_repr_sha1='e1f7edfe11f2b721d6a656c46e698fedc95461bb',
2324
+ op_ref_idents=(),
2325
+ cls_names=(
2326
+ ('omlish.specs.jmespath', 'CurrentNode'),
2327
+ ('omlish.specs.jmespath', 'Identity'),
2328
+ ('omlish.specs.jmespath', 'LeafNode'),
2329
+ ('omlish.specs.jmespath', 'Node'),
2330
+ ('omlish.specs.jmespath', 'RootNode'),
2331
+ ),
2332
+ )
2333
+ def _process_dataclass__e1f7edfe11f2b721d6a656c46e698fedc95461bb():
2334
+ def _process_dataclass(
2335
+ *,
2336
+ __dataclass__cls,
2337
+ __dataclass__FieldFnValidationError, # noqa
2338
+ __dataclass__FieldTypeValidationError, # noqa
2339
+ __dataclass__FnValidationError, # noqa
2340
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
2341
+ __dataclass__FunctionType=types.FunctionType, # noqa
2342
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
2343
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
2344
+ __dataclass__None=None, # noqa
2345
+ __dataclass__TypeError=TypeError, # noqa
2346
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
2347
+ __dataclass__isinstance=isinstance, # noqa
2348
+ __dataclass__object_setattr=object.__setattr__, # noqa
2349
+ __dataclass__property=property, # noqa
2350
+ ):
2351
+ def __copy__(self):
2352
+ if self.__class__ is not __dataclass__cls:
2353
+ raise TypeError(self)
2354
+ return __dataclass__cls() # noqa
2355
+
2356
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
2357
+ if '__copy__' in __dataclass__cls.__dict__:
2358
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
2359
+ setattr(__dataclass__cls, '__copy__', __copy__)
2360
+
2361
+ def __eq__(self, other):
2362
+ if self is other:
2363
+ return True
2364
+ if self.__class__ is not other.__class__:
2365
+ return NotImplemented
2366
+ return True
2367
+
2368
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
2369
+ if '__eq__' in __dataclass__cls.__dict__:
2370
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
2371
+ setattr(__dataclass__cls, '__eq__', __eq__)
2372
+
2373
+ def __setattr__(self, name, value):
2374
+ if (
2375
+ type(self) is __dataclass__cls
2376
+ ):
2377
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
2378
+ super(__dataclass__cls, self).__setattr__(name, value)
2379
+
2380
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
2381
+ if '__setattr__' in __dataclass__cls.__dict__:
2382
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
2383
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
2384
+
2385
+ def __delattr__(self, name):
2386
+ if (
2387
+ type(self) is __dataclass__cls
2388
+ ):
2389
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
2390
+ super(__dataclass__cls, self).__delattr__(name)
2391
+
2392
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
2393
+ if '__delattr__' in __dataclass__cls.__dict__:
2394
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
2395
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
2396
+
2397
+ def __hash__(self):
2398
+ return hash(())
2399
+
2400
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
2401
+ setattr(__dataclass__cls, '__hash__', __hash__)
2402
+
2403
+ def __init__(
2404
+ self,
2405
+ ) -> __dataclass__None:
2406
+ pass
2407
+
2408
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
2409
+ if '__init__' in __dataclass__cls.__dict__:
2410
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
2411
+ setattr(__dataclass__cls, '__init__', __init__)
2412
+
2413
+ @__dataclass___recursive_repr()
2414
+ def __repr__(self):
2415
+ parts = []
2416
+ return (
2417
+ f"{self.__class__.__qualname__}("
2418
+ f"{', '.join(parts)}"
2419
+ f")"
2420
+ )
2421
+
2422
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
2423
+ if '__repr__' in __dataclass__cls.__dict__:
2424
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
2425
+ setattr(__dataclass__cls, '__repr__', __repr__)
2426
+
2427
+ return _process_dataclass
2428
+
2429
+
2430
+ @_register(
2431
+ plan_repr=(
2432
+ "Plans(tup=(CopyPlan(fields=('left', 'right', 'comparator')), EqPlan(fields=('left', 'right', 'comparator')), F"
2433
+ "rozenPlan(fields=('left', 'right', 'comparator'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fi"
2434
+ "elds=('left', 'right', 'comparator'), cache=False), InitPlan(fields=(InitPlan.Field(name='left', annotation=Op"
2435
+ "Ref(name='init.fields.0.annotation'), default=None, default_factory=None, init=True, override=False, field_typ"
2436
+ "e=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='right', annotation=Op"
2437
+ "Ref(name='init.fields.1.annotation'), default=None, default_factory=None, init=True, override=False, field_typ"
2438
+ "e=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan.Field(name='comparator', annotati"
2439
+ "on=OpRef(name='init.fields.2.annotation'), default=None, default_factory=None, init=True, override=False, fiel"
2440
+ "d_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), self_param='self', std_params=('left"
2441
+ "', 'right', 'comparator'), kw_only_params=(), frozen=True, slots=False, post_init_params=None, init_fns=(), va"
2442
+ "lidate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='left', kw_only=False, fn=None), ReprPlan.Field(name='rig"
2443
+ "ht', kw_only=False, fn=None), ReprPlan.Field(name='comparator', kw_only=False, fn=None)), id=False, terse=Fals"
2444
+ "e, default_fn=None)))"
2445
+ ),
2446
+ plan_repr_sha1='ee40fd21fce658ecb8d6c4a236c24880e69abc90',
2447
+ op_ref_idents=(
2448
+ '__dataclass__init__fields__0__annotation',
2449
+ '__dataclass__init__fields__1__annotation',
2450
+ '__dataclass__init__fields__2__annotation',
2451
+ ),
2452
+ cls_names=(
2453
+ ('omlish.specs.jmespath', 'FilterProjection'),
2454
+ ),
2455
+ )
2456
+ def _process_dataclass__ee40fd21fce658ecb8d6c4a236c24880e69abc90():
2457
+ def _process_dataclass(
2458
+ *,
2459
+ __dataclass__cls,
2460
+ __dataclass__init__fields__0__annotation,
2461
+ __dataclass__init__fields__1__annotation,
2462
+ __dataclass__init__fields__2__annotation,
2463
+ __dataclass__FieldFnValidationError, # noqa
2464
+ __dataclass__FieldTypeValidationError, # noqa
2465
+ __dataclass__FnValidationError, # noqa
2466
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
2467
+ __dataclass__FunctionType=types.FunctionType, # noqa
2468
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
2469
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
2470
+ __dataclass__None=None, # noqa
2471
+ __dataclass__TypeError=TypeError, # noqa
2472
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
2473
+ __dataclass__isinstance=isinstance, # noqa
2474
+ __dataclass__object_setattr=object.__setattr__, # noqa
2475
+ __dataclass__property=property, # noqa
2476
+ ):
2477
+ def __copy__(self):
2478
+ if self.__class__ is not __dataclass__cls:
2479
+ raise TypeError(self)
2480
+ return __dataclass__cls( # noqa
2481
+ left=self.left,
2482
+ right=self.right,
2483
+ comparator=self.comparator,
2484
+ )
2485
+
2486
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
2487
+ if '__copy__' in __dataclass__cls.__dict__:
2488
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
2489
+ setattr(__dataclass__cls, '__copy__', __copy__)
2490
+
2491
+ def __eq__(self, other):
2492
+ if self is other:
2493
+ return True
2494
+ if self.__class__ is not other.__class__:
2495
+ return NotImplemented
2496
+ return (
2497
+ self.left == other.left and
2498
+ self.right == other.right and
2499
+ self.comparator == other.comparator
2500
+ )
2501
+
2502
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
2503
+ if '__eq__' in __dataclass__cls.__dict__:
2504
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
2505
+ setattr(__dataclass__cls, '__eq__', __eq__)
2506
+
2507
+ __dataclass___setattr_frozen_fields = {
2508
+ 'left',
2509
+ 'right',
2510
+ 'comparator',
2511
+ }
2512
+
2513
+ def __setattr__(self, name, value):
2514
+ if (
2515
+ type(self) is __dataclass__cls
2516
+ or name in __dataclass___setattr_frozen_fields
2517
+ ):
2518
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
2519
+ super(__dataclass__cls, self).__setattr__(name, value)
2520
+
2521
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
2522
+ if '__setattr__' in __dataclass__cls.__dict__:
2523
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
2524
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
2525
+
2526
+ __dataclass___delattr_frozen_fields = {
2527
+ 'left',
2528
+ 'right',
2529
+ 'comparator',
2530
+ }
2531
+
2532
+ def __delattr__(self, name):
2533
+ if (
2534
+ type(self) is __dataclass__cls
2535
+ or name in __dataclass___delattr_frozen_fields
2536
+ ):
2537
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
2538
+ super(__dataclass__cls, self).__delattr__(name)
2539
+
2540
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
2541
+ if '__delattr__' in __dataclass__cls.__dict__:
2542
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
2543
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
2544
+
2545
+ def __hash__(self):
2546
+ return hash((
2547
+ self.left,
2548
+ self.right,
2549
+ self.comparator,
2550
+ ))
2551
+
2552
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
2553
+ setattr(__dataclass__cls, '__hash__', __hash__)
2554
+
2555
+ def __init__(
2556
+ self,
2557
+ left: __dataclass__init__fields__0__annotation,
2558
+ right: __dataclass__init__fields__1__annotation,
2559
+ comparator: __dataclass__init__fields__2__annotation,
2560
+ ) -> __dataclass__None:
2561
+ __dataclass__object_setattr(self, 'left', left)
2562
+ __dataclass__object_setattr(self, 'right', right)
2563
+ __dataclass__object_setattr(self, 'comparator', comparator)
2564
+
2565
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
2566
+ if '__init__' in __dataclass__cls.__dict__:
2567
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
2568
+ setattr(__dataclass__cls, '__init__', __init__)
2569
+
2570
+ @__dataclass___recursive_repr()
2571
+ def __repr__(self):
2572
+ parts = []
2573
+ parts.append(f"left={self.left!r}")
2574
+ parts.append(f"right={self.right!r}")
2575
+ parts.append(f"comparator={self.comparator!r}")
2576
+ return (
2577
+ f"{self.__class__.__qualname__}("
2578
+ f"{', '.join(parts)}"
2579
+ f")"
2580
+ )
2581
+
2582
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
2583
+ if '__repr__' in __dataclass__cls.__dict__:
2584
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
2585
+ setattr(__dataclass__cls, '__repr__', __repr__)
2586
+
2587
+ return _process_dataclass
2588
+
2589
+
2590
+ @_register(
2591
+ plan_repr=(
2592
+ "Plans(tup=(CopyPlan(fields=('condition', 'if_truthy', 'if_falsy')), EqPlan(fields=('condition', 'if_truthy', '"
2593
+ "if_falsy')), FrozenPlan(fields=('condition', 'if_truthy', 'if_falsy'), allow_dynamic_dunder_attrs=False), Hash"
2594
+ "Plan(action='add', fields=('condition', 'if_truthy', 'if_falsy'), cache=False), InitPlan(fields=(InitPlan.Fiel"
2595
+ "d(name='condition', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_factory=None, ini"
2596
+ "t=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitPlan."
2597
+ "Field(name='if_truthy', annotation=OpRef(name='init.fields.1.annotation'), default=None, default_factory=None,"
2598
+ " init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None), InitP"
2599
+ "lan.Field(name='if_falsy', annotation=OpRef(name='init.fields.2.annotation'), default=None, default_factory=No"
2600
+ "ne, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type=None)), s"
2601
+ "elf_param='self', std_params=('condition', 'if_truthy', 'if_falsy'), kw_only_params=(), frozen=True, slots=Fal"
2602
+ "se, post_init_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='condition', kw"
2603
+ "_only=False, fn=None), ReprPlan.Field(name='if_truthy', kw_only=False, fn=None), ReprPlan.Field(name='if_falsy"
2604
+ "', kw_only=False, fn=None)), id=False, terse=False, default_fn=None)))"
2605
+ ),
2606
+ plan_repr_sha1='f81e930fc657b10385e84befd8ddeba424da3fc1',
2607
+ op_ref_idents=(
2608
+ '__dataclass__init__fields__0__annotation',
2609
+ '__dataclass__init__fields__1__annotation',
2610
+ '__dataclass__init__fields__2__annotation',
2611
+ ),
2612
+ cls_names=(
2613
+ ('omlish.specs.jmespath', 'TernaryOperator'),
2614
+ ),
2615
+ )
2616
+ def _process_dataclass__f81e930fc657b10385e84befd8ddeba424da3fc1():
2617
+ def _process_dataclass(
2618
+ *,
2619
+ __dataclass__cls,
2620
+ __dataclass__init__fields__0__annotation,
2621
+ __dataclass__init__fields__1__annotation,
2622
+ __dataclass__init__fields__2__annotation,
2623
+ __dataclass__FieldFnValidationError, # noqa
2624
+ __dataclass__FieldTypeValidationError, # noqa
2625
+ __dataclass__FnValidationError, # noqa
2626
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
2627
+ __dataclass__FunctionType=types.FunctionType, # noqa
2628
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
2629
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
2630
+ __dataclass__None=None, # noqa
2631
+ __dataclass__TypeError=TypeError, # noqa
2632
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
2633
+ __dataclass__isinstance=isinstance, # noqa
2634
+ __dataclass__object_setattr=object.__setattr__, # noqa
2635
+ __dataclass__property=property, # noqa
2636
+ ):
2637
+ def __copy__(self):
2638
+ if self.__class__ is not __dataclass__cls:
2639
+ raise TypeError(self)
2640
+ return __dataclass__cls( # noqa
2641
+ condition=self.condition,
2642
+ if_truthy=self.if_truthy,
2643
+ if_falsy=self.if_falsy,
2644
+ )
2645
+
2646
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
2647
+ if '__copy__' in __dataclass__cls.__dict__:
2648
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
2649
+ setattr(__dataclass__cls, '__copy__', __copy__)
2650
+
2651
+ def __eq__(self, other):
2652
+ if self is other:
2653
+ return True
2654
+ if self.__class__ is not other.__class__:
2655
+ return NotImplemented
2656
+ return (
2657
+ self.condition == other.condition and
2658
+ self.if_truthy == other.if_truthy and
2659
+ self.if_falsy == other.if_falsy
2660
+ )
2661
+
2662
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
2663
+ if '__eq__' in __dataclass__cls.__dict__:
2664
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
2665
+ setattr(__dataclass__cls, '__eq__', __eq__)
2666
+
2667
+ __dataclass___setattr_frozen_fields = {
2668
+ 'condition',
2669
+ 'if_truthy',
2670
+ 'if_falsy',
2671
+ }
2672
+
2673
+ def __setattr__(self, name, value):
2674
+ if (
2675
+ type(self) is __dataclass__cls
2676
+ or name in __dataclass___setattr_frozen_fields
2677
+ ):
2678
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
2679
+ super(__dataclass__cls, self).__setattr__(name, value)
2680
+
2681
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
2682
+ if '__setattr__' in __dataclass__cls.__dict__:
2683
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
2684
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
2685
+
2686
+ __dataclass___delattr_frozen_fields = {
2687
+ 'condition',
2688
+ 'if_truthy',
2689
+ 'if_falsy',
2690
+ }
2691
+
2692
+ def __delattr__(self, name):
2693
+ if (
2694
+ type(self) is __dataclass__cls
2695
+ or name in __dataclass___delattr_frozen_fields
2696
+ ):
2697
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
2698
+ super(__dataclass__cls, self).__delattr__(name)
2699
+
2700
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
2701
+ if '__delattr__' in __dataclass__cls.__dict__:
2702
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
2703
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
2704
+
2705
+ def __hash__(self):
2706
+ return hash((
2707
+ self.condition,
2708
+ self.if_truthy,
2709
+ self.if_falsy,
2710
+ ))
2711
+
2712
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
2713
+ setattr(__dataclass__cls, '__hash__', __hash__)
2714
+
2715
+ def __init__(
2716
+ self,
2717
+ condition: __dataclass__init__fields__0__annotation,
2718
+ if_truthy: __dataclass__init__fields__1__annotation,
2719
+ if_falsy: __dataclass__init__fields__2__annotation,
2720
+ ) -> __dataclass__None:
2721
+ __dataclass__object_setattr(self, 'condition', condition)
2722
+ __dataclass__object_setattr(self, 'if_truthy', if_truthy)
2723
+ __dataclass__object_setattr(self, 'if_falsy', if_falsy)
2724
+
2725
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
2726
+ if '__init__' in __dataclass__cls.__dict__:
2727
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
2728
+ setattr(__dataclass__cls, '__init__', __init__)
2729
+
2730
+ @__dataclass___recursive_repr()
2731
+ def __repr__(self):
2732
+ parts = []
2733
+ parts.append(f"condition={self.condition!r}")
2734
+ parts.append(f"if_truthy={self.if_truthy!r}")
2735
+ parts.append(f"if_falsy={self.if_falsy!r}")
2736
+ return (
2737
+ f"{self.__class__.__qualname__}("
2738
+ f"{', '.join(parts)}"
2739
+ f")"
2740
+ )
2741
+
2742
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
2743
+ if '__repr__' in __dataclass__cls.__dict__:
2744
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
2745
+ setattr(__dataclass__cls, '__repr__', __repr__)
2746
+
2747
+ return _process_dataclass
2748
+
2749
+
2750
+ @_register(
2751
+ plan_repr=(
2752
+ "Plans(tup=(CopyPlan(fields=('name', 'expr')), EqPlan(fields=('name', 'expr')), FrozenPlan(fields=('name', 'exp"
2753
+ "r'), allow_dynamic_dunder_attrs=False), HashPlan(action='add', fields=('name', 'expr'), cache=False), InitPlan"
2754
+ "(fields=(InitPlan.Field(name='name', annotation=OpRef(name='init.fields.0.annotation'), default=None, default_"
2755
+ "factory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type"
2756
+ "=None), InitPlan.Field(name='expr', annotation=OpRef(name='init.fields.1.annotation'), default=None, default_f"
2757
+ "actory=None, init=True, override=False, field_type=FieldType.INSTANCE, coerce=None, validate=None, check_type="
2758
+ "None)), self_param='self', std_params=('name', 'expr'), kw_only_params=(), frozen=True, slots=False, post_init"
2759
+ "_params=None, init_fns=(), validate_fns=()), ReprPlan(fields=(ReprPlan.Field(name='name', kw_only=False, fn=No"
2760
+ "ne), ReprPlan.Field(name='expr', kw_only=False, fn=None)), id=False, terse=False, default_fn=None)))"
2761
+ ),
2762
+ plan_repr_sha1='fb46b9fb75089de970d1b8ccffb404d02368804a',
2763
+ op_ref_idents=(
2764
+ '__dataclass__init__fields__0__annotation',
2765
+ '__dataclass__init__fields__1__annotation',
2766
+ ),
2767
+ cls_names=(
2768
+ ('omlish.specs.jmespath', 'Assign'),
2769
+ ),
2770
+ )
2771
+ def _process_dataclass__fb46b9fb75089de970d1b8ccffb404d02368804a():
2772
+ def _process_dataclass(
2773
+ *,
2774
+ __dataclass__cls,
2775
+ __dataclass__init__fields__0__annotation,
2776
+ __dataclass__init__fields__1__annotation,
2777
+ __dataclass__FieldFnValidationError, # noqa
2778
+ __dataclass__FieldTypeValidationError, # noqa
2779
+ __dataclass__FnValidationError, # noqa
2780
+ __dataclass__FrozenInstanceError=dataclasses.FrozenInstanceError, # noqa
2781
+ __dataclass__FunctionType=types.FunctionType, # noqa
2782
+ __dataclass__HAS_DEFAULT_FACTORY=dataclasses._HAS_DEFAULT_FACTORY, # noqa
2783
+ __dataclass__MISSING=dataclasses.MISSING, # noqa
2784
+ __dataclass__None=None, # noqa
2785
+ __dataclass__TypeError=TypeError, # noqa
2786
+ __dataclass___recursive_repr=reprlib.recursive_repr, # noqa
2787
+ __dataclass__isinstance=isinstance, # noqa
2788
+ __dataclass__object_setattr=object.__setattr__, # noqa
2789
+ __dataclass__property=property, # noqa
2790
+ ):
2791
+ def __copy__(self):
2792
+ if self.__class__ is not __dataclass__cls:
2793
+ raise TypeError(self)
2794
+ return __dataclass__cls( # noqa
2795
+ name=self.name,
2796
+ expr=self.expr,
2797
+ )
2798
+
2799
+ __copy__.__qualname__ = f"{__dataclass__cls.__qualname__}.__copy__"
2800
+ if '__copy__' in __dataclass__cls.__dict__:
2801
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __copy__ in class {__dataclass__cls.__name__}")
2802
+ setattr(__dataclass__cls, '__copy__', __copy__)
2803
+
2804
+ def __eq__(self, other):
2805
+ if self is other:
2806
+ return True
2807
+ if self.__class__ is not other.__class__:
2808
+ return NotImplemented
2809
+ return (
2810
+ self.name == other.name and
2811
+ self.expr == other.expr
2812
+ )
2813
+
2814
+ __eq__.__qualname__ = f"{__dataclass__cls.__qualname__}.__eq__"
2815
+ if '__eq__' in __dataclass__cls.__dict__:
2816
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __eq__ in class {__dataclass__cls.__name__}")
2817
+ setattr(__dataclass__cls, '__eq__', __eq__)
2818
+
2819
+ __dataclass___setattr_frozen_fields = {
2820
+ 'name',
2821
+ 'expr',
2822
+ }
2823
+
2824
+ def __setattr__(self, name, value):
2825
+ if (
2826
+ type(self) is __dataclass__cls
2827
+ or name in __dataclass___setattr_frozen_fields
2828
+ ):
2829
+ raise __dataclass__FrozenInstanceError(f"cannot assign to field {name!r}")
2830
+ super(__dataclass__cls, self).__setattr__(name, value)
2831
+
2832
+ __setattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__setattr__"
2833
+ if '__setattr__' in __dataclass__cls.__dict__:
2834
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __setattr__ in class {__dataclass__cls.__name__}")
2835
+ setattr(__dataclass__cls, '__setattr__', __setattr__)
2836
+
2837
+ __dataclass___delattr_frozen_fields = {
2838
+ 'name',
2839
+ 'expr',
2840
+ }
2841
+
2842
+ def __delattr__(self, name):
2843
+ if (
2844
+ type(self) is __dataclass__cls
2845
+ or name in __dataclass___delattr_frozen_fields
2846
+ ):
2847
+ raise __dataclass__FrozenInstanceError(f"cannot delete field {name!r}")
2848
+ super(__dataclass__cls, self).__delattr__(name)
2849
+
2850
+ __delattr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__delattr__"
2851
+ if '__delattr__' in __dataclass__cls.__dict__:
2852
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __delattr__ in class {__dataclass__cls.__name__}")
2853
+ setattr(__dataclass__cls, '__delattr__', __delattr__)
2854
+
2855
+ def __hash__(self):
2856
+ return hash((
2857
+ self.name,
2858
+ self.expr,
2859
+ ))
2860
+
2861
+ __hash__.__qualname__ = f"{__dataclass__cls.__qualname__}.__hash__"
2862
+ setattr(__dataclass__cls, '__hash__', __hash__)
2863
+
2864
+ def __init__(
2865
+ self,
2866
+ name: __dataclass__init__fields__0__annotation,
2867
+ expr: __dataclass__init__fields__1__annotation,
2868
+ ) -> __dataclass__None:
2869
+ __dataclass__object_setattr(self, 'name', name)
2870
+ __dataclass__object_setattr(self, 'expr', expr)
2871
+
2872
+ __init__.__qualname__ = f"{__dataclass__cls.__qualname__}.__init__"
2873
+ if '__init__' in __dataclass__cls.__dict__:
2874
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __init__ in class {__dataclass__cls.__name__}")
2875
+ setattr(__dataclass__cls, '__init__', __init__)
2876
+
2877
+ @__dataclass___recursive_repr()
2878
+ def __repr__(self):
2879
+ parts = []
2880
+ parts.append(f"name={self.name!r}")
2881
+ parts.append(f"expr={self.expr!r}")
2882
+ return (
2883
+ f"{self.__class__.__qualname__}("
2884
+ f"{', '.join(parts)}"
2885
+ f")"
2886
+ )
2887
+
2888
+ __repr__.__qualname__ = f"{__dataclass__cls.__qualname__}.__repr__"
2889
+ if '__repr__' in __dataclass__cls.__dict__:
2890
+ raise __dataclass__TypeError(f"Cannot overwrite attribute __repr__ in class {__dataclass__cls.__name__}")
2891
+ setattr(__dataclass__cls, '__repr__', __repr__)
2892
+
2893
+ return _process_dataclass