A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix: preserve serial task completion types (#11395)
Shahmir Varqhaaba75a689921
diff --git a/marimo/_utils/serial_task_runner.py b/marimo/_utils/serial_task_runner.pyindex 1fb510bcfd..f51cdf2af8 100644--- a/marimo/_utils/serial_task_runner.py+++ b/marimo/_utils/serial_task_runner.py@@ -22,7 +22,7 @@ from __future__ import annotationsimport asynciofrom concurrent.futures import ThreadPoolExecutorfrom functools import cached_property-from typing import TYPE_CHECKING, Any+from typing import TYPE_CHECKINGfrom marimo import _loggers@@ -37,7 +37,7 @@ class SerialTaskRunner:def __init__(self, *, thread_name_prefix: str = "serial-task") -> None:self._thread_name_prefix = thread_name_prefix- self._pending: list[asyncio.Future[Any]] = []+ self._pending: list[asyncio.Future[None]] = []self._closed = False@cached_property@@ -47,7 +47,7 @@ class SerialTaskRunner:)@property- def pending(self) -> list[asyncio.Future[Any]]:+ def pending(self) -> list[asyncio.Future[None]]:"""In-flight futures; tests can await these to synchronize."""return self._pending