Skip to content

Commit c77277e

Browse files
committed
chore(mypy): Add typings for cli/freeze
1 parent 68b5628 commit c77277e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tmuxp/cli/freeze.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,14 @@ def extract_workspace_format(
171171

172172
workspace_format = extract_workspace_format(dest)
173173
if not is_valid_ext(workspace_format):
174-
workspace_format = prompt_choices(
174+
_workspace_format = prompt_choices(
175175
"Couldn't ascertain one of [%s] from file name. Convert to"
176176
% ", ".join(valid_workspace_formats),
177-
choices=valid_workspace_formats,
177+
choices=t.cast(t.List[str], valid_workspace_formats),
178178
default="yaml",
179179
)
180+
assert is_valid_ext(_workspace_format)
181+
workspace_format = _workspace_format
180182

181183
if workspace_format == "yaml":
182184
workspace = configparser.dump(

0 commit comments

Comments
 (0)