Skip to content

Commit

Permalink
Remove an unnecessary annotation; reword a docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachaa-Thanasius committed Sep 8, 2024
1 parent b1834e0 commit 42b139a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/defer_imports/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__",
Expand All @@ -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("", "<unknown>", "utf-8")
Expand Down

0 comments on commit 42b139a

Please sign in to comment.