From 8676521e50f2bf564c94361af9d5c9a7201ec8d1 Mon Sep 17 00:00:00 2001 From: Nicholas Bollweg Date: Fri, 18 Apr 2025 09:14:25 -0500 Subject: [PATCH] use ipython: InteractiveShell --- src/ipython_beartype/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ipython_beartype/__init__.py b/src/ipython_beartype/__init__.py index d9cae49..fda1cd2 100644 --- a/src/ipython_beartype/__init__.py +++ b/src/ipython_beartype/__init__.py @@ -2,10 +2,10 @@ from beartype.claw._ast.clawastmain import BeartypeNodeTransformer from beartype._conf.confcls import BeartypeConf -from IPython.terminal.interactiveshell import TerminalInteractiveShell +from IPython.terminal.interactiveshell import InteractiveShell -def load_ipython_extension(ipython: TerminalInteractiveShell) -> None: +def load_ipython_extension(ipython: InteractiveShell) -> None: # The import is local to avoid degrading import times when the magic is # not needed. from IPython.core.magic import line_magic, Magics, magics_class