You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the suggestion @mejedi . It certainly looks like a useful use-case. I'm trying to think of a good way to represent this check (as opposed to the instance chek) in the signature, any ideas?
It also might be possible to cover this use-case if #5 is implemented, so you could do arbitrary checks, eg:
The library is already capable of expressing complex assertions in function signatures, I mean Nullable and Union. Extending this with a Class is probably not too ugly.
A little feature request here: it would be great if it was possible to validate a class passed via function parameter using issubclass().
The text was updated successfully, but these errors were encountered: