Skip to main content

Typing extensions extensions

Project description

teext – typing extensions extensions

Package which provides useful types.

Documentation

Examples

Value-constraint types without runtime overhead

These types are most useful in conjunction with static type checkers like mypy.

import teext as tx

def f(x: tx.PositiveInt) -> None:
    print(x)

a = 5
assert tx.is_positive_int(a)
f(a)  # OK
f(7)  # works at runtime but mypy gives error

assert tx.is_positive_int(-3)  # AssertionError

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

teext-0.1.9.tar.gz (7.8 kB view details)

Uploaded Source

Built Distributions

teext-0.1.9-py3-none-any.whl (86.3 kB view details)

Uploaded Python 3

teext-0.1.9-cp310-cp310-manylinux_2_35_x86_64.whl (86.3 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.35+ x86-64

File details

Details for the file teext-0.1.9.tar.gz.

File metadata

  • Download URL: teext-0.1.9.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.0

File hashes

Hashes for teext-0.1.9.tar.gz
Algorithm Hash digest
SHA256 743b3be4d593ab208e1a9f0a50b916f87785d2e43cfd5df784e2b4f0501c8946
MD5 83b882bdd23496ca9b00c545fcae31cb
BLAKE2b-256 7c29f37f455436cbf4475effa7d790a0f70cdb699649bd0636562f586ce054d3

See more details on using hashes here.

File details

Details for the file teext-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: teext-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 86.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.0

File hashes

Hashes for teext-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e4dfc4f7d2c85b7589bb803e22961be047e62ee1291eee7978d4c4dcbcadc11e
MD5 35bd6c2d93cc34c421d5ea23e4931972
BLAKE2b-256 7e8527f2d79e166a8c96e81c1459013839bc5ccfc15ae92086845f02df16ed12

See more details on using hashes here.

File details

Details for the file teext-0.1.9-cp310-cp310-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for teext-0.1.9-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 43ea723262adce78bbc52ae766b1c9eeab6b53cc69e7a149131cdd9b61dcaace
MD5 02665e5bda0e93037e04717f3db098f6
BLAKE2b-256 ec8fd06bf56745374dec7a503d099d1a88935d4b373de499f7225a5c850264fa

See more details on using hashes here.

Supported by

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