Sumbitting this code (BTW, it prints None
):
try:
1/0
except Exception as err:
print(err.__traceback__.tb_next)
to mypy produces an error:
# error: Item "None" of "TracebackType | None" has no attribute "tb_next" [union-attr]
Can this happen? A caught exception with a traceback equal to None
?
1