12
12
13
13
from libtmux import exc
14
14
from libtmux ._internal .query_list import ObjectDoesNotExist
15
- from libtmux ._internal .types import StrPath
16
15
from libtmux .common import has_gte_version , has_lt_version , has_lte_version
17
16
from libtmux .constants import (
18
17
PaneDirection ,
24
23
from libtmux .window import Window
25
24
26
25
if t .TYPE_CHECKING :
26
+ from libtmux ._internal .types import StrPath
27
27
from libtmux .session import Session
28
28
29
29
logger = logging .getLogger (__name__ )
@@ -712,8 +712,8 @@ def test_split_start_directory(
712
712
actual_start_directory = start_directory
713
713
expected_path = None
714
714
715
- if start_directory and str (start_directory ) not in [ "" , "None" ] :
716
- if "{user_path}" in str (start_directory ):
715
+ if start_directory and str (start_directory ) not in { "" , "None" } :
716
+ if f "{ user_path } " in str (start_directory ):
717
717
# Replace placeholder with actual user_path
718
718
actual_start_directory = str (start_directory ).format (user_path = user_path )
719
719
expected_path = str (user_path )
@@ -739,7 +739,8 @@ def test_split_start_directory(
739
739
740
740
741
741
def test_split_start_directory_pathlib (
742
- session : Session , user_path : pathlib .Path
742
+ session : Session ,
743
+ user_path : pathlib .Path ,
743
744
) -> None :
744
745
"""Test Window.split accepts pathlib.Path for start_directory."""
745
746
window = session .new_window (window_name = "test_window_split_pathlib" )
0 commit comments