From 20a3403be426bb808a19dff3a00d23c03e986952 Mon Sep 17 00:00:00 2001 From: Mauve Date: Tue, 3 Oct 2023 19:58:17 -0400 Subject: [PATCH] Fix order of cast() arguments --- src/modlunky2/levels/level_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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":