Skip to content

Commit b8daab4

Browse files
authored
Fix undefined name "Future" --> asyncio.Future (#4230)
* Fix undefined name "Future" --> asyncio.Future % `ruff check --output-format=github --select=E9,F63,F7,F82 --target-version=py39` ``` Error: sdk/python/packages/flet-core/src/flet_core/page.py:926:11: F821 Undefined name `Future` ``` * from __future__ import annotations
1 parent cc3b29e commit b8daab4

File tree

1 file changed

+3
-1
lines changed
  • sdk/python/packages/flet-core/src/flet_core

1 file changed

+3
-1
lines changed

sdk/python/packages/flet-core/src/flet_core/page.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import asyncio
24
import json
35
import logging
@@ -926,7 +928,7 @@ def run_task(
926928
handler: Callable[InputT, Awaitable[RetT]],
927929
*args: InputT.args,
928930
**kwargs: InputT.kwargs,
929-
) -> "Future[RetT]":
931+
) -> asyncio.Future[RetT]:
930932
_session_page.set(self)
931933
assert asyncio.iscoroutinefunction(handler)
932934

0 commit comments

Comments
 (0)