From bcbb06d78d36efcef268e6a460bcf88423a347e7 Mon Sep 17 00:00:00 2001 From: Nicholas Brochu Date: Tue, 5 Mar 2024 10:46:09 -0500 Subject: [PATCH] Fix usage of `__new__` for `SpecialRange` compatibility fallback (#2513) --- Options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Options.py b/Options.py index 139dc0a0..ff8ad11c 100644 --- a/Options.py +++ b/Options.py @@ -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: