@@ -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 ],
@@ -322,7 +322,7 @@ def test_regression_00132_session_name_with_dots(
322322 tmp_path : pathlib .Path ,
323323 server : "Server" ,
324324 session : Session ,
325- capsys : pytest .CaptureFixture ,
325+ capsys : pytest .CaptureFixture [ str ] ,
326326) -> None :
327327 yaml_config = FIXTURE_PATH / "workspace/builder" / "regression_00132_dots.yaml"
328328 cli_args = [str (yaml_config )]
@@ -337,7 +337,7 @@ def test_load_zsh_autotitle_warning(
337337 cli_args : t .List [str ],
338338 tmp_path : pathlib .Path ,
339339 monkeypatch : pytest .MonkeyPatch ,
340- capsys : pytest .CaptureFixture ,
340+ capsys : pytest .CaptureFixture [ str ] ,
341341 server : "Server" ,
342342) -> None :
343343 # create dummy tmuxp yaml so we don't get yelled at
@@ -396,7 +396,7 @@ def test_load_log_file(
396396 cli_args : t .List [str ],
397397 tmp_path : pathlib .Path ,
398398 monkeypatch : pytest .MonkeyPatch ,
399- capsys : pytest .CaptureFixture ,
399+ capsys : pytest .CaptureFixture [ str ] ,
400400) -> None :
401401 # create dummy tmuxp yaml that breaks to prevent actually loading tmux
402402 tmuxp_config_path = tmp_path / ".tmuxp.yaml"
@@ -455,7 +455,10 @@ def test_load_plugins(monkeypatch_plugin_test_packages: None) -> None:
455455 ],
456456)
457457def test_load_plugins_version_fail_skip (
458- monkeypatch_plugin_test_packages , cli_args , inputs , capsys : pytest .CaptureFixture
458+ monkeypatch_plugin_test_packages ,
459+ cli_args ,
460+ inputs ,
461+ capsys : pytest .CaptureFixture [str ],
459462) -> None :
460463 try :
461464 cli .cli (cli_args )
@@ -480,7 +483,7 @@ def test_load_plugins_version_fail_no_skip(
480483 cli_args : t .List [str ],
481484 inputs : t .List [str ],
482485 monkeypatch : pytest .MonkeyPatch ,
483- capsys : pytest .CaptureFixture ,
486+ capsys : pytest .CaptureFixture [ str ] ,
484487) -> None :
485488 monkeypatch .setattr ("sys.stdin" , io .StringIO ("" .join (inputs )))
486489
@@ -500,7 +503,7 @@ def test_load_plugins_version_fail_no_skip(
500503def test_load_plugins_plugin_missing (
501504 monkeypatch_plugin_test_packages : None ,
502505 cli_args : t .List [str ],
503- capsys : pytest .CaptureFixture ,
506+ capsys : pytest .CaptureFixture [ str ] ,
504507) -> None :
505508 try :
506509 cli .cli (cli_args )
@@ -527,7 +530,7 @@ def test_plugin_system_before_script(
527530 session_file , socket_name = server .socket_name , detached = True
528531 )
529532
530- assert isinstance (session , libtmux . Session )
533+ assert isinstance (session , Session )
531534 assert session .name == "plugin_test_bs"
532535
533536
0 commit comments