diff --git a/src/defer_imports/console.py b/src/defer_imports/console.py index 2acf2d3..e2d4c56 100644 --- a/src/defer_imports/console.py +++ b/src/defer_imports/console.py @@ -46,8 +46,6 @@ class DeferredInteractiveConsole(code.InteractiveConsole): This ensures that defer_imports.until_use works as intended when used directly in this console. """ - compile: codeop.CommandCompiler - def __init__(self) -> None: local_ns = { "__name__": "__console__", @@ -69,7 +67,7 @@ def interact() -> None: class _DeferredIPythonInstrumenter(ast.NodeTransformer): - """An AST transformer that wraps defer_import's AST transformation to fit the interface IPython's hook expects.""" + """An AST transformer that wraps defer_import's AST transformation to fit an IPython AST hook interface.""" def __init__(self): self.actual_transformer = DeferredInstrumenter("", "", "utf-8")