Skip to content

Commit 09de00a

Browse files
committed
fix(typings): Fix new_window argument typing in Session
1 parent 56661a6 commit 09de00a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libtmux/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def new_window(
587587
self,
588588
window_name: str | None = None,
589589
*,
590-
start_directory: None = None,
590+
start_directory: str | None = None,
591591
attach: bool = False,
592592
window_index: str = "",
593593
window_shell: str | None = None,
@@ -677,7 +677,7 @@ def new_window(
677677

678678
window_args += ("-P",)
679679

680-
if start_directory:
680+
if start_directory is not None:
681681
# as of 2014-02-08 tmux 1.9-dev doesn't expand ~ in new-window -c.
682682
start_directory = pathlib.Path(start_directory).expanduser()
683683
window_args += (f"-c{start_directory}",)

0 commit comments

Comments
 (0)