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.
- {zstdlib-0.0.5/zstdlib.egg-info → zstdlib-0.0.6}/PKG-INFO +1 -1
- zstdlib-0.0.6/tests/not_set.py +15 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib/__init__.py +2 -1
- zstdlib-0.0.6/zstdlib/not_set.py +12 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6/zstdlib.egg-info}/PKG-INFO +1 -1
- {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib.egg-info/SOURCES.txt +2 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/LICENSE +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/README.md +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/pyproject.toml +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/setup.cfg +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/tests/__init__.py +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/tests/log/__init__.py +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/tests/log/base.py +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/tests/log/test_cute.py +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/tests/log/test_trace.py +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/tests/test_ansi.py +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/tests/test_enum.py +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/tests/test_frozen.py +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/tests/test_singleton.py +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib/ansi.py +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib/enum.py +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib/frozen.py +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib/log/__init__.py +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib/log/cute.py +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib/log/trace.py +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib/py.typed +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib/singleton.py +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib.egg-info/dependency_links.txt +0 -0
- {zstdlib-0.0.5 → zstdlib-0.0.6}/zstdlib.egg-info/top_level.txt +0 -0
|
@@ -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()
|
|
@@ -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()
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|