Fix usage of `__new__` for `SpecialRange` compatibility fallback ()

This commit is contained in:
Nicholas Brochu 2024-03-05 10:46:09 -05:00 committed by GitHub
parent 26ee9fe05c
commit bcbb06d78d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -728,7 +728,7 @@ class SpecialRange(NamedRange):
"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: