Changed in version 3.11: Traceback is now a class instance (that is backwards compatible with the previous named tuple).
inspect/Traceback
Traceback