zstdlib 0.10.0__tar.gz → 0.10.1__tar.gz

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.
Files changed (38) hide show
  1. {zstdlib-0.10.0 → zstdlib-0.10.1}/PKG-INFO +1 -1
  2. {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/test_exc_capture.py +4 -0
  3. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/__init__.py +1 -1
  4. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/exc_capture.py +4 -2
  5. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib.egg-info/PKG-INFO +1 -1
  6. {zstdlib-0.10.0 → zstdlib-0.10.1}/LICENSE +0 -0
  7. {zstdlib-0.10.0 → zstdlib-0.10.1}/README.md +0 -0
  8. {zstdlib-0.10.0 → zstdlib-0.10.1}/pyproject.toml +0 -0
  9. {zstdlib-0.10.0 → zstdlib-0.10.1}/setup.cfg +0 -0
  10. {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/__init__.py +0 -0
  11. {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/log/__init__.py +0 -0
  12. {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/log/base.py +0 -0
  13. {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/log/test_cute.py +0 -0
  14. {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/log/test_trace.py +0 -0
  15. {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/test_ansi.py +0 -0
  16. {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/test_enum.py +0 -0
  17. {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/test_frozen.py +0 -0
  18. {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/test_io.py +0 -0
  19. {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/test_lazy.py +0 -0
  20. {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/test_not_set.py +0 -0
  21. {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/test_singleton.py +0 -0
  22. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/ansi.py +0 -0
  23. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/enum.py +0 -0
  24. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/frozen.py +0 -0
  25. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/io.py +0 -0
  26. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/lazy.py +0 -0
  27. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/log/__init__.py +0 -0
  28. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/log/cute.py +0 -0
  29. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/log/trace.py +0 -0
  30. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/macos.py +0 -0
  31. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/not_set.py +0 -0
  32. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/py.typed +0 -0
  33. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/signal_cm.py +0 -0
  34. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/singleton.py +0 -0
  35. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib.egg-info/SOURCES.txt +0 -0
  36. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib.egg-info/dependency_links.txt +0 -0
  37. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib.egg-info/requires.txt +0 -0
  38. {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zstdlib
3
- Version: 0.10.0
3
+ Version: 0.10.1
4
4
  Summary: A set of useful python utilities
5
5
  License: GPLv3
6
6
  Project-URL: Homepage, https://github.com/zwimer/zstdlib
@@ -64,6 +64,10 @@ class TestLazy(unittest.TestCase):
64
64
  with capture():
65
65
  raise RuntimeError()
66
66
  raise ValueError()
67
+ # msg
68
+ _ = ExcDelay("")
69
+ with self.assertRaises(TypeError):
70
+ ExcDelay(RuntimeError) # type: ignore[arg-type]
67
71
 
68
72
 
69
73
  if __name__ == "__main__":
@@ -1,4 +1,4 @@
1
- __version__ = "0.10.0"
1
+ __version__ = "0.10.1"
2
2
 
3
3
  from .exc_capture import ExcCapture, ExcDelay
4
4
  from .not_set import NotSetType, NotSet
@@ -52,11 +52,13 @@ class ExcDelay(ExcCapture):
52
52
  ) -> None:
53
53
  """
54
54
  Args:
55
- exc_t: The exception type the capture function should capture, if None it must be passed to the capture function directly
56
55
  msg: The exception group message
56
+ exc_t: The exception type the capture function should capture, if None it must be passed to the capture function directly
57
57
  """
58
+ if not isinstance(msg, str):
59
+ raise TypeError(f"Invalid message type: {type(msg)}")
60
+ self._msg: str = msg
58
61
  super().__init__(exc_t)
59
- self._msg = msg
60
62
 
61
63
  def __enter__(self) -> CaptureFType:
62
64
  """Return the capture function to use"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zstdlib
3
- Version: 0.10.0
3
+ Version: 0.10.1
4
4
  Summary: A set of useful python utilities
5
5
  License: GPLv3
6
6
  Project-URL: Homepage, https://github.com/zwimer/zstdlib
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes