Skip to content

Commit f0af27d

Browse files
committed
Silence mypy for private API type error
1 parent bf0d723 commit f0af27d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Lib/_pyrepl/simple_interact.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ def maybe_run_command(statement: str) -> bool:
168168
r.invalidate_full()
169169
r.refresh()
170170
console.write("\n")
171-
console._excepthook(type(exc), exc, tb=None) # hide traceback
171+
console._excepthook(type(exc), exc, tb=None) # type: ignore[attr-defined] # hides traceback
172172
console.resetbuffer()
173173
except MemoryError as exc:
174174
console.write("\n")
175-
console._excepthook(type(exc), exc, tb=None) # hide traceback
175+
console._excepthook(type(exc), exc, tb=None) # type: ignore[attr-defined] # hides traceback
176176
console.resetbuffer()
177177
except SystemExit:
178178
raise

0 commit comments

Comments
 (0)