Skip to content

Commit 7c50301

Browse files
committed
change: enable chained-comparison Pylint check
1 parent 1badf76 commit 7c50301

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.pylintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ disable=
9292
consider-using-in, # TODO: Consider merging comparisons with "in"
9393
too-many-public-methods, # TODO: Resolve
9494
consider-using-ternary, # TODO: Consider ternary expressions
95-
chained-comparison, # TODO: Simplify chained comparison between operands
9695
too-many-branches, # TODO: Simplify or ignore as appropriate
9796
missing-docstring, # TODO: Fix missing docstring
9897

src/sagemaker/parameter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def is_valid(self, value):
4747
Returns:
4848
bool: True if valid, False otherwise.
4949
"""
50-
return value >= self.min_value and value <= self.max_value
50+
return self.min_value <= value <= self.max_value
5151

5252
@classmethod
5353
def cast_to_type(cls, value):

0 commit comments

Comments
 (0)