Skip to content

Commit 2092d42

Browse files
committed
more typing
1 parent 9f88f9e commit 2092d42

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/textual/app.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,15 +691,17 @@ async def app_ready() -> None:
691691
nonlocal auto_pilot_task
692692
if auto_pilot is not None:
693693

694-
async def run_auto_pilot(pilot) -> None:
694+
async def run_auto_pilot(
695+
auto_pilot: AutopilotCallbackType, pilot: Pilot
696+
) -> None:
695697
try:
696698
await auto_pilot(pilot)
697699
except Exception:
698700
app.exit()
699701
raise
700702

701703
pilot = Pilot(app)
702-
auto_pilot_task = asyncio.create_task(run_auto_pilot(pilot))
704+
auto_pilot_task = asyncio.create_task(run_auto_pilot(auto_pilot, pilot))
703705

704706
try:
705707
await app._process_messages(

0 commit comments

Comments
 (0)