ueshin commented on a change in pull request #33581:
URL: https://github.com/apache/spark/pull/33581#discussion_r681160066
##########
File path: python/pyspark/pandas/data_type_ops/base.py
##########
@@ -188,6 +188,12 @@ def _as_other_type(
return index_ops._with_new_scol(scol, field=InternalField(dtype=dtype))
+def _sanitize_list_like(operand: Any) -> None:
Review comment:
Python's type annotations are just a hint for users, but they can still
pass any objects, unlike Scala/Java.
I think type checking and showing a proper message are our responsibility.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]