File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
- import code
2
1
import contextlib
3
2
import errno
4
3
import itertools
22
21
Union ,
23
22
cast ,
24
23
Type ,
25
- TYPE_CHECKING ,
26
24
)
27
25
from .._typing_compat import Literal
28
26
29
- if TYPE_CHECKING :
30
- from ..repl import Interpreter
31
-
32
27
import blessings
33
28
import greenlet
34
29
from curtsies import (
@@ -327,7 +322,7 @@ def __init__(
327
322
config : Config ,
328
323
locals_ : Optional [Dict [str , Any ]] = None ,
329
324
banner : Optional [str ] = None ,
330
- interp : Optional [code . InteractiveInterpreter ] = None ,
325
+ interp : Optional [Interp ] = None ,
331
326
orig_tcattrs : Optional [List [Any ]] = None ,
332
327
):
333
328
"""
@@ -372,7 +367,7 @@ def __init__(
372
367
logger .debug ("starting parent init" )
373
368
# interp is a subclass of repl.Interpreter, so it definitely,
374
369
# implements the methods of Interpreter!
375
- super ().__init__ (cast ( "Interpreter" , interp ) , config )
370
+ super ().__init__ (interp , config )
376
371
377
372
self .formatter = BPythonFormatter (config .color_scheme )
378
373
You can’t perform that action at this time.
0 commit comments