Defines NotGiven and NOT_GIVEN
Project description
NotGiven and NOT_GIVEN
pip install notgiven
from notgiven import (
NotGiven,
NOT_GIVEN,
is_given,
is_not_given,
is_given_guard, # Only useful in 3.13+
is_not_given_guard, # Only useful in 3.13+
)
The details
NOT_GIVEN, the only instance ofNotGiven, is a constant, markedFinal.NOT_GIVENis falsy (bool(NOT_GIVEN)is always False)- Cannot instantiate or subclass
NotGiven - Pickling/unpickling, copying, and deepcopying
NOT_GIVENall result in the same value. NOT_GIVENhas no slots, so attributes may not be set on it.NOT_GIVEN's string representation is"NOT_GIVEN"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
notgiven-0.0.3.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file notgiven-0.0.3.tar.gz.
File metadata
- Download URL: notgiven-0.0.3.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
601b3225b7b751ab4b41f383e45cbb5c3ea23384941d1b1825c6b9bba71327f2
|
|
| MD5 |
b9716780136603a0313d502498ec59ae
|
|
| BLAKE2b-256 |
102029551de98e245d4e247ab9e61d391ea9f807c8376127506c308726696fa9
|
File details
Details for the file notgiven-0.0.3-py3-none-any.whl.
File metadata
- Download URL: notgiven-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6084096c7622c4ffbee5a263ed829eadcbcd06cfa7ec1f0fe4df5fcbe3b61ba0
|
|
| MD5 |
59a3874e178888a1c35873e93c72c331
|
|
| BLAKE2b-256 |
686796ae2eb1de939319b3651e6fbb3a08c46a7181d2b0a7bc5a4f5f62f52e34
|