Skip to content

fix(pkg-py): add minimum narwhals version constraint (>=2.2.0)#218

Merged
cpsievert merged 1 commit intomainfrom
fix/narwhals-minimum-version
Apr 15, 2026
Merged

fix(pkg-py): add minimum narwhals version constraint (>=2.2.0)#218
cpsievert merged 1 commit intomainfrom
fix/narwhals-minimum-version

Conversation

@cpsievert
Copy link
Copy Markdown
Contributor

@cpsievert cpsievert commented Apr 15, 2026

Summary

  • querychat imports IntoLazyFrameT from narwhals.stable.v1.typing, which was introduced in narwhals 2.2.0
  • Without a lower bound on the narwhals dependency, resolvers can pick older versions (e.g. 1.40.0) that don't export this type, causing ImportError at runtime
  • Adds narwhals>=2.2.0 to the project dependencies

querychat imports `IntoLazyFrameT` from `narwhals.stable.v1.typing`,
which was introduced in narwhals 2.2.0. Without a lower bound, resolvers
can pick older versions that don't export this type, causing ImportError
at runtime.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cpsievert cpsievert changed the title fix: add minimum narwhals version constraint (>=2.2.0) fix(pkg-py): add minimum narwhals version constraint (>=2.2.0) Apr 15, 2026
@cpsievert cpsievert merged commit ac25ab5 into main Apr 15, 2026
6 checks passed
@cpsievert cpsievert deleted the fix/narwhals-minimum-version branch April 15, 2026 16:38
cpsievert added a commit that referenced this pull request Apr 16, 2026
Integrate main's deferred client initialization (#207) and narwhals
version constraint (#218) with the ggsql visualization feature branch.
Extended _create_session_client with visualize_query parameter and
updated stub session test to match eager client construction.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant