!squash wip · tmux-python/tmuxp@ea9a61f · GitHub
Skip to content

Commit ea9a61f

Browse files
committed
!squash wip
1 parent a0ec014 commit ea9a61f

3 files changed

Lines changed: 11 additions & 14 deletions

File tree

‎src/tmuxp/_internal/types.py‎

Lines changed: 4 additions & 1 deletion

‎src/tmuxp/cli/import_config.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def create_import_subparser(
134134
class ImportConfigFn(t.Protocol):
135135
"""Typing for import configuration callback function."""
136136

137-
def __call__(self, workspace_dict: dict[str, t.Any]) -> dict[str, t.Any]:
137+
def __call__(self, workspace_dict: dict[str, t.Any]) -> WorkspaceConfig:
138138
"""Execute tmuxp import function."""
139139
...
140140

@@ -146,7 +146,9 @@ def import_config(
146146
) -> None:
147147
"""Import a configuration from a workspace_file."""
148148
existing_workspace_file = ConfigReader._from_file(pathlib.Path(workspace_file))
149-
cfg_reader = ConfigReader(importfunc(existing_workspace_file))
149+
cfg_reader = ConfigReader(
150+
t.cast(dict[t.Any, t.Any], importfunc(existing_workspace_file))
151+
)
150152

151153
workspace_file_format = prompt_choices(
152154
"Convert to",

‎src/tmuxp/workspace/importers.py‎

Lines changed: 3 additions & 11 deletions

0 commit comments

Comments
 (0)