omdev 0.0.0.dev224__py3-none-any.whl → 0.0.0.dev226__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.
omdev/amalg/typing.py CHANGED
@@ -89,9 +89,15 @@ def skip_root_level_if_type_checking_block(
89
89
  ) -> int:
90
90
  def skip_block():
91
91
  nonlocal i
92
+
93
+ nl = cls[i]
94
+ if nl[0].name != 'INDENT':
95
+ raise RuntimeError
96
+ i += 1
97
+
92
98
  while True:
93
99
  nl = cls[i]
94
- if nl and nl[0].name != 'INDENT':
100
+ if nl and nl[0].name == 'DEDENT':
95
101
  return nl
96
102
  i += 1
97
103
 
omdev/ci/requirements.py CHANGED
@@ -18,7 +18,7 @@ import typing as ta
18
18
 
19
19
  from omlish.lite.check import check
20
20
  from omlish.lite.contextmanagers import defer
21
- from omlish.subprocesses import subprocesses
21
+ from omlish.subprocesses.sync import subprocesses
22
22
 
23
23
  from .utils import sha256_str
24
24
 
omdev/git/revisions.py CHANGED
@@ -4,8 +4,8 @@ import os.path
4
4
  import subprocess
5
5
  import typing as ta
6
6
 
7
- from omlish.subprocesses import subprocess_maybe_shell_wrap_exec
8
- from omlish.subprocesses import subprocesses
7
+ from omlish.subprocesses.sync import subprocesses
8
+ from omlish.subprocesses.wrap import subprocess_maybe_shell_wrap_exec
9
9
 
10
10
 
11
11
  def get_git_revision(
omdev/git/shallow.py CHANGED
@@ -4,7 +4,7 @@ import dataclasses as dc
4
4
  import os.path
5
5
  import typing as ta
6
6
 
7
- from omlish.subprocesses import subprocesses
7
+ from omlish.subprocesses.sync import subprocesses
8
8
 
9
9
 
10
10
  @dc.dataclass(frozen=True)
omdev/git/status.py CHANGED
@@ -7,7 +7,7 @@ import subprocess
7
7
  import typing as ta
8
8
 
9
9
  from omlish.lite.check import check
10
- from omlish.subprocesses import subprocess_maybe_shell_wrap_exec
10
+ from omlish.subprocesses.wrap import subprocess_maybe_shell_wrap_exec
11
11
 
12
12
 
13
13
  _GIT_STATUS_LINE_ESCAPE_CODES: ta.Mapping[str, str] = {
omdev/precheck/lite.py CHANGED
@@ -9,7 +9,7 @@ import textwrap
9
9
  import typing as ta
10
10
 
11
11
  from omlish import cached
12
- from omlish.subprocesses import subprocess_maybe_shell_wrap_exec
12
+ from omlish.subprocesses.wrap import subprocess_maybe_shell_wrap_exec
13
13
 
14
14
  from .. import magic
15
15
  from .base import Precheck
omdev/pyproject/pkg.py CHANGED
@@ -38,7 +38,7 @@ import typing as ta
38
38
  from omlish.formats.toml.writer import TomlWriter
39
39
  from omlish.lite.cached import cached_nullary
40
40
  from omlish.lite.logs import log
41
- from omlish.subprocesses import subprocesses
41
+ from omlish.subprocesses.sync import subprocesses
42
42
 
43
43
  from ..cexts.magic import CextMagic
44
44
  from ..magic.find import find_magic_files