ominfra 0.0.0.dev148__tar.gz → 0.0.0.dev149__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. {ominfra-0.0.0.dev148/ominfra.egg-info → ominfra-0.0.0.dev149}/PKG-INFO +3 -3
  2. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/clouds/aws/cli.py +1 -1
  3. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/journald/messages.py +1 -1
  4. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/deploy/paths.py +2 -2
  5. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/scripts/journald2aws.py +68 -63
  6. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/scripts/manage.py +6 -1
  7. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/scripts/supervisor.py +491 -486
  8. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/dispatchers.py +1 -1
  9. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/http.py +2 -2
  10. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/inject.py +4 -4
  11. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/io.py +1 -1
  12. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/spawningimpl.py +1 -1
  13. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/supervisor.py +1 -1
  14. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/types.py +1 -1
  15. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/tailscale/cli.py +1 -1
  16. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149/ominfra.egg-info}/PKG-INFO +3 -3
  17. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra.egg-info/requires.txt +2 -2
  18. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/pyproject.toml +3 -3
  19. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/LICENSE +0 -0
  20. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/MANIFEST.in +0 -0
  21. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/README.rst +0 -0
  22. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/.manifests.json +0 -0
  23. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/__about__.py +0 -0
  24. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/__init__.py +0 -0
  25. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/clouds/__init__.py +0 -0
  26. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/clouds/aws/__init__.py +0 -0
  27. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/clouds/aws/__main__.py +0 -0
  28. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/clouds/aws/auth.py +0 -0
  29. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/clouds/aws/dataclasses.py +0 -0
  30. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/clouds/aws/journald2aws/__init__.py +0 -0
  31. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/clouds/aws/journald2aws/__main__.py +0 -0
  32. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/clouds/aws/journald2aws/cursor.py +0 -0
  33. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/clouds/aws/journald2aws/driver.py +0 -0
  34. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/clouds/aws/journald2aws/main.py +0 -0
  35. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/clouds/aws/journald2aws/poster.py +0 -0
  36. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/clouds/aws/logs.py +0 -0
  37. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/clouds/aws/metadata.py +0 -0
  38. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/clouds/gcp/__init__.py +0 -0
  39. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/clouds/gcp/auth.py +0 -0
  40. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/cmds.py +0 -0
  41. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/configs.py +0 -0
  42. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/journald/__init__.py +0 -0
  43. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/journald/fields.py +0 -0
  44. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/journald/genmessages.py +0 -0
  45. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/journald/tailer.py +0 -0
  46. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/__init__.py +0 -0
  47. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/__main__.py +0 -0
  48. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/bootstrap.py +0 -0
  49. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/bootstrap_.py +0 -0
  50. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/commands/__init__.py +0 -0
  51. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/commands/base.py +0 -0
  52. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/commands/execution.py +0 -0
  53. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/commands/inject.py +0 -0
  54. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/commands/interp.py +0 -0
  55. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/commands/marshal.py +0 -0
  56. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/commands/subprocess.py +0 -0
  57. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/config.py +0 -0
  58. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/deploy/__init__.py +0 -0
  59. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/deploy/command.py +0 -0
  60. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/deploy/inject.py +0 -0
  61. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/inject.py +0 -0
  62. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/main.py +0 -0
  63. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/marshal.py +0 -0
  64. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/remote/__init__.py +0 -0
  65. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/remote/_main.py +0 -0
  66. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/remote/channel.py +0 -0
  67. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/remote/config.py +0 -0
  68. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/remote/connection.py +0 -0
  69. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/remote/execution.py +0 -0
  70. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/remote/inject.py +0 -0
  71. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/remote/payload.py +0 -0
  72. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/manage/remote/spawning.py +0 -0
  73. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/pyremote.py +0 -0
  74. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/scripts/__init__.py +0 -0
  75. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/ssh.py +0 -0
  76. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/LICENSE.txt +0 -0
  77. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/__init__.py +0 -0
  78. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/__main__.py +0 -0
  79. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/configs.py +0 -0
  80. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/dispatchersimpl.py +0 -0
  81. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/events.py +0 -0
  82. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/exceptions.py +0 -0
  83. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/groups.py +0 -0
  84. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/groupsimpl.py +0 -0
  85. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/main.py +0 -0
  86. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/pipes.py +0 -0
  87. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/privileges.py +0 -0
  88. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/process.py +0 -0
  89. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/processimpl.py +0 -0
  90. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/setup.py +0 -0
  91. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/setupimpl.py +0 -0
  92. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/signals.py +0 -0
  93. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/spawning.py +0 -0
  94. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/states.py +0 -0
  95. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/utils/__init__.py +0 -0
  96. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/utils/collections.py +0 -0
  97. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/utils/diag.py +0 -0
  98. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/utils/fds.py +0 -0
  99. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/utils/fs.py +0 -0
  100. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/utils/os.py +0 -0
  101. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/utils/ostypes.py +0 -0
  102. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/utils/signals.py +0 -0
  103. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/utils/strings.py +0 -0
  104. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/supervisor/utils/users.py +0 -0
  105. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/tailscale/__init__.py +0 -0
  106. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/tailscale/api.py +0 -0
  107. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/threadworkers.py +0 -0
  108. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/tools/__init__.py +0 -0
  109. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra/tools/listresources.py +0 -0
  110. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra.egg-info/SOURCES.txt +0 -0
  111. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra.egg-info/dependency_links.txt +0 -0
  112. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra.egg-info/entry_points.txt +0 -0
  113. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/ominfra.egg-info/top_level.txt +0 -0
  114. {ominfra-0.0.0.dev148 → ominfra-0.0.0.dev149}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ominfra
