This code provide the isconsistent(obj, type_hint)
function. It tries to be
similar to isinstance()
but should work with most PEP 484 type hints.
gisle / typing-consistency Goto Github PK
View Code? Open in Web Editor NEWExperimental add-ons to Python's typing stuff