Skip to main content

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 is the only instance of NotGiven.
  • NotGiven cannot be instantiated or subclassed.
  • NOT_GIVEN is falsy (bool(NOT_GIVEN) is always False)
  • Pickling/unpickling, copying, and deepcopying NOT_GIVEN all result in the same value.
  • NOT_GIVEN has 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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

notgiven-0.0.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

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

Hashes for notgiven-0.0.4.tar.gz
Algorithm Hash digest
SHA256 25624a6f8ff25e77de21c09760d8dbd15055112983d3b8c4af783ff47e84ab16
MD5 837b00e698b72495449fa5e274b0a4c1
BLAKE2b-256 eee6b40d3607fabced749e3d5db20693125ec2e96ec32500a89cbe74187bdb9c

See more details on using hashes here.

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

Hashes for notgiven-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8f0af6e85611ad68983fc38e6340ada1e1188cfd3987a1f2d1e9c77bd8772a7f
MD5 d814cf27c0049e6f1d04f99d942950d4
BLAKE2b-256 b8c8e6e99e590de47e7f24f347f4d6cd3144cb2273e0763909cac7f89a6bad04

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page