Skip to content

Conversation

@schmidma
Copy link

@schmidma schmidma commented Sep 1, 2025

Summary

This PR fixes a type annotation issue with Polars selectors.
Polars introduced a new Selector class. As a result, the current import of _selector_proxy_ in great-tables fails when using at least version 1.32.0 of Polars.

Without this change, type-checking great-tables with recent Polars versions fails due to missing _selector_proxy_.

Changes

  • Replaced _selector_proxy_ with Selector
  • Updated type alias: PlSelectExpr = Selector

Notes

  • This is a type-checking only change; no runtime behavior is affected.
  • Verified with latest Polars release where Selector is available.

Related GitHub Issues and PRs

Checklist

Polars replaced `_selector_proxy_` with a public `Selector` class (pola-rs/polars#23351). This caused type checking imports to fail. This updates the type annotation import and alias accordingly.
@codecov
Copy link

codecov bot commented Sep 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.45%. Comparing base (654757a) to head (24dcd96).

Additional details and impacted files
@@ Coverage Diff @@ ## main #770 +/- ## ======================================= Coverage 91.45% 91.45% ======================================= Files 47 47 Lines 5558 5558 ======================================= Hits 5083 5083 Misses 475 475 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
@jrycw
Copy link
Collaborator

jrycw commented Sep 3, 2025

@rich-iannone and @machow, perhaps we should use a try-import here to handle the compatibility issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants