@@ -77,7 +77,7 @@ def refresh(self) -> None:
7777 """Refresh session attributes from tmux."""
7878 assert isinstance (self .session_id , str )
7979 return super ()._refresh (
80- obj_key = "session_id" , obj_id = self .session_id , list_cmd = "list-sessions"
80+ obj_key = "session_id" , obj_id = self .session_id , list_cmd = "list-sessions" ,
8181 )
8282
8383 @classmethod
@@ -169,7 +169,7 @@ def cmd(self, *args: t.Any, **kwargs: t.Any) -> tmux_cmd:
169169 """
170170
171171 def set_option (
172- self , option : str , value : t .Union [str , int ], _global : bool = False
172+ self , option : str , value : t .Union [str , int ], _global : bool = False ,
173173 ) -> "Session" :
174174 """Set option ``$ tmux set-option <option> <value>``.
175175
@@ -220,7 +220,7 @@ def set_option(
220220 return self
221221
222222 def show_options (
223- self , _global : t .Optional [bool ] = False
223+ self , _global : t .Optional [bool ] = False ,
224224 ) -> t .Dict [str , t .Union [str , int ]]:
225225 """Return dict of options for the session.
226226
@@ -258,7 +258,7 @@ def show_options(
258258 return session_options
259259
260260 def show_option (
261- self , option : str , _global : bool = False
261+ self , option : str , _global : bool = False ,
262262 ) -> t .Optional [t .Union [str , int , bool ]]:
263263 """Return option value for the target session.
264264
@@ -488,7 +488,7 @@ def new_window(
488488 window_args += (f"-e{ k } ={ v } " ,)
489489 else :
490490 logger .warning (
491- "Cannot set up environment as tmux 3.0 or newer is required."
491+ "Cannot set up environment as tmux 3.0 or newer is required." ,
492492 )
493493
494494 if window_shell :
@@ -502,11 +502,11 @@ def new_window(
502502 window_output = cmd .stdout [0 ]
503503
504504 window_formatters = dict (
505- zip (["window_id" ], window_output .split (FORMAT_SEPARATOR ))
505+ zip (["window_id" ], window_output .split (FORMAT_SEPARATOR )),
506506 )
507507
508508 return Window .from_window_id (
509- server = self .server , window_id = window_formatters ["window_id" ]
509+ server = self .server , window_id = window_formatters ["window_id" ],
510510 )
511511
512512 def kill_window (self , target_window : t .Optional [str ] = None ) -> None :
@@ -604,7 +604,7 @@ def __getitem__(self, key: str) -> t.Any:
604604
605605 """
606606 warnings .warn (
607- f"Item lookups, e.g. session['{ key } '] is deprecated" , stacklevel = 2
607+ f"Item lookups, e.g. session['{ key } '] is deprecated" , stacklevel = 2 ,
608608 )
609609 return getattr (self , key )
610610
0 commit comments