Skip to content

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.

ci fix: add types-docutils for mypy typecheck (#10487)

Shahmir Varqha5d42d5b2ff86
diff --git a/marimo/_data/_external_storage/utils.py b/marimo/_data/_external_storage/utils.py
index 4508015418..36e831159a 100644
--- a/marimo/_data/_external_storage/utils.py
+++ b/marimo/_data/_external_storage/utils.py
@@ -1,3 +1,5 @@
+# Copyright 2026 Marimo. All rights reserved.
+
from marimo import _loggers
from marimo._data._external_storage.models import (
StorageEntry,
diff --git a/marimo/_utils/rst_to_html.py b/marimo/_utils/rst_to_html.py
index 7d61589168..6adb50a605 100644
--- a/marimo/_utils/rst_to_html.py
+++ b/marimo/_utils/rst_to_html.py
@@ -8,10 +8,8 @@ import io
def convert_rst_to_html(rst_content: str) -> str:
"""Convert RST content to HTML."""
- from docutils.core import publish_parts # type: ignore[import-untyped]
- from docutils.writers.html4css1 import (
- Writer, # type: ignore[import-untyped]
- )
+ from docutils.core import publish_parts
+ from docutils.writers.html4css1 import Writer
# redirect stderr and ignore it to silence error messages
with contextlib.redirect_stderr(io.StringIO()) as _:
diff --git a/pyproject.toml b/pyproject.toml
index 7cc5b9d104..d366b57431 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -263,6 +263,7 @@ typecheck = [
"types-redis>=4.6.0.20241004",
"types-Markdown>=3.6.0.20240316",
"types-PyYAML>=6.0.12.20240808",
+ "types-docutils>=0.21.0.20241128",
"mcp>=1.0.0,<2",
# zeromq
"pyzmq>=27.1.0",