You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dataclassclassFrame:
filename: strlineno: intname: strline: str=""locals: Optional[Dict[str, pretty.Node]] =None_rich_traceback_omit: bool=False# <-- new opt-in allowing to exclude that frame
...which would be powered behind the scenes by something like the possibility to simply add _rich_traceback_omit = True to the locals of any Python object.
...and that we would detect when we create the Frame object, as we have frame_summary.f_locals at this point?
Activity
olivierphi commentedon Apr 26, 2022
Not sure I understand correctly, sorry... 😅
Do you mean something like this?
...which would be powered behind the scenes by something like the possibility to simply add
_rich_traceback_omit = True
to the locals of any Python object....and that we would detect when we create the Frame object, as we have
frame_summary.f_locals
at this point?willmcgugan commentedon Apr 26, 2022
Essentially that. The idea is that Textual can remove things like descriptors from the traceback, so the user doesn't see noise from the library code.
We do something similar to omit library code (see
suppress
)_rich_traceback_omit = True
machinery #2226github-actions commentedon Apr 26, 2022
Did I solve your problem?
Why not buy the devs a coffee to say thanks?