fix typing

This commit is contained in:
Will McGugan 2021-09-18 09:49:36 +01:00
parent 2cec85d81f
commit d589325d65

View file

@ -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