From 485a84396903f0c12b572e54be3f10829203841c Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Wed, 19 Aug 2020 10:49:08 +0100 Subject: [PATCH] type errors --- rich/pretty.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rich/pretty.py b/rich/pretty.py index a6cd2cfa..d38173b1 100644 --- a/rich/pretty.py +++ b/rich/pretty.py @@ -45,14 +45,14 @@ def install( if value is not None: assert console is not None - builtins._ = None + builtins._ = None # type: ignore console.print( value if hasattr(value, "__rich_console__") or hasattr(value, "__rich__") else pretty_repr(value, max_width=console.width, overflow=overflow), crop=crop, ) - builtins._ = value + builtins._ = value # type: ignore sys.displayhook = display_hook