hashberg-io / typing-validation

A simple library for runtime type-checking.
https://typing-validation.readthedocs.io/
MIT License
7 stars 4 forks source link

Cannot validate union types in 3.10+ style #9

Closed sg495 closed 10 months ago

sg495 commented 10 months ago
# Python 3.10+
>>> from typing_validation import *
>>> can_validate(int|str)
The following type cannot be validated against:
UnsupportedType[
    int | str
]