omextra 0.0.0.dev425__py3-none-any.whl → 0.0.0.dev427__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.
@@ -3,7 +3,7 @@
3
3
  "module": ".text.antlr.cli.__main__",
4
4
  "attr": "_CLI_MODULE",
5
5
  "file": "omextra/text/antlr/cli/__main__.py",
6
- "line": 4,
6
+ "line": 1,
7
7
  "value": {
8
8
  "!omdev.cli.types.CliModule": {
9
9
  "name": "antlr",
omextra/io/trampoline.py CHANGED
@@ -135,7 +135,7 @@ class IoTrampoline(lang.Abstract):
135
135
  raise NotImplementedError
136
136
 
137
137
  @abc.abstractmethod
138
- def feed(self, *data: bytes) -> ta.Iterable[bytes]:
138
+ def feed(self, *data: bytes) -> ta.Iterator[bytes]:
139
139
  raise NotImplementedError
140
140
 
141
141
 
@@ -198,7 +198,7 @@ class ThreadIoTrampoline(IoTrampoline):
198
198
  finally:
199
199
  self._out.push(Exited)
200
200
 
201
- def feed(self, *data: bytes) -> ta.Iterable[bytes]:
201
+ def feed(self, *data: bytes) -> ta.Iterator[bytes]:
202
202
  self._in.push(*data)
203
203
  while True:
204
204
  e = self._out.pop()
@@ -273,7 +273,7 @@ class ThreadletIoTrampoline(IoTrampoline):
273
273
  check.not_none(self._tl.parent).throw(e)
274
274
  raise
275
275
 
276
- def feed(self, *data: bytes) -> ta.Iterable[bytes]:
276
+ def feed(self, *data: bytes) -> ta.Iterator[bytes]:
277
277
  i: bytes | type[NeedMore]
278
278
  for i in data:
279
279
  while True:
@@ -1,8 +1,8 @@
1
- from omdev.cli import CliModule
2
-
3
-
4
1
  # @omlish-manifest
5
- _CLI_MODULE = CliModule('antlr', __name__)
2
+ _CLI_MODULE = {'!omdev.cli.types.CliModule': {
3
+ 'name': 'antlr',
4
+ 'module': __name__,
5
+ }}
6
6
 
7
7
 
8
8
  if __name__ == '__main__':
@@ -10,7 +10,6 @@ import shutil
10
10
  import subprocess
11
11
  import typing as ta
12
12
 
13
- from omdev.cache import data as dcache
14
13
  from omlish import check
15
14
  from omlish import lang
16
15
  from omlish.os.paths import is_path_in_dir
@@ -19,6 +18,12 @@ from .consts import ANTLR_JAR_URL
19
18
  from .consts import ANTLR_RUNTIME_VENDOR
20
19
 
21
20
 
21
+ if ta.TYPE_CHECKING:
22
+ from omdev.cache import data as dcache
23
+ else:
24
+ dcache = lang.proxy_import('omdev.cache.data')
25
+
26
+
22
27
  log = logging.getLogger(__name__)
23
28
 
24
29
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omextra
3
- Version: 0.0.0.dev425
3
+ Version: 0.0.0.dev427
4
4
  Summary: omextra
5
5
  Author: wrmsr
6
6
  License-Expression: BSD-3-Clause
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.13
14
14
  Requires-Python: >=3.13
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
- Requires-Dist: omlish==0.0.0.dev425
17
+ Requires-Dist: omlish==0.0.0.dev427
18
18
  Dynamic: license-file
19
19
 
20
20
  # Overview
@@ -1,4 +1,4 @@
1
- omextra/.omlish-manifests.json,sha256=CALQvfQGFrOew_TkFbvRN5dWSWGriw1rorXZYnCre0Q,290
1
+ omextra/.omlish-manifests.json,sha256=E1M9UJ31RfpLfsZ2MfbN0_GAh_Lu_vj9wVJKPgak8jQ,290
2
2
  omextra/__about__.py,sha256=UmONS0zKtygpY7Z9AD42Kn1cajMEdLKHzUwG00kaaFM,689
3
3
  omextra/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  omextra/defs.py,sha256=hfVELomWJ8ARSXCdQZJsDGqR4qW7FHqs7uUxjTA1NoE,4923
@@ -12,7 +12,7 @@ omextra/formats/json/_antlr/JsonParser.py,sha256=qer0KlKadkvtfFIMnoeuzGRS6eiPPjI
12
12
  omextra/formats/json/_antlr/JsonVisitor.py,sha256=-FcZhCrfDThE1Oah0R-Cy_w6sh5QaVipgR9cyhMjMgs,1134
13
13
  omextra/formats/json/_antlr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  omextra/io/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- omextra/io/trampoline.py,sha256=93STv-6CI9ooJ-TsifZ_sDuRsJIsVzzPsh5izcsQtRc,7221
15
+ omextra/io/trampoline.py,sha256=nzCXtL4qip3IjfHwSHqhWkh429iakUFikbYKgx66cLc,7221
16
16
  omextra/specs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  omextra/specs/irc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  omextra/specs/irc/messages/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -55,13 +55,13 @@ omextra/sql/parsing/_antlr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
55
55
  omextra/text/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
56
  omextra/text/antlr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
57
57
  omextra/text/antlr/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
- omextra/text/antlr/cli/__main__.py,sha256=nSwRZ1P6xQWgDjgO-SZhWN83TxDD3LgnRBM4LaZOjRU,173
58
+ omextra/text/antlr/cli/__main__.py,sha256=ckYkj0drxabBVwWYewH2SS36TTeAxllZtS4xElOuTkU,191
59
59
  omextra/text/antlr/cli/cli.py,sha256=QeO5vSUJDL43lAa2EYsLnN-jZBcNOTwB1C9Ua_h7qoA,1228
60
60
  omextra/text/antlr/cli/consts.py,sha256=4xH4jyNE5czXRWCn65jFF0MrAodMPe_kYMWpgMxWmpo,289
61
- omextra/text/antlr/cli/gen.py,sha256=mv7KaDkJbcRm5kMExXTnfd43GkfSyPUfmMMcKlWoALQ,5125
62
- omextra-0.0.0.dev425.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
63
- omextra-0.0.0.dev425.dist-info/METADATA,sha256=UWkPlYCupdV_EVPJA1gId4_smalqpgQ8kBh1VvdztJU,2531
64
- omextra-0.0.0.dev425.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
65
- omextra-0.0.0.dev425.dist-info/entry_points.txt,sha256=-MFAMks5HgZ60Ore0Wl5lKVKk8z4kf1Ls3WY9E_OlCU,37
66
- omextra-0.0.0.dev425.dist-info/top_level.txt,sha256=o1nCNRejLMcayDngLuWMWwaeOucz33BXbpuoVvvzjPc,8
67
- omextra-0.0.0.dev425.dist-info/RECORD,,
61
+ omextra/text/antlr/cli/gen.py,sha256=CAinmiOHvrdc_s6VddZdnWk60_wZefsZ_Oo9FvEjvag,5209
62
+ omextra-0.0.0.dev427.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
63
+ omextra-0.0.0.dev427.dist-info/METADATA,sha256=RZ7RgpPM6DIRs1SLCsSq5SnHaw2eG1hCBj7pR6GyFjQ,2531
64
+ omextra-0.0.0.dev427.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
65
+ omextra-0.0.0.dev427.dist-info/entry_points.txt,sha256=-MFAMks5HgZ60Ore0Wl5lKVKk8z4kf1Ls3WY9E_OlCU,37
66
+ omextra-0.0.0.dev427.dist-info/top_level.txt,sha256=o1nCNRejLMcayDngLuWMWwaeOucz33BXbpuoVvvzjPc,8
67
+ omextra-0.0.0.dev427.dist-info/RECORD,,