File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 1- import code
21import contextlib
32import errno
43import itertools
2221 Union ,
2322 cast ,
2423 Type ,
25- TYPE_CHECKING ,
2624)
2725from .._typing_compat import Literal
2826
29- if TYPE_CHECKING :
30- from ..repl import Interpreter
31-
3227import blessings
3328import greenlet
3429from curtsies import (
@@ -327,7 +322,7 @@ def __init__(
327322 config : Config ,
328323 locals_ : Optional [Dict [str , Any ]] = None ,
329324 banner : Optional [str ] = None ,
330- interp : Optional [code . InteractiveInterpreter ] = None ,
325+ interp : Optional [Interp ] = None ,
331326 orig_tcattrs : Optional [List [Any ]] = None ,
332327 ):
333328 """
@@ -372,7 +367,7 @@ def __init__(
372367 logger .debug ("starting parent init" )
373368 # interp is a subclass of repl.Interpreter, so it definitely,
374369 # implements the methods of Interpreter!
375- super ().__init__ (cast ( "Interpreter" , interp ) , config )
370+ super ().__init__ (interp , config )
376371
377372 self .formatter = BPythonFormatter (config .color_scheme )
378373
You can’t perform that action at this time.
0 commit comments