This should be a `TypeError` not an `AssertionError`