We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68b5628 commit c77277eCopy full SHA for c77277e
src/tmuxp/cli/freeze.py
@@ -171,12 +171,14 @@ def extract_workspace_format(
171
172
workspace_format = extract_workspace_format(dest)
173
if not is_valid_ext(workspace_format):
174
- workspace_format = prompt_choices(
+ _workspace_format = prompt_choices(
175
"Couldn't ascertain one of [%s] from file name. Convert to"
176
% ", ".join(valid_workspace_formats),
177
- choices=valid_workspace_formats,
+ choices=t.cast(t.List[str], valid_workspace_formats),
178
default="yaml",
179
)
180
+ assert is_valid_ext(_workspace_format)
181
+ workspace_format = _workspace_format
182
183
if workspace_format == "yaml":
184
workspace = configparser.dump(
0 commit comments