zero323 commented on a change in pull request #35124:
URL: https://github.com/apache/spark/pull/35124#discussion_r809179435
##########
File path: python/pyspark/ml/classification.py
##########
@@ -149,23 +152,23 @@ class ClassificationModel(PredictionModel,
_ClassifierParams, metaclass=ABCMeta)
"""
@since("3.0.0")
- def setRawPredictionCol(self, value):
+ def setRawPredictionCol(self, value: str) -> "P":
"""
Sets the value of :py:attr:`rawPredictionCol`.
"""
return self._set(rawPredictionCol=value)
@abstractproperty
Review comment:
Properties, if followed by another decorator, have to be ignored, i.e.
```python
@abstractproperty # type: ignore[misc]
@since("3.0.0")
```
--
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]