Skip to content

build: remove unused nptyping dependency and pin numpy 2.1.3 (#91) - #92

Merged
tombonfert merged 1 commit into
mainfrom
build/numpy2_compatibility
Sep 4, 2026
Merged

build: remove unused nptyping dependency and pin numpy 2.1.3 (#91)#92
tombonfert merged 1 commit into
mainfrom
build/numpy2_compatibility

Conversation

@tombonfert

@tombonfert tombonfert commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

What

Removes the nptyping==2.5.0 dependency and pins numpy==2.1.3 in the local-dev extras.

Why

nptyping was declared but never imported (the code already uses stdlib numpy.typing), and it capped numpy at <2.0.0, blocking numpy 2.x. Removing it unblocks numpy 2.x compatibility (closes #91).

numpy is pinned to 2.1.3 to match Databricks Serverless environment version 4, which also ships the pandas 2.2.3, pyarrow 19.0.1, and scipy 1.15.1 versions already pinned in local-dev. This keeps local and CI testing aligned with the numpy the runtime actually ships.

Changes

  • pyproject.toml: drop nptyping==2.5.0 from base deps, add numpy==2.1.3 to local-dev
  • uv.lock: regenerated (numpy 1.26.4 to 2.1.3, nptyping removed)

Test Plan

  • Unit tests added/updated
  • Manual testing completed
  • Documentation updated (if applicable)

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • No new linter warnings introduced

@tombonfert
tombonfert requested a review from a team as a code owner September 3, 2026 21:11
@codecov

codecov Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.37%. Comparing base (02ca24e) to head (90c3e72).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #92   +/-   ##
=======================================
  Coverage   89.37%   89.37%           
=======================================
  Files          62       62           
  Lines        5544     5544           
  Branches      680      680           
=======================================
  Hits         4955     4955           
  Misses        466      466           
  Partials      123      123           
Flag Coverage Δ
query_engine 85.83% <ø> (ø)
reporting 94.25% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@tombonfert
tombonfert merged commit 437eb4b into main Sep 4, 2026
6 checks passed
@tombonfert
tombonfert deleted the build/numpy2_compatibility branch September 4, 2026 06:45
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.

Remove nptyping From Project Dependency

1 participant