eschcam commented on code in PR #51687:
URL: https://github.com/apache/spark/pull/51687#discussion_r2243172804
##########
python/pyspark/ml/linalg/__init__.py:
##########
@@ -433,7 +433,7 @@ def squared_distance(self, other: Iterable[float]) ->
np.float64:
if isinstance(other, SparseVector):
return other.squared_distance(self)
elif _have_scipy and scipy.sparse.issparse(other):
- return _convert_to_vector(other).squared_distance(self) # type:
ignore[attr-defined]
+ return _convert_to_vector(other).squared_distance(self) # type:
ignore
Review Comment:
This is due to both attr-defined and arg-type needing to be ignored
--
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]