mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
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:
@@ -238,6 +238,10 @@ class _PrintCapture:
|
|||||||
# TODO: should this be configurable?
|
# TODO: should this be configurable?
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
def fileno(self) -> int:
|
||||||
|
"""Return invalid fileno."""
|
||||||
|
return -1
|
||||||
|
|
||||||
|
|
||||||
@rich.repr.auto
|
@rich.repr.auto
|
||||||
class App(Generic[ReturnType], DOMNode):
|
class App(Generic[ReturnType], DOMNode):
|
||||||
|
|||||||
Reference in New Issue
Block a user