Maybe raise a `TypeError` instead?