assert_instance_of
and assert_subclass_of
, used in validate
, could be improved
#26
Labels
assert_instance_of
and assert_subclass_of
, used in validate
, could be improved
#26
isinstance
andissubclass
methods allow the second argument to be a tuple containing various classes to be tested. We could rely on that rather than doing all tests manually in case of a sequence/iterable.Also it would be good to release the constraint that the
instance_of
orsubclass_of
argument ofvalidate
should be a set only.The text was updated successfully, but these errors were encountered: