Skip to content

Commit 4429cd7

Browse files
committed
chore(test_plugin_helpers): Correct annotations
1 parent 385a4ac commit 4429cd7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/fixtures/pluginsystem/partials/test_plugin_helpers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
from typing import Dict, List, Union
1+
from typing import Iterable, Mapping, Union
22

33
from tmuxp.plugin import TmuxpPlugin
44

55

66
class MyTestTmuxpPlugin(TmuxpPlugin):
7-
def __init__(self, config: Dict[str, Union[str, List[str]]]) -> None:
7+
def __init__(self, config: Mapping[str, Union[str, Iterable[str]]]) -> None:
8+
assert isinstance(config, dict)
89
tmux_version = config.pop("tmux_version", None)
910
libtmux_version = config.pop("libtmux_version", None)
1011
tmuxp_version = config.pop("tmuxp_version", None)

0 commit comments

Comments
 (0)