3
- Version: 0.0.0.dev148
3
+ Version: 0.0.0.dev149
4
4
  Summary: ominfra
5
5
  Author: wrmsr
6
6
  License: BSD-3-Clause
@@ -12,8 +12,8 @@ Classifier: Operating System :: OS Independent
12
12
  Classifier: Operating System :: POSIX
13
13
  Requires-Python: >=3.12
14
14
  License-File: LICENSE
15
- Requires-Dist: omdev==0.0.0.dev148
16
- Requires-Dist: omlish==0.0.0.dev148
15
+ Requires-Dist: omdev==0.0.0.dev149
16
+ Requires-Dist: omlish==0.0.0.dev149
17
17
  Provides-Extra: all
18
18
  Requires-Dist: paramiko~=3.5; extra == "all"
19
19
  Requires-Dist: asyncssh~=2.18; extra == "all"
@@ -1,4 +1,4 @@
1
- from omlish import argparse as ap
1
+ from omlish.argparse import all as ap
2
2
  from omlish.formats import json
3
3
 
4
4
  from . import metadata
@@ -4,8 +4,8 @@ import dataclasses as dc
4
4
  import json
5
5
  import typing as ta
6
6
 
7
+ from omlish.io.buffers import DelimitingBuffer
7
8
  from omlish.lite.check import check_isinstance
8
- from omlish.lite.io import DelimitingBuffer
9
9
  from omlish.lite.logs import log
10
10
 
11
11
 
@@ -37,8 +37,8 @@ import os.path
37
37
  import typing as ta
38
38
 
39
39
  from omlish.lite.check import check_equal
40
- from omlish.lite.check import check_non_empty
41
40
  from omlish.lite.check import check_non_empty_str
41
+ from omlish.lite.check import check_not_empty
42
42
  from omlish.lite.check import check_not_in
43
43
 
44
44
 
@@ -151,7 +151,7 @@ class DeployPath:
151
151
  parts: ta.Sequence[DeployPathPart]
152
152
 
153
153
  def __post_init__(self) -> None:
154
- check_non_empty(self.parts)
154
+ check_not_empty(self.parts)
155
155
  for p in self.parts[:-1]:
156
156
  check_equal(p.kind, 'dir')
157
157
 
@@ -989,6 +989,11 @@ def check_non_empty_str(v: ta.Optional[str]) -> str:
989
989
  return v
990
990
 
991
991
 
992
+ def check_arg(v: bool, msg: str = 'Illegal argument') -> None:
993
+ if not v:
994
+ raise ValueError(msg)
995
+
996
+
992
997
  def check_state(v: bool, msg: str = 'Illegal state') -> None:
993
998
  if not v:
994
999
  raise ValueError(msg)
@@ -1041,7 +1046,7 @@ def check_empty(v: SizedT) -> SizedT:
1041
1046
  return v
1042
1047
 
1043
1048
 
1044
- def check_non_empty(v: SizedT) -> SizedT:
1049
+ def check_not_empty(v: SizedT) -> SizedT:
1045
1050
  if not len(v):
1046
1051
  raise ValueError(v)
1047
1052
  return v
@@ -1630,65 +1635,7 @@ class AwsDataclassMeta:
1630
1635
 
1631
1636
 
1632
1637
  ########################################
1633
- # ../../../../../omlish/lite/contextmanagers.py
1634
-
1635
-
1636
- ##
1637
-
1638
-
1639
- class ExitStacked:
1640
- _exit_stack: ta.Optional[contextlib.ExitStack] = None
1641
-
1642
- def __enter__(self: ExitStackedT) -> ExitStackedT:
1643
- check_state(self._exit_stack is None)
1644
- es = self._exit_stack = contextlib.ExitStack()
1645
- es.__enter__()
1646
- return self
1647
-
1648
- def __exit__(self, exc_type, exc_val, exc_tb):
1649
- if (es := self._exit_stack) is None:
1650
- return None
1651
- self._exit_contexts()
1652
- return es.__exit__(exc_type, exc_val, exc_tb)
1653
-
1654
- def _exit_contexts(self) -> None:
1655
- pass
1656
-
1657
- def _enter_context(self, cm: ta.ContextManager[T]) -> T:
1658
- es = check_not_none(self._exit_stack)
1659
- return es.enter_context(cm)
1660
-
1661
-
1662
- ##
1663
-
1664
-
1665
- @contextlib.contextmanager
1666
- def defer(fn: ta.Callable) -> ta.Generator[ta.Callable, None, None]:
1667
- try:
1668
- yield fn
1669
- finally:
1670
- fn()
1671
-
1672
-
1673
- @contextlib.contextmanager
1674
- def attr_setting(obj, attr, val, *, default=None): # noqa
1675
- not_set = object()
1676
- orig = getattr(obj, attr, not_set)
1677
- try:
1678
- setattr(obj, attr, val)
1679
- if orig is not not_set:
1680
- yield orig
1681
- else:
1682
- yield default
1683
- finally:
1684
- if orig is not_set:
1685
- delattr(obj, attr)
1686
- else:
1687
- setattr(obj, attr, orig)
1688
-
1689
-
1690
- ########################################
1691
- # ../../../../../omlish/lite/io.py
1638
+ # ../../../../../omlish/io/buffers.py
1692
1639
 
