Skip to content

Commit

Permalink
refactor: don't account for an edge case which will never happen
Browse files Browse the repository at this point in the history
mecaneer23 committed Jun 11, 2024
1 parent ecc9707 commit ad89495
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/keyboard_input_helpers.py
Original file line number Diff line number Diff line change
@@ -24,11 +24,12 @@ def get_executable_args(
"set_str": set_str,
}
"""
if args == "None":
return []
params: list[_T | int | str] = []
for arg in args.split(", "):
if arg.isdigit():
params.append(int(arg))
continue
if arg != "None":
params.append(possible_args.get(arg, arg))
params.append(possible_args.get(arg, arg))
return params

0 comments on commit ad89495

Please sign in to comment.