This commit is contained in:
Kian Meng, Ang
2021-12-27 20:23:15 +08:00
committed by GitHub
parent 7a42db2bf0
commit 55debfad1f
24 changed files with 35 additions and 34 deletions

View File

@@ -895,7 +895,7 @@ class FormattedExcinfo:
max_frames=max_frames,
total=len(traceback),
)
# Type ignored because adding two instaces of a List subtype
# Type ignored because adding two instances of a List subtype
# currently incorrectly has type List instead of the subtype.
traceback = traceback[:max_frames] + traceback[-max_frames:] # type: ignore
else: