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
Switch to `msgspec_m` fork (#6774)
Trevor Manz3321239c1552
diff --git a/marimo/_ai/_types.py b/marimo/_ai/_types.pyindex 13a98ef7ab..2ae6361b03 100644--- a/marimo/_ai/_types.py+++ b/marimo/_ai/_types.py@@ -15,7 +15,7 @@ from typing import (cast,)-import msgspec+import msgspec_m as msgspecfrom marimo import _loggersfrom marimo._utils.parse_dataclass import parse_rawdiff --git a/marimo/_ast/cell.py b/marimo/_ast/cell.pyindex c7c3cdd24c..c7dfb40dbd 100644--- a/marimo/_ast/cell.py+++ b/marimo/_ast/cell.py@@ -9,7 +9,7 @@ from collections.abc import Awaitable, Mappingfrom functools import cached_propertyfrom typing import TYPE_CHECKING, Any, Literal, Optional-import msgspec+import msgspec_m as msgspecfrom marimo import _loggersfrom marimo._ast.parse import ast_parsediff --git a/marimo/_cli/development/commands.py b/marimo/_cli/development/commands.pyindex 6a93bf4538..f82bf54e3d 100644--- a/marimo/_cli/development/commands.py+++ b/marimo/_cli/development/commands.py@@ -9,8 +9,8 @@ from pathlib import Pathfrom typing import TYPE_CHECKING, Anyimport click-import msgspec-import msgspec.json+import msgspec_m as msgspec+import msgspec_m.jsonfrom marimo._cli.print import orangefrom marimo._data.models import DataType@@ -275,7 +275,7 @@ def _generate_server_api_schema() -> dict[str, Any]:error: MarimoErrordata_type: DataType- specs = msgspec.json.schema_components(+ specs = msgspec_m.json.schema_components(MESSAGES + [KnownUnions],ref_template="#/components/schemas/{name}",)diff --git a/marimo/_ipc/types.py b/marimo/_ipc/types.pyindex 4ea9bce615..7f0f38984e 100644--- a/marimo/_ipc/types.py+++ b/marimo/_ipc/types.py@@ -3,8 +3,8 @@ from __future__ import annotationsimport typing-import msgspec-import msgspec.json+import msgspec_m as msgspec+import msgspec_m.jsonfrom marimo._ast.cell import CellConfigfrom marimo._config.config import MarimoConfig@@ -40,4 +40,4 @@ class KernelArgs(msgspec.Struct):@classmethoddef decode_json(cls, buf: bytes) -> KernelArgs:- return msgspec.json.decode(buf, type=cls)+ return msgspec_m.json.decode(buf, type=cls)diff --git a/marimo/_messaging/cell_output.py b/marimo/_messaging/cell_output.pyindex e864111b58..4fb8020bf7 100644--- a/marimo/_messaging/cell_output.py+++ b/marimo/_messaging/cell_output.py@@ -7,7 +7,7 @@ import timefrom enum import Enumfrom typing import Any, Union-import msgspec+import msgspec_m as msgspecfrom marimo._messaging.errors import Errorfrom marimo._messaging.mimetypes import ConsoleMimeType, KnownMimeTypediff --git a/marimo/_messaging/completion_option.py b/marimo/_messaging/completion_option.pyindex 54ddff16e7..24f62cfe40 100644--- a/marimo/_messaging/completion_option.py+++ b/marimo/_messaging/completion_option.py@@ -5,7 +5,7 @@ from __future__ import annotationsfrom typing import Optional-import msgspec+import msgspec_m as msgspecclass CompletionOption(msgspec.Struct):diff --git a/marimo/_messaging/errors.py b/marimo/_messaging/errors.pyindex f8f44b5fa1..4ad9a881ae 100644--- a/marimo/_messaging/errors.py+++ b/marimo/_messaging/errors.py@@ -3,7 +3,7 @@ from __future__ import annotationsfrom typing import Optional, Union-import msgspec+import msgspec_m as msgspecfrom marimo._runtime.dataflow import EdgeWithVarfrom marimo._types.ids import CellId_tdiff --git a/marimo/_messaging/msgspec_encoder.py b/marimo/_messaging/msgspec_encoder.pyindex 35e4bc1191..f1a91d24be 100644--- a/marimo/_messaging/msgspec_encoder.py+++ b/marimo/_messaging/msgspec_encoder.py@@ -10,8 +10,8 @@ from math import isnanfrom pathlib import PurePathfrom typing import Any-import msgspec-import msgspec.json+import msgspec_m as msgspec+import msgspec_m.jsonfrom marimo._dependencies.dependencies import DependencyManager@@ -200,7 +200,7 @@ def enc_hook(obj: Any) -> Any:return repr(obj)-_encoder = msgspec.json.Encoder(enc_hook=enc_hook, decimal_format="number")+_encoder = msgspec_m.json.Encoder(enc_hook=enc_hook, decimal_format="number")def encode_json_bytes(obj: Any) -> bytes:diff --git a/marimo/_messaging/ops.py b/marimo/_messaging/ops.pyindex 4f3844f3d6..3f3796854a 100644--- a/marimo/_messaging/ops.py+++ b/marimo/_messaging/ops.py@@ -19,7 +19,7 @@ from typing import ()from uuid import uuid4-import msgspec+import msgspec_m as msgspecfrom marimo import _loggers as loggersfrom marimo._ast.app_config import _AppConfigdiff --git a/marimo/_plugins/ui/_impl/tables/narwhals_table.py b/marimo/_plugins/ui/_impl/tables/narwhals_table.pyindex 41ffe317c4..d56347eb92 100644--- a/marimo/_plugins/ui/_impl/tables/narwhals_table.py+++ b/marimo/_plugins/ui/_impl/tables/narwhals_table.py@@ -7,7 +7,7 @@ import iofrom functools import cached_propertyfrom typing import TYPE_CHECKING, Any, Literal, Optional, Union, cast-import msgspec+import msgspec_m as msgspecimport narwhals.stable.v2 as nwfrom narwhals.typing import IntoDataFrameT, IntoLazyFrameTdiff --git a/marimo/_pyodide/pyodide_session.py b/marimo/_pyodide/pyodide_session.pyindex 06c70642a9..8adbe43322 100644--- a/marimo/_pyodide/pyodide_session.py+++ b/marimo/_pyodide/pyodide_session.py@@ -10,7 +10,7 @@ import typingfrom pathlib import Pathfrom typing import Any, Callable, TypeVar-import msgspec+import msgspec_m as msgspecfrom marimo import _loggersfrom marimo._ast.cell import CellConfigdiff --git a/marimo/_runtime/packages/package_manager.py b/marimo/_runtime/packages/package_manager.pyindex c38f1f35d6..540ebd3923 100644--- a/marimo/_runtime/packages/package_manager.py+++ b/marimo/_runtime/packages/package_manager.py@@ -6,7 +6,7 @@ import subprocessimport sysfrom typing import TYPE_CHECKING, Callable, Optional-import msgspec+import msgspec_m as msgspecfrom marimo import _loggersfrom marimo._dependencies.dependencies import DependencyManager@@ -127,7 +127,7 @@ class PackageManager(abc.ABC):if log_callback is None:# Original behavior - just run the command without capturing output- completed_process = subprocess.run(command) # noqa: ASYNC101+ completed_process = subprocess.run(command)return completed_process.returncode == 0# Stream output to both the callback and the terminaldiff --git a/marimo/_runtime/requests.py b/marimo/_runtime/requests.pyindex 726f05838c..0718969abb 100644--- a/marimo/_runtime/requests.py+++ b/marimo/_runtime/requests.py@@ -14,7 +14,7 @@ from typing import ()from uuid import uuid4-import msgspec+import msgspec_m as msgspecfrom marimo._ast.app_config import _AppConfigfrom marimo._config.config import MarimoConfigdiff --git a/marimo/_secrets/models.py b/marimo/_secrets/models.pyindex dbba574f9f..b56bf0f581 100644--- a/marimo/_secrets/models.py+++ b/marimo/_secrets/models.py@@ -4,7 +4,7 @@ from __future__ import annotationsfrom abc import ABC, abstractmethodfrom typing import Literal-import msgspec+import msgspec_m as msgspecSecretProviderType = Literal["env", "dotenv"]diff --git a/marimo/_server/api/endpoints/home.py b/marimo/_server/api/endpoints/home.pyindex b3a099a237..7b103fefde 100644--- a/marimo/_server/api/endpoints/home.py+++ b/marimo/_server/api/endpoints/home.py@@ -178,7 +178,7 @@ async def tutorial(schema:$ref: "#/components/schemas/MarimoFile""""- import msgspec+ import msgspec_m as msgspec# Create a new tutorial file and return the filepathtry:diff --git a/marimo/_server/errors.py b/marimo/_server/errors.pyindex 38e1728541..f00a4bea28 100644--- a/marimo/_server/errors.py+++ b/marimo/_server/errors.py@@ -3,7 +3,7 @@ from __future__ import annotationsfrom typing import TYPE_CHECKING, Any-import msgspec+import msgspec_m as msgspecfrom starlette.exceptions import HTTPExceptionfrom starlette.responses import JSONResponsediff --git a/marimo/_server/models/completion.py b/marimo/_server/models/completion.pyindex eaba085faf..c0ff4be35a 100644--- a/marimo/_server/models/completion.py+++ b/marimo/_server/models/completion.py@@ -3,7 +3,7 @@ from __future__ import annotationsfrom typing import Any, Literal, Optional, Union-import msgspec+import msgspec_m as msgspecfrom marimo._ai._types import ChatMessagefrom marimo._server.ai.tools.types import ToolDefinitiondiff --git a/marimo/_server/models/export.py b/marimo/_server/models/export.pyindex 4e4af4a705..e1a8082e9a 100644--- a/marimo/_server/models/export.py+++ b/marimo/_server/models/export.py@@ -3,7 +3,7 @@ from __future__ import annotationsfrom typing import Optional-import msgspec+import msgspec_m as msgspecclass ExportAsHTMLRequest(msgspec.Struct, rename="camel"):diff --git a/marimo/_server/models/files.py b/marimo/_server/models/files.pyindex f41e9c6838..fd11312b19 100644--- a/marimo/_server/models/files.py+++ b/marimo/_server/models/files.py@@ -3,7 +3,7 @@ from __future__ import annotationsfrom typing import Literal, Optional-import msgspec+import msgspec_m as msgspecfrom marimo._server.models.models import BaseResponsediff --git a/marimo/_server/models/home.py b/marimo/_server/models/home.pyindex 6f440bf47e..0b112dd5c5 100644--- a/marimo/_server/models/home.py+++ b/marimo/_server/models/home.py@@ -3,7 +3,7 @@ from __future__ import annotationsfrom typing import Optional-import msgspec+import msgspec_m as msgspecfrom marimo._server.models.files import FileInfofrom marimo._tutorials import Tutorial # type: ignorediff --git a/marimo/_server/models/models.py b/marimo/_server/models/models.pyindex 51a58a6aab..f3e3b83525 100644--- a/marimo/_server/models/models.py+++ b/marimo/_server/models/models.py@@ -4,7 +4,7 @@ from __future__ import annotationsimport osfrom typing import Any, Literal, Optional-import msgspec+import msgspec_m as msgspecfrom marimo._ast.cell import CellConfigfrom marimo._runtime.requests import (diff --git a/marimo/_server/models/packages.py b/marimo/_server/models/packages.pyindex 4193379426..dce9fbc82d 100644--- a/marimo/_server/models/packages.py+++ b/marimo/_server/models/packages.py@@ -3,7 +3,7 @@ from __future__ import annotationsfrom typing import Optional-import msgspec+import msgspec_m as msgspecfrom marimo._runtime.packages.package_manager import PackageDescriptiondiff --git a/marimo/_server/models/secrets.py b/marimo/_server/models/secrets.pyindex e89476c03b..2b58d43152 100644--- a/marimo/_server/models/secrets.py+++ b/marimo/_server/models/secrets.py@@ -1,7 +1,7 @@# Copyright 2025 Marimo. All rights reserved.from __future__ import annotations-import msgspec+import msgspec_m as msgspecfrom marimo._secrets.models import SecretKeysWithProvider, SecretProviderTypediff --git a/marimo/_server/responses.py b/marimo/_server/responses.pyindex aa10098f94..89a6dfd32b 100644--- a/marimo/_server/responses.py+++ b/marimo/_server/responses.py@@ -8,7 +8,7 @@ import starlette.responsesfrom marimo._messaging.msgspec_encoder import encode_json_bytesif TYPE_CHECKING:- import msgspec+ import msgspec_m as msgspecclass StructResponse(starlette.responses.Response):diff --git a/marimo/_snippets/snippets.py b/marimo/_snippets/snippets.pyindex 1a6359c496..c6542f1704 100644--- a/marimo/_snippets/snippets.py+++ b/marimo/_snippets/snippets.py@@ -5,7 +5,7 @@ from collections.abc import Awaitable, Generatorfrom pathlib import Pathfrom typing import Any, Optional-import msgspec+import msgspec_m as msgspecfrom marimo import _loggersfrom marimo._ast.load import load_appdiff --git a/marimo/_sql/parse.py b/marimo/_sql/parse.pyindex ce666aa106..5caf1aab7a 100644--- a/marimo/_sql/parse.py+++ b/marimo/_sql/parse.py@@ -4,7 +4,7 @@ from __future__ import annotationsimport refrom typing import Literal, Optional, Union-import msgspec+import msgspec_m as msgspecfrom marimo import _loggersfrom marimo._dependencies.dependencies import DependencyManagerdiff --git a/marimo/_utils/dataclass_to_openapi.py b/marimo/_utils/dataclass_to_openapi.pyindex faac7dd4b6..9e49d90c72 100644--- a/marimo/_utils/dataclass_to_openapi.py+++ b/marimo/_utils/dataclass_to_openapi.py@@ -28,8 +28,8 @@ else:from typing import Sequence # noqa: UP035-import msgspec-import msgspec.json+import msgspec_m as msgspec+import msgspec_m.jsonclass PythonTypeToOpenAPI:@@ -52,7 +52,7 @@ class PythonTypeToOpenAPI:Dict[str, Any]: The OpenAPI schema."""if type(py_type) is type(msgspec.Struct):- return msgspec.json.schema(py_type)["$defs"][py_type.__name__] # type: ignore[no-any-return]+ return msgspec_m.json.schema(py_type)["$defs"][py_type.__name__] # type: ignore[no-any-return]origin = get_origin(py_type)optional_name_overrides = self.optional_name_overridesdiff --git a/marimo/_utils/msgspec_basestruct.py b/marimo/_utils/msgspec_basestruct.pyindex 0a4397acb4..101b062181 100644--- a/marimo/_utils/msgspec_basestruct.py+++ b/marimo/_utils/msgspec_basestruct.py@@ -3,7 +3,7 @@ from __future__ import annotationsfrom typing import TYPE_CHECKING, Any-import msgspec+import msgspec_m as msgspecif TYPE_CHECKING:from pydantic import GetCoreSchemaHandlerdiff --git a/marimo/_utils/parse_dataclass.py b/marimo/_utils/parse_dataclass.pyindex 8d4918de98..59416de587 100644--- a/marimo/_utils/parse_dataclass.py+++ b/marimo/_utils/parse_dataclass.py@@ -18,8 +18,8 @@ from typing import (get_type_hints,)-import msgspec-import msgspec.json+import msgspec_m as msgspec+import msgspec_m.json# Import NotRequired from typing_extensions for Python < 3.11if sys.version_info < (3, 11):@@ -206,7 +206,7 @@ def _parse_msgspec(if isinstance(value, dict):return msgspec.convert(value, strict=strict, type=cls)- return msgspec.json.decode(value, strict=strict, type=cls)+ return msgspec_m.json.decode(value, strict=strict, type=cls)def parse_raw(diff --git a/pixi.lock b/pixi.lockindex 12dcf9b355..8d9f6ab940 100644--- a/pixi.lock+++ b/pixi.lock@@ -111,7 +111,7 @@ environments:- pypi: https://files.pythonhosted.org/packages/c0/5a/9cac0c82afec3d09ccd97c8b6502d48f165f9124db81b4bcb90b4af974ee/jedi-0.19.2-py2.py3-none-any.whl- pypi: https://files.pythonhosted.org/packages/a3/48/f97f0920c20bc522c34f1eaec4c62d7a03c95c37da2dec858f65c8cb4325/loro-1.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl- pypi: https://files.pythonhosted.org/packages/51/3f/afe76f8e2246ffbc867440cbcf90525264df0e658f8a5ca1f872b3f6192a/markdown-3.8-py3-none-any.whl- - pypi: https://files.pythonhosted.org/packages/d0/ef/c5422ce8af73928d194a6606f8ae36e93a52fd5e8df5abd366903a5ca8da/msgspec-0.19.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl+ - pypi: https://files.pythonhosted.org/packages/03/13/d7f707a92fce3cfbb5095dea81c94e26fee3fa57a761f396bb1cee6c54a0/msgspec_m-0.19.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl- pypi: https://files.pythonhosted.org/packages/50/3b/0e2c535c3e6970cfc5763b67f6cc31accaab35a7aa3e322fb6a12830450f/narwhals-2.6.0-py3-none-any.whl- pypi: https://files.pythonhosted.org/packages/c6/ac/dac4a63f978e4dcb3c6d3a78c4d8e0192a113d288502a1216950c41b1027/parso-0.8.4-py2.py3-none-any.whl- pypi: https://files.pythonhosted.org/packages/bf/b9/b0eb3f3cbcb734d930fdf839431606844a825b23eaf9a6ab371edac8162c/psutil-7.0.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl@@ -208,7 +208,7 @@ environments:- pypi: https://files.pythonhosted.org/packages/c0/5a/9cac0c82afec3d09ccd97c8b6502d48f165f9124db81b4bcb90b4af974ee/jedi-0.19.2-py2.py3-none-any.whl- pypi: https://files.pythonhosted.org/packages/32/ee/7e042a13e93f09c24618dc804f01849735d81740f8b74827124ff7fc8396/loro-1.5.0-cp312-cp312-macosx_11_0_arm64.whl- pypi: https://files.pythonhosted.org/packages/3f/08/83871f3c50fc983b88547c196d11cf8c3340e37c32d2e9d6152abe2c61f7/Markdown-3.7-py3-none-any.whl- - pypi: https://files.pythonhosted.org/packages/89/b0/1b9763938cfae12acf14b682fcf05c92855974d921a5a985ecc197d1c672/msgspec-0.19.0-cp312-cp312-macosx_11_0_arm64.whl+ - pypi: https://files.pythonhosted.org/packages/dc/0e/d6ace44429887a0a8381fbc887dc59061e5f96be8a64ba7ed60d6d581330/msgspec_m-0.19.1-cp312-cp312-macosx_11_0_arm64.whl- pypi: https://files.pythonhosted.org/packages/7d/81/1cf7a468ef2f8e88266d5c3e5ab026a045aa76150e6640bfe9c5450a8c11/narwhals-2.3.0-py3-none-any.whl- pypi: https://files.pythonhosted.org/packages/c6/ac/dac4a63f978e4dcb3c6d3a78c4d8e0192a113d288502a1216950c41b1027/parso-0.8.4-py2.py3-none-any.whl- pypi: https://files.pythonhosted.org/packages/04/8b/30f930733afe425e3cbfc0e1468a30a18942350c1a8816acfade80c005c4/psutil-7.0.0-cp36-abi3-macosx_11_0_arm64.whl@@ -1101,7 +1101,7 @@ packages:- pypi: ./name: marimoversion: 0.16.5- sha256: 00660bfd80ed86fe2742590ac0f59cbd50d764290e29293c6a16beb233d9632b+ sha256: e4c4bc12febc3a8a910657fc38ab6d6bc3c9421af1f8acaa717d601e863d7700requires_dist:- click>=8.0,<9- jedi>=0.18.0@@ -1120,7 +1120,7 @@ packages:- itsdangerous>=2.0.0- narwhals>=2.0.0- packaging- - msgspec>=0.19.0+ - msgspec-m>=0.19.1- duckdb>=1.0.0 ; extra == 'sql'- polars[pyarrow]>=1.9.0 ; extra == 'sql'- sqlglot[rs]>=26.2.0 ; extra == 'sql'@@ -1211,10 +1211,10 @@ packages:- pkg:pypi/more-itertools?source=hash-mappingsize: 61359timestamp: 1745349566387-- pypi: https://files.pythonhosted.org/packages/89/b0/1b9763938cfae12acf14b682fcf05c92855974d921a5a985ecc197d1c672/msgspec-0.19.0-cp312-cp312-macosx_11_0_arm64.whl- name: msgspec- version: 0.19.0- sha256: 43bbb237feab761b815ed9df43b266114203f53596f9b6e6f00ebd79d178cdf2+- pypi: https://files.pythonhosted.org/packages/03/13/d7f707a92fce3cfbb5095dea81c94e26fee3fa57a761f396bb1cee6c54a0/msgspec_m-0.19.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl+ name: msgspec-m+ version: 0.19.1+ sha256: 1912ad1ab6ab2e29a63ebe22277b60d6da78466d16b2c8300294fd25471cb528requires_dist:- pyyaml ; extra == 'yaml'- tomli ; python_full_version < '3.11' and extra == 'toml'@@ -1248,10 +1248,10 @@ packages:- tomli ; python_full_version < '3.11' and extra == 'dev'- tomli-w ; extra == 'dev'requires_python: '>=3.9'-- pypi: https://files.pythonhosted.org/packages/d0/ef/c5422ce8af73928d194a6606f8ae36e93a52fd5e8df5abd366903a5ca8da/msgspec-0.19.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl- name: msgspec- version: 0.19.0- sha256: d911c442571605e17658ca2b416fd8579c5050ac9adc5e00c2cb3126c97f73bc+- pypi: https://files.pythonhosted.org/packages/dc/0e/d6ace44429887a0a8381fbc887dc59061e5f96be8a64ba7ed60d6d581330/msgspec_m-0.19.1-cp312-cp312-macosx_11_0_arm64.whl+ name: msgspec-m+ version: 0.19.1+ sha256: 073df7c7dac9137bd2e6511e65a029dff5f2252dc35d22b225f8150f89f20708requires_dist:- pyyaml ; extra == 'yaml'- tomli ; python_full_version < '3.11' and extra == 'toml'diff --git a/pyproject.toml b/pyproject.tomlindex 322676522e..6432f61090 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -49,7 +49,7 @@ dependencies = ["narwhals>=2.0.0",# for packaging.version; not sure what the lower bound is."packaging",- "msgspec>=0.19.0",+ "msgspec_m>=0.19.1",]readme = "README.md"license = { file = "LICENSE" }diff --git a/tests/_messaging/test_messaging_errors.py b/tests/_messaging/test_messaging_errors.pyindex ca3633339a..450b6cc45e 100644--- a/tests/_messaging/test_messaging_errors.py+++ b/tests/_messaging/test_messaging_errors.py@@ -1,7 +1,7 @@# Copyright 2024 Marimo. All rights reserved.from __future__ import annotations-import msgspec+import msgspec_m as msgspecfrom marimo._messaging.errors import (CycleError,diff --git a/tests/_messaging/test_serde.py b/tests/_messaging/test_serde.pyindex 807031c661..dc12e5dcfd 100644--- a/tests/_messaging/test_serde.py+++ b/tests/_messaging/test_serde.py@@ -3,7 +3,7 @@ from __future__ import annotationsimport json-import msgspec+import msgspec_m as msgspecimport pytestfrom marimo._messaging.ops import (diff --git a/tests/_server/api/endpoints/test_files.py b/tests/_server/api/endpoints/test_files.pyindex 7233356907..08f1c50f1b 100644--- a/tests/_server/api/endpoints/test_files.py+++ b/tests/_server/api/endpoints/test_files.py@@ -8,7 +8,7 @@ from pathlib import Pathfrom typing import TYPE_CHECKINGfrom unittest.mock import Mock, patch-import msgspec+import msgspec_m as msgspecimport pytestfrom marimo._utils.platform import is_windowsdiff --git a/tests/_server/api/endpoints/test_packages.py b/tests/_server/api/endpoints/test_packages.pyindex 43278d842a..49bc6aa440 100644--- a/tests/_server/api/endpoints/test_packages.py+++ b/tests/_server/api/endpoints/test_packages.py@@ -4,7 +4,7 @@ from __future__ import annotationsfrom typing import TYPE_CHECKING, Anyfrom unittest.mock import AsyncMock, MagicMock, patch-import msgspec+import msgspec_m as msgspecimport pytestfrom marimo._runtime.packages.package_manager import PackageManagerdiff --git a/tests/_server/test_errors.py b/tests/_server/test_errors.pyindex a635381e08..589e55b065 100644--- a/tests/_server/test_errors.py+++ b/tests/_server/test_errors.py@@ -2,7 +2,7 @@ from __future__ import annotationsfrom unittest.mock import MagicMock, patch-import msgspec+import msgspec_m as msgspecfrom starlette.exceptions import HTTPExceptionfrom starlette.requests import Requestdiff --git a/tests/_utils/snapshots/complex_project_tree_from_raw.json b/tests/_utils/snapshots/complex_project_tree_from_raw.jsonindex fa5d884df8..5d9dad386f 100644--- a/tests/_utils/snapshots/complex_project_tree_from_raw.json+++ b/tests/_utils/snapshots/complex_project_tree_from_raw.json@@ -322,7 +322,7 @@},{"name": "h11",- "version": "0.0.0",+ "version": "0.16.0","tags": [],"dependencies": []}diff --git a/tests/_utils/test_msgspec_basestruct.py b/tests/_utils/test_msgspec_basestruct.pyindex 5c51c46322..c4c4ee4d50 100644--- a/tests/_utils/test_msgspec_basestruct.py+++ b/tests/_utils/test_msgspec_basestruct.py@@ -1,6 +1,6 @@import typing as t-import msgspec+import msgspec_m as msgspecfrom marimo._ai._tools.tools.cells import (GetCellRuntimeDataArgs,diff --git a/tests/_utils/test_parse_dataclass.py b/tests/_utils/test_parse_dataclass.pyindex a50aab3ce0..8169111345 100644--- a/tests/_utils/test_parse_dataclass.py+++ b/tests/_utils/test_parse_dataclass.py@@ -17,7 +17,7 @@ from typing import (Union,)-import msgspec+import msgspec_m as msgspecimport pytestfrom marimo._config.config import ExperimentalConfigTypediff --git a/tests/utils.py b/tests/utils.pyindex ce09a724e2..8b5758fca3 100644--- a/tests/utils.py+++ b/tests/utils.py@@ -12,7 +12,7 @@ from marimo._utils.parse_dataclass import parse_rawif TYPE_CHECKING:from typing import Callable- import msgspec+ import msgspec_m as msgspecdef try_assert_n_times(n: int, assert_fn: Callable[[], None]) -> None: