Skip to content

Commit ce3bd14

Browse files
committed
fix(new_window): correct type for window_shell
1 parent 9eab168 commit ce3bd14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libtmux/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def new_window(
201201
start_directory: None = None,
202202
attach: bool = True,
203203
window_index: str = "",
204-
window_shell: None = None,
204+
window_shell: t.Optional[str] = None,
205205
) -> Window:
206206
"""
207207
Return :class:`Window` from ``$ tmux new-window``.
@@ -219,7 +219,7 @@ def new_window(
219219
window_index : str
220220
create the new window at the given index position. Default is empty
221221
string which will create the window in the next available position.
222-
window_shell : str
222+
window_shell : str, optional
223223
execute a command on starting the window. The window will close
224224
when the command exits.
225225

0 commit comments

Comments
 (0)