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.

types: pin narwhals in typecheck (#6155)

Myles Scolnickf9570c646c6f
diff --git a/pyproject.toml b/pyproject.toml
index 54427d755f..958b074fc5 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -169,7 +169,8 @@ dependencies = [
"leafmap~=0.39.2",
"panel~=1.5.3",
"polars~=1.9.0",
- "narwhals>=1.12.0",
+ # Types in 2.2.0 don't work great with mypy
+ "narwhals>=1.12.0, <2.2.0",
"matplotlib>=3.8.0",
"sqlglot>=23.4",
"sqlalchemy>=2.0.40",