Failure of can_validate
on non-generic _SpecialGenericAlias
objects.
#5
Labels
bug
Something isn't working
can_validate
on non-generic _SpecialGenericAlias
objects.
#5
The
can_validate
function fails when called on_SpecialGenericAlias
objects without a generic type specified.The issue is in the
_recorded_type
and_repr
methods ofTypeInspector
:The condition
isinstance(param, type)
should be replaced withnot isinstance(param, tuple)
.The text was updated successfully, but these errors were encountered: