Skip to content

Commit ac62c38

Browse files
generatedunixname1726680725427686meta-codesync[bot]
authored andcommitted
fbcode/tools/sapp/sapp/extensions/prompt_extension.py
Reviewed By: hanle11 Differential Revision: D101951317 fbshipit-source-id: c8983d46c4de599a4063066bd364819d5db2dbc1
1 parent 8068324 commit ac62c38

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎sapp/extensions/prompt_extension.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
from typing import List, Optional, Tuple
1111

12-
from IPython.core.interactiveshell import InteractiveShell
1312
from IPython.core.magic import Magics
13+
from IPython.terminal.interactiveshell import TerminalInteractiveShell
1414
from IPython.terminal.prompts import Prompts, Token
1515
from prompt_toolkit import Application as CommandLineInterface
1616
from pygments.token import _TokenType
@@ -51,6 +51,5 @@ def in_prompt_tokens(
5151
return tokens
5252

5353

54-
def load_ipython_extension(ipython: InteractiveShell) -> None:
55-
# pyre-fixme[16]: `InteractiveShell` has no attribute `prompts`.
54+
def load_ipython_extension(ipython: TerminalInteractiveShell) -> None:
5655
ipython.prompts = CustomPrompt(ipython)

0 commit comments

Comments
 (0)