Skip to main content

Python undefined type.

Installation

You can install from pypi

pip install -U python-undefined

Usage

from undefined import undefined, is_undefined, Undefined

x: int | Undefined = 1
if is_undefined(x):
    ...
else:
    # then x is narrowed to int
    ...

Metadata

Release files for python-undefined 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-undefined 0.0.4
File Size Uploaded
python_undefined-0.0.4.tar.gz 2.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-undefined 0.0.4
File Interpreter ABI Platform
python_undefined-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 5.4 kB

Release files / python_undefined-0.0.4.tar.gz

Download URL python_undefined-0.0.4.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ed0939e5ee78eb2a498bb0eeb9a9b42fe4239c9eb98af0c42ee6e25b5f55e373
BLAKE2b-256 checksum
How to use checksums
4dfe35b07b94ff4bb7a4eccd5bbc7d03a3ae9f70e5b42d74ea758f1a0b3b8b84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.5 Darwin/25.0.0

Release files / python_undefined-0.0.4-py3-none-any.whl

Download URL python_undefined-0.0.4-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
693524ef1ba8c41d80bafbf5ec7174bbaaec37586c44b1cd40923e4b6ba1d339
BLAKE2b-256 checksum
How to use checksums
cc2937ace4b13ba658e34a7852cc34ae1e69a060d081ab07394e81a93ed767cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.5 Darwin/25.0.0

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page