File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ disable=
92
92
consider-using-in, # TODO: Consider merging comparisons with "in"
93
93
too-many-public-methods, # TODO: Resolve
94
94
consider-using-ternary, # TODO: Consider ternary expressions
95
- chained-comparison, # TODO: Simplify chained comparison between operands
96
95
too-many-branches, # TODO: Simplify or ignore as appropriate
97
96
missing-docstring, # TODO: Fix missing docstring
98
97
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def is_valid(self, value):
47
47
Returns:
48
48
bool: True if valid, False otherwise.
49
49
"""
50
- return value >= self .min_value and value <= self .max_value
50
+ return self .min_value <= value <= self .max_value
51
51
52
52
@classmethod
53
53
def cast_to_type (cls , value ):
You can’t perform that action at this time.
0 commit comments