mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Fix usage of __new__
for SpecialRange
compatibility fallback (#2513)
This commit is contained in:
@@ -728,7 +728,7 @@ class SpecialRange(NamedRange):
|
|||||||
"Consider switching to NamedRange, which supports all use-cases of SpecialRange, and more. In "
|
"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 "
|
"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).")
|
"placed anywhere (below, inside, or above the regular range).")
|
||||||
return super().__new__(cls, value)
|
return super().__new__(cls)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def weighted_range(cls, text) -> Range:
|
def weighted_range(cls, text) -> Range:
|
||||||
|
Reference in New Issue
Block a user