diff --git a/.pylintrc b/.pylintrc index 64f6303541..5e319a7564 100644 --- a/.pylintrc +++ b/.pylintrc @@ -90,7 +90,6 @@ disable= cyclic-import, # TODO: Resolve cyclic imports no-self-use, # TODO: Convert methods to functions where appropriate consider-using-ternary, # TODO: Consider ternary expressions - chained-comparison, # TODO: Simplify chained comparison between operands too-many-branches, # TODO: Simplify or ignore as appropriate missing-docstring, # TODO: Fix missing docstring diff --git a/src/sagemaker/parameter.py b/src/sagemaker/parameter.py index 16372d80d4..152455c107 100644 --- a/src/sagemaker/parameter.py +++ b/src/sagemaker/parameter.py @@ -47,7 +47,7 @@ def is_valid(self, value): Returns: bool: True if valid, False otherwise. """ - return value >= self.min_value and value <= self.max_value + return self.min_value <= value <= self.max_value @classmethod def cast_to_type(cls, value):