NotGiven and NOT_GIVEN for Python
pip install notgiven
Sentinel singleton to distinguish between omitted arguments and those explicitly set to None.
NOT_GIVENis the only instance ofNotGiven.NotGivencannot be instantiated or subclassed.NOT_GIVENis falsy (bool(NOT_GIVEN)is always False)- 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"- Thread-safe in all situations.
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+
)
Metadata
Release files for notgiven 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| notgiven-0.0.5.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| notgiven-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.4 kB
Release files / notgiven-0.0.5.tar.gz
| Download URL | notgiven-0.0.5.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1206e5c2357a87ddde05a006adde5bb3d3bc09d11d906bcd21fa3327cc6f3774
|
|
BLAKE2b-256 checksum How to use checksums |
c87ba0427b6721aee7e936c4f5d2472382887fce8f520a313251f3e306109405
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / notgiven-0.0.5-py3-none-any.whl
| Download URL | notgiven-0.0.5-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d0fd55e25281966d175319e989d4e60dc3a31040be30ff9ca101e488bee410d
|
|
BLAKE2b-256 checksum How to use checksums |
723e13fc35dc8c8a6e17eb8ba888aa9423447d06f9c106d222b4fd0713ffe5c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|