ominfra 0.0.0.dev122__py3-none-any.whl → 0.0.0.dev123__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.
@@ -138,7 +138,7 @@ def cached_nullary(fn): # ta.Callable[..., T]) -> ta.Callable[..., T]:
138
138
  # ../../../../omlish/lite/check.py
139
139
 
140
140
 
141
- def check_isinstance(v: T, spec: ta.Union[ta.Type[T], tuple]) -> T:
141
+ def check_isinstance(v: ta.Any, spec: ta.Union[ta.Type[T], tuple]) -> T:
142
142
  if not isinstance(v, spec):
143
143
  raise TypeError(v)
144
144
  return v
@@ -74,5 +74,5 @@ class JournalctlMessageBuilder:
74
74
  def feed(self, data: bytes) -> ta.Sequence[JournalctlMessage]:
75
75
  ret: ta.List[JournalctlMessage] = []
76
76
  for line in self._buf.feed(data):
77
- ret.append(self._make_message(check_isinstance(line, bytes))) # type: ignore
77
+ ret.append(self._make_message(check_isinstance(line, bytes)))
78
78
  return ret
@@ -221,7 +221,7 @@ def cached_nullary(fn): # ta.Callable[..., T]) -> ta.Callable[..., T]:
221
221
  # ../../../omlish/lite/check.py
222
222
 
223
223
 
224
- def check_isinstance(v: T, spec: ta.Union[ta.Type[T], tuple]) -> T:
224
+ def check_isinstance(v: ta.Any, spec: ta.Union[ta.Type[T], tuple]) -> T:
225
225
  if not isinstance(v, spec):
226
226
  raise TypeError(v)
227
227
  return v
@@ -917,7 +917,7 @@ def cached_nullary(fn): # ta.Callable[..., T]) -> ta.Callable[..., T]:
917
917
  # ../../../../../omlish/lite/check.py
918
918
 
919
919
 
920
- def check_isinstance(v: T, spec: ta.Union[ta.Type[T], tuple]) -> T:
920
+ def check_isinstance(v: ta.Any, spec: ta.Union[ta.Type[T], tuple]) -> T:
921
921
  if not isinstance(v, spec):
922
922
  raise TypeError(v)
923
923
  return v
@@ -2704,7 +2704,7 @@ class JournalctlMessageBuilder:
2704
2704
  def feed(self, data: bytes) -> ta.Sequence[JournalctlMessage]:
2705
2705
  ret: ta.List[JournalctlMessage] = []
2706
2706
  for line in self._buf.feed(data):
2707
- ret.append(self._make_message(check_isinstance(line, bytes))) # type: ignore
2707
+ ret.append(self._make_message(check_isinstance(line, bytes)))
2708
2708
  return ret
2709
2709
 
2710
2710