From a936e033bc640ce5862e84a3952b62570f81cac1 Mon Sep 17 00:00:00 2001 From: zero323 Date: Mon, 31 Aug 2020 18:56:58 +0200 Subject: [PATCH] Type ignore Params._dummy --- python/pyspark/testing/mlutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pyspark/testing/mlutils.py b/python/pyspark/testing/mlutils.py index c529173ace60b..69a898ac2cf5d 100644 --- a/python/pyspark/testing/mlutils.py +++ b/python/pyspark/testing/mlutils.py @@ -116,7 +116,7 @@ def _transform(self, dataset): class MockUnaryTransformer(UnaryTransformer, DefaultParamsReadable, DefaultParamsWritable): - shift = Param(Params._dummy(), "shift", "The amount by which to shift " + + shift = Param(Params._dummy(), "shift", "The amount by which to shift " + # type: ignore[attr-defined] "data in a DataFrame", typeConverter=TypeConverters.toFloat)