From 4e5923a8a7e9450bbff3be829142787be386c35a Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Tue, 10 Dec 2024 17:53:50 +0000 Subject: [PATCH] Turn off formatter for a section of code, and make it 3.8 compatible --- src/textual/app.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/textual/app.py b/src/textual/app.py index ed8c140dd3..a259a63585 100644 --- a/src/textual/app.py +++ b/src/textual/app.py @@ -4355,12 +4355,12 @@ def suspend(self) -> Iterator[None]: # app, and we don't want to have the driver auto-restart # application mode when the application comes back to the # foreground, in this context. - with ( - self._driver.no_automatic_restart(), - redirect_stdout(sys.__stdout__), - redirect_stderr(sys.__stderr__), - ): + # fmt: off + with self._driver.no_automatic_restart(), redirect_stdout( + sys.__stdout__ + ), redirect_stderr(sys.__stderr__): yield + # fmt: on # We're done with the dev's code so resume application mode. self._driver.resume_application_mode() # ...and publish a resume signal.