Add missing isatty() to _ConsoleCapture stream wrapper (#24143)

This commit is contained in:
fatih akyon 2026-04-07 15:52:03 +03:00 committed by GitHub
parent b7e4aa6a0f
commit 75acff57c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -270,6 +270,10 @@ class ConsoleLogger:
"""Flush the wrapped stream to propagate buffered output promptly during console capture."""
self.original.flush()
def isatty(self):
"""Delegate isatty check to the original stream."""
return self.original.isatty()
class _LogHandler(logging.Handler):
"""Lightweight logging handler."""