Skip to content

Commit

Permalink
fix usage of __new__ for SpecialRange compatibility fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
nbrochu committed Nov 26, 2023
1 parent 65f47be commit da168b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ def __new__(cls, value: int) -> SpecialRange:
"Consider switching to NamedRange, which supports all use-cases of SpecialRange, and more. In "
"NamedRange, range_start specifies the lower end of the regular range, while special values can be "
"placed anywhere (below, inside, or above the regular range).")
return super().__new__(cls, value)
return super().__new__(cls)

@classmethod
def weighted_range(cls, text) -> Range:
Expand Down

0 comments on commit da168b5

Please sign in to comment.