Skip to content

Bump pandas-stubs from 2.3.3.260113 to 3.0.0.260204#273

Draft
cyiallou wants to merge 2 commits intofrequenz-floss:v0.x.xfrom
cyiallou:chore/pandas-stubs
Draft

Bump pandas-stubs from 2.3.3.260113 to 3.0.0.260204#273
cyiallou wants to merge 2 commits intofrequenz-floss:v0.x.xfrom
cyiallou:chore/pandas-stubs

Conversation

@cyiallou
Copy link
Contributor

@cyiallou cyiallou commented Mar 2, 2026

No description provided.

cyiallou added 2 commits March 2, 2026 10:28
Signed-off-by: cyiallou - Costas <42914163+cyiallou@users.noreply.github.com>
Signed-off-by: cyiallou - Costas <42914163+cyiallou@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 2, 2026 09:54
@cyiallou cyiallou requested a review from a team as a code owner March 2, 2026 09:54
@cyiallou cyiallou added the cmd:skip-release-notes It is not necessary to update release notes for this PR label Mar 2, 2026
@cyiallou cyiallou requested review from malteschaaf and removed request for a team March 2, 2026 09:54
@github-actions github-actions bot added the part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) label Mar 2, 2026
@cyiallou cyiallou enabled auto-merge March 2, 2026 09:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project’s mypy typing dependencies to use the latest pandas-stubs, and removes now-unnecessary casting in the solar maintenance data processing code to match updated pandas typing behavior.

Changes:

  • Bump pandas-stubs from 2.3.3.260113 to 3.0.0.260204 in the dev-mypy extra.
  • Remove an explicit cast() workaround around Series.diff() results in preprocess_data().

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/frequenz/lib/notebooks/solar/maintenance/data_processing.py Removes an explicit cast now that pandas-stubs typing better supports .diff() + .dt.
pyproject.toml Updates dev-mypy to pin pandas-stubs to the newer version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

dev-mypy = [
"mypy == 1.19.1",
"pandas-stubs == 2.3.3.260113",
"pandas-stubs == 3.0.0.260204",
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The runtime dependency pins pandas to < 3 (see [project].dependencies), but dev-mypy now pins pandas-stubs to 3.0.0.... Please confirm this major-version mismatch is intentional and compatible; otherwise align pandas-stubs with the supported pandas major version (or update the pandas runtime pin accordingly) to avoid incorrect type-checking assumptions.

Suggested change
"pandas-stubs == 3.0.0.260204",
"pandas-stubs < 3",

Copilot uses AI. Check for mistakes.
@cyiallou cyiallou disabled auto-merge March 2, 2026 09:58
@cyiallou cyiallou marked this pull request as draft March 2, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd:skip-release-notes It is not necessary to update release notes for this PR part:tooling Affects the development tooling (CI, deployment, dependency management, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants