omdev 0.0.0.dev340__py3-none-any.whl → 0.0.0.dev342__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/scripts/ci.py CHANGED
@@ -693,7 +693,7 @@ class Checks:
693
693
 
694
694
  return inner
695
695
 
696
- def cast(self, v: ta.Any, cls: ta.Type[T], msg: CheckMessage = None) -> T: # noqa
696
+ def cast(self, v: ta.Any, cls: ta.Type[T], msg: CheckMessage = None) -> T:
697
697
  if not isinstance(v, cls):
698
698
  self._raise(
699
699
  TypeError,
@@ -742,7 +742,7 @@ class Checks:
742
742
 
743
743
  return v
744
744
 
745
- def not_issubclass(self, v: ta.Type[T], spec: ta.Any, msg: CheckMessage = None) -> ta.Type[T]: # noqa
745
+ def not_issubclass(self, v: ta.Type[T], spec: ta.Any, msg: CheckMessage = None) -> ta.Type[T]:
746
746
  if issubclass(v, spec):
747
747
  self._raise(
748
748
  TypeError,
@@ -833,21 +833,21 @@ class Checks:
833
833
 
834
834
  return it
835
835
 
836
- def single(self, obj: ta.Iterable[T], message: CheckMessage = None) -> T:
836
+ def single(self, obj: ta.Iterable[T], msg: CheckMessage = None) -> T:
837
837
  try:
838
838
  [value] = obj
839
839
  except ValueError:
840
840
  self._raise(
841
841
  ValueError,
842
842
  'Must be single',
843
- message,
843
+ msg,
844
844
  Checks._ArgsKwargs(obj),
845
845
  render_fmt='%s',
846
846
  )
847
847
 
848
848
  return value
849
849
 
850
- def opt_single(self, obj: ta.Iterable[T], message: CheckMessage = None) -> ta.Optional[T]:
850
+ def opt_single(self, obj: ta.Iterable[T], msg: CheckMessage = None) -> ta.Optional[T]:
851
851
  it = iter(obj)
852
852
  try:
853
853
  value = next(it)
@@ -862,7 +862,7 @@ class Checks:
862
862
  self._raise(
863
863
  ValueError,
864
864
  'Must be empty or single',
865
- message,
865
+ msg,
866
866
  Checks._ArgsKwargs(obj),
867
867
  render_fmt='%s',
868
868
  )
@@ -7810,7 +7810,7 @@ class StandardLogFormatter(logging.Formatter):
7810
7810
  converter = datetime.datetime.fromtimestamp # type: ignore
7811
7811
 
7812
7812
  def formatTime(self, record, datefmt=None):
7813
- ct = self.converter(record.created) # type: ignore
7813
+ ct = self.converter(record.created)
7814
7814
  if datefmt:
7815
7815
  return ct.strftime(datefmt) # noqa
7816
7816
  else:
omdev/scripts/interp.py CHANGED
@@ -728,7 +728,7 @@ class Checks:
728
728
 
729
729
  return inner
730
730
 
731
- def cast(self, v: ta.Any, cls: ta.Type[T], msg: CheckMessage = None) -> T: # noqa
731
+ def cast(self, v: ta.Any, cls: ta.Type[T], msg: CheckMessage = None) -> T:
732
732
  if not isinstance(v, cls):
733
733
  self._raise(
734
734
  TypeError,
@@ -777,7 +777,7 @@ class Checks:
777
777
 
778
778
  return v
779
779
 
780
- def not_issubclass(self, v: ta.Type[T], spec: ta.Any, msg: CheckMessage = None) -> ta.Type[T]: # noqa
780
+ def not_issubclass(self, v: ta.Type[T], spec: ta.Any, msg: CheckMessage = None) -> ta.Type[T]:
781
781
  if issubclass(v, spec):
782
782
  self._raise(
783
783
  TypeError,
@@ -868,21 +868,21 @@ class Checks:
868
868
 
869
869
  return it
870
870
 
871
- def single(self, obj: ta.Iterable[T], message: CheckMessage = None) -> T:
871
+ def single(self, obj: ta.Iterable[T], msg: CheckMessage = None) -> T:
872
872
  try:
873
873
  [value] = obj
874
874
  except ValueError:
875
875
  self._raise(
876
876
  ValueError,
877
877
  'Must be single',
878
- message,
878
+ msg,
879
879
  Checks._ArgsKwargs(obj),
880
880
  render_fmt='%s',
881
881
  )
882
882
 
883
883
  return value
884
884
 
885
- def opt_single(self, obj: ta.Iterable[T], message: CheckMessage = None) -> ta.Optional[T]:
885
+ def opt_single(self, obj: ta.Iterable[T], msg: CheckMessage = None) -> ta.Optional[T]:
886
886
  it = iter(obj)
887
887
  try:
888
888
  value = next(it)
@@ -897,7 +897,7 @@ class Checks:
897
897
  self._raise(
898
898
  ValueError,
899
899
  'Must be empty or single',
900
- message,
900
+ msg,
901
901
  Checks._ArgsKwargs(obj),
902
902
  render_fmt='%s',
903
903
  )
@@ -4063,7 +4063,7 @@ class StandardLogFormatter(logging.Formatter):
4063
4063
  converter = datetime.datetime.fromtimestamp # type: ignore
4064
4064
 
4065
4065
  def formatTime(self, record, datefmt=None):
4066
- ct = self.converter(record.created) # type: ignore
4066
+ ct = self.converter(record.created)
4067
4067
  if datefmt:
4068
4068
  return ct.strftime(datefmt) # noqa
4069
4069
  else:
@@ -2137,7 +2137,7 @@ class Checks:
2137
2137
 
2138
2138
  return inner
2139
2139
 
2140
- def cast(self, v: ta.Any, cls: ta.Type[T], msg: CheckMessage = None) -> T: # noqa
2140
+ def cast(self, v: ta.Any, cls: ta.Type[T], msg: CheckMessage = None) -> T:
2141
2141
  if not isinstance(v, cls):
2142
2142
  self._raise(
2143
2143
  TypeError,
@@ -2186,7 +2186,7 @@ class Checks:
2186
2186
 
2187
2187
  return v
2188
2188
 
2189
- def not_issubclass(self, v: ta.Type[T], spec: ta.Any, msg: CheckMessage = None) -> ta.Type[T]: # noqa
2189
+ def not_issubclass(self, v: ta.Type[T], spec: ta.Any, msg: CheckMessage = None) -> ta.Type[T]:
2190
2190
  if issubclass(v, spec):
2191
2191
  self._raise(
2192
2192
  TypeError,
@@ -2277,21 +2277,21 @@ class Checks:
2277
2277
 
2278
2278
  return it
2279
2279
 
2280
- def single(self, obj: ta.Iterable[T], message: CheckMessage = None) -> T:
2280
+ def single(self, obj: ta.Iterable[T], msg: CheckMessage = None) -> T:
2281
2281
  try:
2282
2282
  [value] = obj
2283
2283
  except ValueError:
2284
2284
  self._raise(
2285
2285
  ValueError,
2286
2286
  'Must be single',
2287
- message,
2287
+ msg,
2288
2288
  Checks._ArgsKwargs(obj),
2289
2289
  render_fmt='%s',
2290
2290
  )
2291
2291
 
2292
2292
  return value
2293
2293
 
2294
- def opt_single(self, obj: ta.Iterable[T], message: CheckMessage = None) -> ta.Optional[T]:
2294
+ def opt_single(self, obj: ta.Iterable[T], msg: CheckMessage = None) -> ta.Optional[T]:
2295
2295
  it = iter(obj)
2296
2296
  try:
2297
2297
  value = next(it)
@@ -2306,7 +2306,7 @@ class Checks:
2306
2306
  self._raise(
2307
2307
  ValueError,
2308
2308
  'Must be empty or single',
2309
- message,
2309
+ msg,
2310
2310
  Checks._ArgsKwargs(obj),
2311
2311
  render_fmt='%s',
2312
2312
  )
@@ -6433,7 +6433,7 @@ class StandardLogFormatter(logging.Formatter):
6433
6433
  converter = datetime.datetime.fromtimestamp # type: ignore
6434
6434
 
6435
6435
  def formatTime(self, record, datefmt=None):
6436
- ct = self.converter(record.created) # type: ignore
6436
+ ct = self.converter(record.created)
6437
6437
  if datefmt:
6438
6438
  return ct.strftime(datefmt) # noqa
6439
6439
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omdev
3
- Version: 0.0.0.dev340
3
+ Version: 0.0.0.dev342
4
4
  Summary: omdev
5
5
  Author: wrmsr
6
6
  License: BSD-3-Clause
@@ -12,7 +12,7 @@ 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: omlish==0.0.0.dev340
15
+ Requires-Dist: omlish==0.0.0.dev342
16
16
  Provides-Extra: all
17
17
  Requires-Dist: black~=25.1; extra == "all"
18
18
  Requires-Dist: pycparser~=2.22; extra == "all"
@@ -252,9 +252,9 @@ omdev/pyproject/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
252
252
  omdev/pyproject/resources/docker-dev.sh,sha256=DHkz5D18jok_oDolfg2mqrvGRWFoCe9GQo04dR1czcc,838
253
253
  omdev/pyproject/resources/python.sh,sha256=rFaN4SiJ9hdLDXXsDTwugI6zsw6EPkgYMmtacZeTbvw,749
254
254
  omdev/scripts/__init__.py,sha256=MKCvUAEQwsIvwLixwtPlpBqmkMXLCnjjXyAXvVpDwVk,91
255
- omdev/scripts/ci.py,sha256=UMyGSv7_16YaG-rrrqnMU2bLJg-Vp74WriB_vmtfW6U,357069
256
- omdev/scripts/interp.py,sha256=eI43dKT99L0LniXC6PDYou2Y5fOU-lrVyElVvPYu92s,155600
257
- omdev/scripts/pyproject.py,sha256=7vcQBcXd64vnAiVdC9wQ-4z1jGf-un7xyKrt-K_tVwA,265081
255
+ omdev/scripts/ci.py,sha256=KQbvQHDsBzlkJqWOnQpYFHO9XH15awAvh7PCUmTeETk,357021
256
+ omdev/scripts/interp.py,sha256=UpdEz2woJ_tRMkeiIpbUjq6bEuYTpXT9BbGhqADolAc,155552
257
+ omdev/scripts/pyproject.py,sha256=0vXje5VP-k1EmScW9GzIZDTLB9akpI9C_u61FEAXzao,265033
258
258
  omdev/scripts/slowcat.py,sha256=lssv4yrgJHiWfOiHkUut2p8E8Tq32zB-ujXESQxFFHY,2728
259
259
  omdev/scripts/tmpexec.py,sha256=WTYcf56Tj2qjYV14AWmV8SfT0u6Y8eIU6cKgQRvEK3c,1442
260
260
  omdev/tokens/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -296,9 +296,9 @@ omdev/tools/json/rendering.py,sha256=3HhdlKSetS6iK1tjF2aILzsl8Mb3D8wW92vYwGpRdVA
296
296
  omdev/tools/pawk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
297
297
  omdev/tools/pawk/__main__.py,sha256=VCqeRVnqT1RPEoIrqHFSu4PXVMg4YEgF4qCQm90-eRI,66
298
298
  omdev/tools/pawk/pawk.py,sha256=zsEkfQX0jF5bn712uqPAyBSdJt2dno1LH2oeSMNfXQI,11424
299
- omdev-0.0.0.dev340.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
300
- omdev-0.0.0.dev340.dist-info/METADATA,sha256=HscWULxiQXY0o6G8slZ8P87tijBLhzZ7aRdpcbnQIu4,1674
301
- omdev-0.0.0.dev340.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
302
- omdev-0.0.0.dev340.dist-info/entry_points.txt,sha256=dHLXFmq5D9B8qUyhRtFqTGWGxlbx3t5ejedjrnXNYLU,33
303
- omdev-0.0.0.dev340.dist-info/top_level.txt,sha256=1nr7j30fEWgLYHW3lGR9pkdHkb7knv1U1ES1XRNVQ6k,6
304
- omdev-0.0.0.dev340.dist-info/RECORD,,
299
+ omdev-0.0.0.dev342.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
300
+ omdev-0.0.0.dev342.dist-info/METADATA,sha256=i7z2pKC25ohTG1gQqf6WYOW0Arp3nksBtUFYIARcAeg,1674
301
+ omdev-0.0.0.dev342.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
302
+ omdev-0.0.0.dev342.dist-info/entry_points.txt,sha256=dHLXFmq5D9B8qUyhRtFqTGWGxlbx3t5ejedjrnXNYLU,33
303
+ omdev-0.0.0.dev342.dist-info/top_level.txt,sha256=1nr7j30fEWgLYHW3lGR9pkdHkb7knv1U1ES1XRNVQ6k,6
304
+ omdev-0.0.0.dev342.dist-info/RECORD,,