mirror of
https://github.com/Textualize/rich.git
synced 2025-08-18 17:30:23 +00:00
fix typing
This commit is contained in:
parent
2cec85d81f
commit
d589325d65
1 changed files with 1 additions and 1 deletions
|
@ -507,7 +507,7 @@ def traverse(
|
|||
rich_repr_result: Optional[RichReprResult] = None
|
||||
try:
|
||||
if hasattr(obj, "__rich_repr__") and not isclass(obj):
|
||||
rich_repr_result: Optional[RichReprResult] = obj.__rich_repr__()
|
||||
rich_repr_result = obj.__rich_repr__()
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue