Skip to content

Commit b8395d8

Browse files
committed
chore(mypy): Basic typings for plugin test partials
1 parent a7c3f3a commit b8395d8

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

tests/fixtures/pluginsystem/partials/libtmux_version_fail.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33

44
class LibtmuxVersionFailMinPlugin(MyTestTmuxpPlugin):
5-
def __init__(self):
6-
config = {
5+
def __init__(self) -> None:
6+
config: dict[str, str] = {
77
"plugin_name": "libtmux-min-version-fail",
88
"libtmux_min_version": "0.8.3",
99
"libtmux_version": "0.7.0",
@@ -12,8 +12,8 @@ def __init__(self):
1212

1313

1414
class LibtmuxVersionFailMaxPlugin(MyTestTmuxpPlugin):
15-
def __init__(self):
16-
config = {
15+
def __init__(self) -> None:
16+
config: dict[str, str] = {
1717
"plugin_name": "libtmux-max-version-fail",
1818
"libtmux_max_version": "3.0",
1919
"libtmux_version": "3.5",
@@ -22,8 +22,8 @@ def __init__(self):
2222

2323

2424
class LibtmuxVersionFailIncompatiblePlugin(MyTestTmuxpPlugin):
25-
def __init__(self):
26-
config = {
25+
def __init__(self) -> None:
26+
config: dict[str, str | list[str]] = {
2727
"plugin_name": "libtmux-incompatible-version-fail",
2828
"libtmux_version_incompatible": ["0.7.1"],
2929
"libtmux_version": "0.7.1",

tests/fixtures/pluginsystem/partials/tmux_version_fail.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33

44
class TmuxVersionFailMinPlugin(MyTestTmuxpPlugin):
5-
def __init__(self):
6-
config = {
5+
def __init__(self) -> None:
6+
config: dict[str, str] = {
77
"plugin_name": "tmux-min-version-fail",
88
"tmux_min_version": "1.8",
99
"tmux_version": "1.7",
@@ -12,8 +12,8 @@ def __init__(self):
1212

1313

1414
class TmuxVersionFailMaxPlugin(MyTestTmuxpPlugin):
15-
def __init__(self):
16-
config = {
15+
def __init__(self) -> None:
16+
config: dict[str, str] = {
1717
"plugin_name": "tmux-max-version-fail",
1818
"tmux_max_version": "3.0",
1919
"tmux_version": "3.5",
@@ -22,8 +22,8 @@ def __init__(self):
2222

2323

2424
class TmuxVersionFailIncompatiblePlugin(MyTestTmuxpPlugin):
25-
def __init__(self):
26-
config = {
25+
def __init__(self) -> None:
26+
config: dict[str, str | list[str]] = {
2727
"plugin_name": "tmux-incompatible-version-fail",
2828
"tmux_version_incompatible": ["2.3"],
2929
"tmux_version": "2.3",

tests/fixtures/pluginsystem/partials/tmuxp_version_fail.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33

44
class TmuxpVersionFailMinPlugin(MyTestTmuxpPlugin):
5-
def __init__(self):
6-
config = {
5+
def __init__(self) -> None:
6+
config: dict[str, str] = {
77
"plugin_name": "tmuxp-min-version-fail",
88
"tmuxp_min_version": "1.7.0",
99
"tmuxp_version": "1.6.3",
@@ -12,8 +12,8 @@ def __init__(self):
1212

1313

1414
class TmuxpVersionFailMaxPlugin(MyTestTmuxpPlugin):
15-
def __init__(self):
16-
config = {
15+
def __init__(self) -> None:
16+
config: dict[str, str] = {
1717
"plugin_name": "tmuxp-max-version-fail",
1818
"tmuxp_max_version": "2.0.0",
1919
"tmuxp_version": "2.5",
@@ -22,8 +22,8 @@ def __init__(self):
2222

2323

2424
class TmuxpVersionFailIncompatiblePlugin(MyTestTmuxpPlugin):
25-
def __init__(self):
26-
config = {
25+
def __init__(self) -> None:
26+
config: dict[str, str | list[str]] = {
2727
"plugin_name": "tmuxp-incompatible-version-fail",
2828
"tmuxp_version_incompatible": ["1.5.0"],
2929
"tmuxp_version": "1.5.0",

0 commit comments

Comments
 (0)