@@ -77,7 +77,9 @@ 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" ,
81+ obj_id = self .session_id ,
82+ list_cmd = "list-sessions" ,
8183 )
8284
8385 @classmethod
@@ -169,7 +171,10 @@ def cmd(self, *args: t.Any, **kwargs: t.Any) -> tmux_cmd:
169171 """
170172
171173 def set_option (
172- self , option : str , value : t .Union [str , int ], _global : bool = False ,
174+ self ,
175+ option : str ,
176+ value : t .Union [str , int ],
177+ _global : bool = False ,
173178 ) -> "Session" :
174179 """Set option ``$ tmux set-option <option> <value>``.
175180
@@ -220,7 +225,8 @@ def set_option(
220225 return self
221226
222227 def show_options (
223- self , _global : t .Optional [bool ] = False ,
228+ self ,
229+ _global : t .Optional [bool ] = False ,
224230 ) -> t .Dict [str , t .Union [str , int ]]:
225231 """Return dict of options for the session.
226232
@@ -258,7 +264,9 @@ def show_options(
258264 return session_options
259265
260266 def show_option (
261- self , option : str , _global : bool = False ,
267+ self ,
268+ option : str ,
269+ _global : bool = False ,
262270 ) -> t .Optional [t .Union [str , int , bool ]]:
263271 """Return option value for the target session.
264272
@@ -506,7 +514,8 @@ def new_window(
506514 )
507515
508516 return Window .from_window_id (
509- server = self .server , window_id = window_formatters ["window_id" ],
517+ server = self .server ,
518+ window_id = window_formatters ["window_id" ],
510519 )
511520
512521 def kill_window (self , target_window : t .Optional [str ] = None ) -> None :
@@ -604,7 +613,8 @@ def __getitem__(self, key: str) -> t.Any:
604613
605614 """
606615 warnings .warn (
607- f"Item lookups, e.g. session['{ key } '] is deprecated" , stacklevel = 2 ,
616+ f"Item lookups, e.g. session['{ key } '] is deprecated" ,
617+ stacklevel = 2 ,
608618 )
609619 return getattr (self , key )
610620
0 commit comments