@@ -262,7 +262,7 @@ def test_load(
262262 tmuxp_configdir : pathlib .Path ,
263263 server : "Server" ,
264264 session : Session ,
265- capsys : pytest .CaptureFixture ,
265+ capsys : pytest .CaptureFixture [ str ] ,
266266 monkeypatch : pytest .MonkeyPatch ,
267267 test_id : str ,
268268 cli_args : t .List [str ],
@@ -318,7 +318,7 @@ def test_regression_00132_session_name_with_dots(
318318 tmp_path : pathlib .Path ,
319319 server : "Server" ,
320320 session : Session ,
321- capsys : pytest .CaptureFixture ,
321+ capsys : pytest .CaptureFixture [ str ] ,
322322) -> None :
323323 yaml_config = FIXTURE_PATH / "workspace/builder" / "regression_00132_dots.yaml"
324324 cli_args = [str (yaml_config )]
@@ -333,7 +333,7 @@ def test_load_zsh_autotitle_warning(
333333 cli_args : t .List [str ],
334334 tmp_path : pathlib .Path ,
335335 monkeypatch : pytest .MonkeyPatch ,
336- capsys : pytest .CaptureFixture ,
336+ capsys : pytest .CaptureFixture [ str ] ,
337337 server : "Server" ,
338338) -> None :
339339 # create dummy tmuxp yaml so we don't get yelled at
@@ -392,7 +392,7 @@ def test_load_log_file(
392392 cli_args : t .List [str ],
393393 tmp_path : pathlib .Path ,
394394 monkeypatch : pytest .MonkeyPatch ,
395- capsys : pytest .CaptureFixture ,
395+ capsys : pytest .CaptureFixture [ str ] ,
396396) -> None :
397397 # create dummy tmuxp yaml that breaks to prevent actually loading tmux
398398 tmuxp_config_path = tmp_path / ".tmuxp.yaml"
@@ -450,7 +450,10 @@ def test_load_plugins(monkeypatch_plugin_test_packages: None) -> None:
450450 ],
451451)
452452def test_load_plugins_version_fail_skip (
453- monkeypatch_plugin_test_packages , cli_args , inputs , capsys : pytest .CaptureFixture
453+ monkeypatch_plugin_test_packages ,
454+ cli_args ,
455+ inputs ,
456+ capsys : pytest .CaptureFixture [str ],
454457) -> None :
455458 with contextlib .suppress (SystemExit ):
456459 cli .cli (cli_args )
@@ -474,7 +477,7 @@ def test_load_plugins_version_fail_no_skip(
474477 cli_args : t .List [str ],
475478 inputs : t .List [str ],
476479 monkeypatch : pytest .MonkeyPatch ,
477- capsys : pytest .CaptureFixture ,
480+ capsys : pytest .CaptureFixture [ str ] ,
478481) -> None :
479482 monkeypatch .setattr ("sys.stdin" , io .StringIO ("" .join (inputs )))
480483
@@ -493,7 +496,7 @@ def test_load_plugins_version_fail_no_skip(
493496def test_load_plugins_plugin_missing (
494497 monkeypatch_plugin_test_packages : None ,
495498 cli_args : t .List [str ],
496- capsys : pytest .CaptureFixture ,
499+ capsys : pytest .CaptureFixture [ str ] ,
497500) -> None :
498501 with contextlib .suppress (SystemExit ):
499502 cli .cli (cli_args )
@@ -519,7 +522,7 @@ def test_plugin_system_before_script(
519522 session_file , socket_name = server .socket_name , detached = True
520523 )
521524
522- assert isinstance (session , libtmux . Session )
525+ assert isinstance (session , Session )
523526 assert session .name == "plugin_test_bs"
524527
525528
0 commit comments