From 42b139a825cdeff4fc79169c4bfa8c9481d0e951 Mon Sep 17 00:00:00 2001 From: Sachaa-Thanasius Date: Sun, 8 Sep 2024 22:32:18 +0530 Subject: [PATCH] Remove an unnecessary annotation; reword a docstring. --- src/defer_imports/console.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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")