zstdlib 0.0.5__tar.gz → 0.0.6__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 (29) hide show
  1. {zstdlib-0.0.5/zstdlib.egg-info → zstdlib-0.0.6}/PKG-INFO +1 -1
  2. zstdlib-0.0.6/tests/not_set.py +15 -0
  3. {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib/__init__.py +2 -1
  4. zstdlib-0.0.6/zstdlib/not_set.py +12 -0
  5. {zstdlib-0.0.5 → zstdlib-0.0.6/zstdlib.egg-info}/PKG-INFO +1 -1
  6. {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib.egg-info/SOURCES.txt +2 -0
  7. {zstdlib-0.0.5 → zstdlib-0.0.6}/LICENSE +0 -0
  8. {zstdlib-0.0.5 → zstdlib-0.0.6}/README.md +0 -0
  9. {zstdlib-0.0.5 → zstdlib-0.0.6}/pyproject.toml +0 -0
  10. {zstdlib-0.0.5 → zstdlib-0.0.6}/setup.cfg +0 -0
  11. {zstdlib-0.0.5 → zstdlib-0.0.6}/tests/__init__.py +0 -0
  12. {zstdlib-0.0.5 → zstdlib-0.0.6}/tests/log/__init__.py +0 -0
  13. {zstdlib-0.0.5 → zstdlib-0.0.6}/tests/log/base.py +0 -0
  14. {zstdlib-0.0.5 → zstdlib-0.0.6}/tests/log/test_cute.py +0 -0
  15. {zstdlib-0.0.5 → zstdlib-0.0.6}/tests/log/test_trace.py +0 -0
  16. {zstdlib-0.0.5 → zstdlib-0.0.6}/tests/test_ansi.py +0 -0
  17. {zstdlib-0.0.5 → zstdlib-0.0.6}/tests/test_enum.py +0 -0
  18. {zstdlib-0.0.5 → zstdlib-0.0.6}/tests/test_frozen.py +0 -0
  19. {zstdlib-0.0.5 → zstdlib-0.0.6}/tests/test_singleton.py +0 -0
  20. {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib/ansi.py +0 -0
  21. {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib/enum.py +0 -0
  22. {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib/frozen.py +0 -0
  23. {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib/log/__init__.py +0 -0
  24. {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib/log/cute.py +0 -0
  25. {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib/log/trace.py +0 -0
  26. {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib/py.typed +0 -0
  27. {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib/singleton.py +0 -0
  28. {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib.egg-info/dependency_links.txt +0 -0
  29. {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: zstdlib
3
- Version: 0.0.5
3
+ Version: 0.0.6
4
4
  Summary: A set of useful python utilities
5
5
  License: GPLv3
6
6
  Project-URL: Homepage, https://github.com/zwimer/zstdlib
@@ -0,0 +1,15 @@
1
+ import unittest
2
+
3
+ from zstdlib import NotSetType, NotSet
4
+
5
+
6
+ class TestNotSet(unittest.TestCase):
7
+ def test_not_set(self):
8
+ self.assertIsInstance(NotSetType, type)
9
+ self.assertIsInstance(NotSet, NotSetType)
10
+ self.assertIsNot(None, NotSet)
11
+ self.assertIs(NotSet, NotSetType())
12
+
13
+
14
+ if __name__ == "__main__":
15
+ unittest.main()
@@ -1,5 +1,6 @@
1
- __version__ = "0.0.5"
1
+ __version__ = "0.0.6"
2
2
 
3
+ from .not_set import NotSetType, NotSet
3
4
  from .frozen import Freezable, frozen
4
5
  from .singleton import Singleton
5
6
  from .enum import Enum
@@ -0,0 +1,12 @@
1
+ from .singleton import Singleton
2
+
3
+
4
+ class NotSetType(Singleton):
5
+ """
6
+ A type that exists to denote a value has not been set
7
+ This might be useful when None is a valid value for a type
8
+ """
9
+
10
+
11
+ # The sole value for NotSetType
12
+ NotSet = NotSetType()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: zstdlib
3
- Version: 0.0.5
3
+ Version: 0.0.6
4
4
  Summary: A set of useful python utilities
5
5
  License: GPLv3
6
6
  Project-URL: Homepage, https://github.com/zwimer/zstdlib
@@ -2,6 +2,7 @@ LICENSE
2
2
  README.md
3
3
  pyproject.toml
4
4
  tests/__init__.py
5
+ tests/not_set.py
5
6
  tests/test_ansi.py
6
7
  tests/test_enum.py
7
8
  tests/test_frozen.py
@@ -14,6 +15,7 @@ zstdlib/__init__.py
14
15
  zstdlib/ansi.py
15
16
  zstdlib/enum.py
16
17
  zstdlib/frozen.py
18
+ zstdlib/not_set.py
17
19
  zstdlib/py.typed
18
20
  zstdlib/singleton.py
19
21
  zstdlib.egg-info/PKG-INFO
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