Skip to content

Commit 3118042

Browse files
authored
Use Any type in traceback tuple (ipython#15096)
And not traitlets any trait. Since this is a python standard library type, it seems likely that using the Any trait here was a typo? Formally I would expect the traceback type to be `types.TracebackType | None` but perhaps there is a good reason to use Any here?
2 parents 02e51dc + 3cf1f7c commit 3118042

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

IPython/core/interactiveshell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2141,7 +2141,7 @@ def get_exception_only(self, exc_tuple=None):
21412141

21422142
def showtraceback(
21432143
self,
2144-
exc_tuple: tuple[type[BaseException], BaseException, Any] | None = None,
2144+
exc_tuple: tuple[type[BaseException], BaseException, AnyType] | None = None,
21452145
filename: str | None = None,
21462146
tb_offset: int | None = None,
21472147
exception_only: bool = False,

0 commit comments

Comments
 (0)