Micro library that 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,
is_not_given_guard,
)
The details
NOT_GIVENis the only instance ofNotGivenNOT_GIVENis falsy (if NOT_GIVENalways returns False)- Pickling/unpickling, copying, and deepcopying
NOT_GIVENall return the same value. NOT_GIVEN's string representation is"NOT_GIVEN"NOT_GIVENhas no slots, so attributes may not be set on it.- Cannot instantiate
NotGiven - Cannot subclass
NotGiven
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.2.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.2.tar.gz.
File metadata
- Download URL: notgiven-0.0.2.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 |
2a08647921834aff20b32a1e281f0c86f81bf66e71a3a24660dd28c163c1a4b2
|
|
| MD5 |
fceae3932fcbc8af10b44d1a2a2d11b2
|
|
| BLAKE2b-256 |
bd5fb8c8062fc10ed52b0b2c6e69c823829166a24d288669e88155dc8921a242
|
File details
Details for the file notgiven-0.0.2-py3-none-any.whl.
File metadata
- Download URL: notgiven-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.1 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 |
1a40338d277fb84a3385f3b10fe1315ddcbff05bcadbafd0c4ec78edcf3c91a3
|
|
| MD5 |
972947ac176bc668caa7a35c21241f06
|
|
| BLAKE2b-256 |
e901dc9c28956fdbfaad543abe4baa49a6df42536417219213b97256fd3f1fe2
|