1693
1640
 
1694
1641
  class DelimitingBuffer:
@@ -1875,7 +1822,7 @@ class IncrementalWriteBuffer:
1875
1822
  ) -> None:
1876
1823
  super().__init__()
1877
1824
 
1878
- check_non_empty(data)
1825
+ check_not_empty(data)
1879
1826
  self._len = len(data)
1880
1827
  self._write_size = write_size
1881
1828
 
@@ -1890,11 +1837,11 @@ class IncrementalWriteBuffer:
1890
1837
  return self._len - self._pos
1891
1838
 
1892
1839
  def write(self, fn: ta.Callable[[bytes], int]) -> int:
1893
- lst = check_non_empty(self._lst)
1840
+ lst = check_not_empty(self._lst)
1894
1841
 
1895
1842
  t = 0
1896
1843
  for i, d in enumerate(lst): # noqa
1897
- n = fn(check_non_empty(d))
1844
+ n = fn(check_not_empty(d))
1898
1845
  if not n:
1899
1846
  break
1900
1847
  t += n
@@ -1909,6 +1856,64 @@ class IncrementalWriteBuffer:
1909
1856
  return t
1910
1857
 
1911
1858
 
1859
+ ########################################
1860
+ # ../../../../../omlish/lite/contextmanagers.py
1861
+
1862
+
1863
+ ##
1864
+
1865
+
1866
+ class ExitStacked:
1867
+ _exit_stack: ta.Optional[contextlib.ExitStack] = None
1868
+
1869
+ def __enter__(self: ExitStackedT) -> ExitStackedT:
1870
+ check_state(self._exit_stack is None)
1871
+ es = self._exit_stack = contextlib.ExitStack()
1872
+ es.__enter__()
1873
+ return self
1874
+
1875
+ def __exit__(self, exc_type, exc_val, exc_tb):
1876
+ if (es := self._exit_stack) is None:
1877
+ return None
1878
+ self._exit_contexts()
1879
+ return es.__exit__(exc_type, exc_val, exc_tb)
1880
+
1881
+ def _exit_contexts(self) -> None:
1882
+ pass
1883
+
1884
+ def _enter_context(self, cm: ta.ContextManager[T]) -> T:
1885
+ es = check_not_none(self._exit_stack)
1886
+ return es.enter_context(cm)
1887
+
1888
+
1889
+ ##
1890
+
1891
+
1892
+ @contextlib.contextmanager
1893
+ def defer(fn: ta.Callable) -> ta.Generator[ta.Callable, None, None]:
1894
+ try:
1895
+ yield fn
1896
+ finally:
1897
+ fn()
1898
+
1899
+
1900
+ @contextlib.contextmanager
1901
+ def attr_setting(obj, attr, val, *, default=None): # noqa
1902
+ not_set = object()
1903
+ orig = getattr(obj, attr, not_set)
1904
+ try:
1905
+ setattr(obj, attr, val)
1906
+ if orig is not not_set:
1907
+ yield orig
1908
+ else:
1909
+ yield default
1910
+ finally:
1911
+ if orig is not_set:
1912
+ delattr(obj, attr)
1913
+ else:
1914
+ setattr(obj, attr, orig)
1915
+
1916
+
1912
1917
  ########################################
1913
1918
  # ../../../../../omlish/lite/logs.py
1914
1919
  """
@@ -1189,6 +1189,11 @@ def check_non_empty_str(v: ta.Optional[str]) -> str:
1189
1189
  return v
1190
1190
 
1191
1191
 
1192
+ def check_arg(v: bool, msg: str = 'Illegal argument') -> None:
1193
+ if not v:
1194
+ raise ValueError(msg)
1195
+
1196
+
1192
1197
  def check_state(v: bool, msg: str = 'Illegal state') -> None:
1193
1198
  if not v:
1194
1199
  raise ValueError(msg)
@@ -1241,7 +1246,7 @@ def check_empty(v: SizedT) -> SizedT:
1241
1246
  return v
1242
1247
 
1243
1248
 
1244
- def check_non_empty(v: SizedT) -> SizedT:
1249
+ def check_not_empty(v: SizedT) -> SizedT:
1245
1250
  if not len(v):
1246
1251
  raise ValueError(v)
1247
1252
  return v