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.

fix: use TypeVar for Cls in class_definition (#6364)

Andrew Glicked127a2cf4ee
diff --git a/marimo/_ast/app.py b/marimo/_ast/app.py
index e16c73d923..d3f46eb678 100644
--- a/marimo/_ast/app.py
+++ b/marimo/_ast/app.py
@@ -77,7 +77,7 @@ if TYPE_CHECKING:
P = ParamSpec("P")
R = TypeVar("R")
Fn: TypeAlias = Callable[P, R]
-Cls: TypeAlias = type
+Cls = TypeVar("Cls", bound=type)
LOGGER = _loggers.marimo_logger()