Metadata-Version: 2.1
Name: teext
Version: 0.1.7
Summary: Typing extensions extensions
Project-URL: Homepage, https://github.com/wearepal/teext
Author-email: Thomas MK <tmke@posteo.net>
License-File: LICENSE
Keywords: python,typing
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Typing :: Typed
Requires-Python: >=3.8
Requires-Dist: typing-extensions>=4.4.0
Description-Content-Type: text/markdown

# teext – typing extensions extensions

Package which provides useful types.

### [Documentation](https://wearepal.github.io/teext/)

## Examples

### Value-constraint types without runtime overhead

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

```python
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
```
