@@ -63,11 +63,9 @@ def run_before_script(
63
63
def oh_my_zsh_auto_title () -> None :
64
64
"""Give warning and offer to fix ``DISABLE_AUTO_TITLE``.
65
65
66
- see: https://github.com/robbyrussell/oh-my-zsh/pull/257
67
-
66
+ See: https://github.com/robbyrussell/oh-my-zsh/pull/257
68
67
"""
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" , "" ):
71
69
if os .path .exists (os .path .expanduser ("~/.oh-my-zsh" )):
72
70
# oh-my-zsh exists
73
71
if (
@@ -96,7 +94,7 @@ def get_current_pane(server: "Server") -> t.Optional["Pane"]:
96
94
def get_session (
97
95
server : "Server" ,
98
96
session_name : t .Optional [str ] = None ,
99
- current_pane : t .Optional [t . Dict [ str , str ] ] = None ,
97
+ current_pane : t .Optional ["Pane" ] = None ,
100
98
) -> "Session" :
101
99
try :
102
100
if session_name :
@@ -124,7 +122,7 @@ def get_session(
124
122
def get_window (
125
123
session : "Session" ,
126
124
window_name : t .Optional [str ] = None ,
127
- current_pane : t .Optional [t . Dict [ str , str ] ] = None ,
125
+ current_pane : t .Optional ["Pane" ] = None ,
128
126
) -> "Window" :
129
127
try :
130
128
if window_name :
@@ -147,9 +145,7 @@ def get_window(
147
145
return window
148
146
149
147
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" :
153
149
try :
154
150
if current_pane is not None :
155
151
pane = window .panes .get (pane_id = current_pane .pane_id ) # NOQA: F841
0 commit comments