Skip to content

Commit

Permalink
Fix order of cast() arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
mauvealerts committed Oct 3, 2023
1 parent 70bcb76 commit 20a3403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modlunky2/levels/level_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 20a3403

Please sign in to comment.