@@ -63,11 +63,9 @@ def run_before_script(
6363def oh_my_zsh_auto_title () -> None :
6464 """Give warning and offer to fix ``DISABLE_AUTO_TITLE``.
6565
66- see: https://github.com/robbyrussell/oh-my-zsh/pull/257
67-
66+ See: https://github.com/robbyrussell/oh-my-zsh/pull/257
6867 """
69-
70- if "SHELL" in os .environ and "zsh" in os .environ .get ("SHELL" ):
68+ if "SHELL" in os .environ and "zsh" in os .environ .get ("SHELL" , "" ):
7169 if os .path .exists (os .path .expanduser ("~/.oh-my-zsh" )):
7270 # oh-my-zsh exists
7371 if (
@@ -96,7 +94,7 @@ def get_current_pane(server: "Server") -> t.Optional["Pane"]:
9694def get_session (
9795 server : "Server" ,
9896 session_name : t .Optional [str ] = None ,
99- current_pane : t .Optional [t . Dict [ str , str ] ] = None ,
97+ current_pane : t .Optional ["Pane" ] = None ,
10098) -> "Session" :
10199 try :
102100 if session_name :
@@ -124,7 +122,7 @@ def get_session(
124122def get_window (
125123 session : "Session" ,
126124 window_name : t .Optional [str ] = None ,
127- current_pane : t .Optional [t . Dict [ str , str ] ] = None ,
125+ current_pane : t .Optional ["Pane" ] = None ,
128126) -> "Window" :
129127 try :
130128 if window_name :
@@ -147,9 +145,7 @@ def get_window(
147145 return window
148146
149147
150- def get_pane (
151- window : "Window" , current_pane : t .Optional [t .Dict [str , str ]] = None
152- ) -> "Pane" :
148+ def get_pane (window : "Window" , current_pane : t .Optional ["Pane" ] = None ) -> "Pane" :
153149 try :
154150 if current_pane is not None :
155151 pane = window .panes .get (pane_id = current_pane .pane_id ) # NOQA: F841
0 commit comments