← oracle_full

rich_4077

resolved RESOLVED UNSUBMITTED PASS · None tool calls · 0 s · Textualize/rich

Task input

proxy isatty

Fixes https://github.com/Textualize/rich/issues/4041

Tool calls (0)

#ToolArgumentsResult
No trace captured.

Patch

--- a/rich/file_proxy.py
+++ b/rich/file_proxy.py
@@ -55,3 +55,6 @@ def flush(self) -> None:
 
     def fileno(self) -> int:
         return self.__file.fileno()
+
+    def isatty(self) -> bool:
+        return self.__file.isatty()

Test output

show
....                                                                     [100%]
4 passed in 0.06s