Skip to content

Commit a09e07f

Browse files
committed
!squash more
1 parent e33f19d commit a09e07f

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

tests/fixtures/pluginsystem/partials/test_plugin_helpers.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
from typing import Iterable, Mapping, Union
1+
import typing as t
22

33
from tmuxp.plugin import TmuxpPlugin
44

55

6+
class Config(t.TypedDict):
7+
tmux_version: t.Optional[str]
8+
tmuxp_version: t.Optional[str]
9+
libtmux_version: t.Optional[str]
10+
11+
612
class MyTestTmuxpPlugin(TmuxpPlugin):
7-
def __init__(self, config: Mapping[str, Union[str, Iterable[str]]]) -> None:
13+
def __init__(self, config: Config) -> None:
814
assert isinstance(config, dict)
915
tmux_version = config.pop("tmux_version", None)
1016
libtmux_version = config.pop("libtmux_version", None)

tests/workspace/test_builder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,9 @@ def test_load_configs_separate_sessions(server: Server) -> None:
963963
assert len(server.sessions[1].windows) == 2
964964

965965

966-
def test_find_current_active_pane(server: Server, monkeypatch: pytest.MonkeyPatch) -> None:
966+
def test_find_current_active_pane(
967+
server: Server, monkeypatch: pytest.MonkeyPatch
968+
) -> None:
967969
workspace = ConfigReader._from_file(
968970
path=test_utils.get_workspace_file("workspace/builder/three_windows.yaml")
969971
)

0 commit comments

Comments
 (0)