Skip to content

Commit

Permalink
Turn off formatter for a section of code, and make it 3.8 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Dec 10, 2024
1 parent 10bcd34 commit 4e5923a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/textual/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4e5923a

Please sign in to comment.