Sorry for not noticing earlier: I think we better raise `TypeError` in such a case.