hashberg-io / typing-validation

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

Introduce support for `TypedDict` classes #3

Closed sg495 closed 10 months ago

sg495 commented 10 months ago

Enhancement

Introduce support for validation against TypedDict classes.

Bug

Currently, can_validate returns True when called on TypedDict classes, but validate raises an unexpected error (isinstance checks are not supported for TypedDict classes).