Skip to content

Commit 6a8d5f6

Browse files
committed
Fixing deprecation msg
1 parent 2c46076 commit 6a8d5f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/pyspark/ml/param/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Param(object):
3737
"""
3838
A param with self-contained documentation.
3939
40-
Note: `expectedType` is deprecated and will be removed in 2.1 Use typeConverter instead,
40+
Note: `expectedType` is deprecated and will be removed in 2.1. Use typeConverter instead,
4141
as a keyword argument.
4242
4343
.. versionadded:: 1.3.0
@@ -51,8 +51,8 @@ def __init__(self, parent, name, doc, expectedType=None, typeConverter=None):
5151
self.doc = str(doc)
5252
self.expectedType = expectedType
5353
if expectedType is not None:
54-
warnings.warn("expectedType is deprecated and will be removed in 2.1.0, " +
55-
"use typeConverter instead, as a keyword argument.")
54+
warnings.warn("expectedType is deprecated and will be removed in 2.1. " +
55+
"Use typeConverter instead, as a keyword argument.")
5656
self.typeConverter = TypeConverters.identity if typeConverter is None else typeConverter
5757

5858
def _copy_new_parent(self, parent):

0 commit comments

Comments
 (0)