Skip to content

Commit 93bf0f0

Browse files
authored
Fix return type of PromptMonitor._async_get to match 3-element tuple (#597)
1 parent 39dc92d commit 93bf0f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/library/python/iterm2/iterm2/prompt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ async def async_get(
246246
return triple
247247
return (triple[0], triple[1])
248248

249-
async def _async_get(self) -> typing.Tuple['PromptMonitor.Mode', typing.Any]:
249+
async def _async_get(self) -> typing.Tuple['PromptMonitor.Mode', typing.Any, typing.Optional[str]]:
250250
message = await self.__queue.get()
251251
if not iterm2.capabilities.supports_prompt_monitor_modes(
252252
self.connection):

0 commit comments

Comments
 (0)