diff --git a/src/modlunky2/levels/level_settings.py b/src/modlunky2/levels/level_settings.py index aaaeb15a0..2ef2c0380 100644 --- a/src/modlunky2/levels/level_settings.py +++ b/src/modlunky2/levels/level_settings.py @@ -116,7 +116,7 @@ def clean_value(self): if self.name == "size": # The cast is for pylint, which doesn't recognize the narrowing of isinstance - value = tuple(cast(self.value, str).split()) + value = tuple(cast(str, self.value).split()) if len(value) != 2: raise ValueError("Directive `size` expects 2 values.") elif self.name == "liquid_gravity":