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_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"
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.4.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.4.tar.gz.
File metadata
- Download URL: notgiven-0.0.4.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 |
25624a6f8ff25e77de21c09760d8dbd15055112983d3b8c4af783ff47e84ab16
|
|
| MD5 |
837b00e698b72495449fa5e274b0a4c1
|
|
| BLAKE2b-256 |
eee6b40d3607fabced749e3d5db20693125ec2e96ec32500a89cbe74187bdb9c
|
File details
Details for the file notgiven-0.0.4-py3-none-any.whl.
File metadata
- Download URL: notgiven-0.0.4-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 |
8f0af6e85611ad68983fc38e6340ada1e1188cfd3987a1f2d1e9c77bd8772a7f
|
|
| MD5 |
d814cf27c0049e6f1d04f99d942950d4
|
|
| BLAKE2b-256 |
b8c8e6e99e590de47e7f24f347f4d6cd3144cb2273e0763909cac7f89a6bad04
|