Fixes missing fileno function (#3111) (#3239)

Adds missing fileno function to _PrintCapture class. This is needed
because _PrintCapture behaves like a normal stdin/stdout/stderr class
which provides this method.
This commit is contained in:
David Hallas
2023-09-11 11:39:05 +02:00
committed by GitHub
parent 60d5005a68
commit 550f647e0f

View File

@@ -238,6 +238,10 @@ class _PrintCapture:
# TODO: should this be configurable?
return True
def fileno(self) -> int:
"""Return invalid fileno."""
return -1
@rich.repr.auto
class App(Generic[ReturnType], DOMNode):