mirror of
https://github.com/Textualize/rich.git
synced 2025-08-19 09:50:42 +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
|
rich_repr_result: Optional[RichReprResult] = None
|
||||||
try:
|
try:
|
||||||
if hasattr(obj, "__rich_repr__") and not isclass(obj):
|
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:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue