Skip to content

Commit

Permalink
Address style failures
Browse files Browse the repository at this point in the history
  • Loading branch information
zero323 committed Sep 1, 2020
1 parent 0bc7183 commit df12013
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion python/pyspark/ml/tests/test_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@

from pyspark.ml.linalg import DenseVector, Vectors
from pyspark.ml.regression import LinearRegression
from pyspark.ml.wrapper import _java2py, _py2java, JavaParams, JavaWrapper # type: ignore[attr-defined]
from pyspark.ml.wrapper import ( # type: ignore[attr-defined]
_java2py, _py2java, JavaParams, JavaWrapper
)
from pyspark.testing.mllibutils import MLlibTestCase
from pyspark.testing.mlutils import SparkSessionTestCase
from pyspark.testing.utils import eventually
Expand Down
3 changes: 2 additions & 1 deletion python/pyspark/testing/mlutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def _transform(self, dataset):

class MockUnaryTransformer(UnaryTransformer, DefaultParamsReadable, DefaultParamsWritable):

shift = Param(Params._dummy(), "shift", "The amount by which to shift " + # type: ignore[attr-defined]
shift = Param(Params._dummy(), # type: ignore[attr-defined]
"shift", "The amount by which to shift " +
"data in a DataFrame",
typeConverter=TypeConverters.toFloat)

Expand Down

0 comments on commit df12013

Please sign in to comment.