Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
Correct return type of Params.hasParam (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
zero323 authored Jan 11, 2020
1 parent 606464c commit 52de6cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions third_party/3/pyspark/ml/param/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ class Params(pyspark.ml.util.Identifiable):
@overload
def isSet(self, param: str) -> bool: ...
@overload
def isSet(self, param: Param) -> bool: ...
def isSet(self, param: Param[Any]) -> bool: ...
@overload
def hasDefault(self, param: str) -> bool: ...
@overload
def hasDefault(self, param: Param) -> bool: ...
def hasDefault(self, param: Param[Any]) -> bool: ...
@overload
def isDefined(self, param: str) -> bool: ...
@overload
def isDefined(self, param: Param) -> bool: ...
def hasParam(self, paramName: str) -> Param: ...
def isDefined(self, param: Param[Any]) -> bool: ...
def hasParam(self, paramName: str) -> bool: ...
@overload
def getOrDefault(self, param: str) -> Any: ...
@overload
Expand Down

0 comments on commit 52de6cc

Please sign in to comment.