Skip to content

Commit 3c0d700

Browse files
committed
fix(new_window): window_shell / start_directory shoud be str type not None
1 parent 53e865e commit 3c0d700

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libtmux/session.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,10 @@ def rename_session(self, new_name: str) -> "Session":
198198
def new_window(
199199
self,
200200
window_name: t.Optional[str] = None,
201-
start_directory: None = None,
201+
start_directory: str = "",
202202
attach: bool = True,
203203
window_index: str = "",
204-
window_shell: None = None,
204+
window_shell: str = "",
205205
) -> Window:
206206
"""
207207
Return :class:`Window` from ``$ tmux new-window``.

0 commit comments

Comments
 (0)