Skip to content

ci: bump mypy to 2.1.0, pyrefly to 1.0#3639

Merged
MarcoGorelli merged 7 commits into
narwhals-dev:mainfrom
MarcoGorelli:bump-mypy
May 19, 2026
Merged

ci: bump mypy to 2.1.0, pyrefly to 1.0#3639
MarcoGorelli merged 7 commits into
narwhals-dev:mainfrom
MarcoGorelli:bump-mypy

Conversation

@MarcoGorelli
Copy link
Copy Markdown
Member

Description

What type of PR is this? (check all applicable)

  • 💾 Refactor
  • ✨ Feature
  • 🐛 Bug Fix
  • 🔧 Optimization
  • 📝 Documentation
  • ✅ Test
  • 🐳 Other

Related issues

  • Related issue #<issue number>
  • Closes #<issue number>

Checklist

  • Code follows style guide (ruff)
  • Tests added
  • Documented the changes

Comment thread src/narwhals/_compliant/dataframe.py Outdated
@MarcoGorelli MarcoGorelli marked this pull request as ready for review May 18, 2026 13:55
@dangotbanned dangotbanned self-requested a review May 18, 2026 17:27
Copy link
Copy Markdown
Member

@dangotbanned dangotbanned left a comment

Choose a reason for hiding this comment

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

Thanks for getting the ball rolling on this @MarcoGorelli.
Not sure I had it in me, personally, to take that leap 😅

hang in there


This is kind of a meta-comment, but AFAICT, your solution to every new diagnostic was cast or # type: ignore?

I would much prefer to use those sparingly and aim to solve some of these guys when possible 🙂

Comment thread pyproject.toml
Comment thread src/narwhals/_arrow/series.py Outdated
Comment thread src/narwhals/_compliant/dataframe.py Outdated
Comment thread src/narwhals/_compliant/dataframe.py Outdated
Comment thread src/narwhals/_compliant/series.py
Comment thread src/narwhals/_pandas_like/dataframe.py
Comment thread src/narwhals/_polars/namespace.py Outdated
Comment thread src/narwhals/_compliant/group_by.py Outdated
Comment thread tests/v1_test.py
Comment thread src/narwhals/_arrow/dataframe.py Outdated
@MarcoGorelli MarcoGorelli changed the title ci: bump internal mypy version ci: bump mypy to 2.1.0, pyrefly to 1.0 May 19, 2026
Comment thread pyproject.toml
Copy link
Copy Markdown
Member

@dangotbanned dangotbanned left a comment

Choose a reason for hiding this comment

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

Thanks @MarcoGorelli, looking great 😍

idek man

@MarcoGorelli
Copy link
Copy Markdown
Member Author

thanks for your review!

@MarcoGorelli MarcoGorelli merged commit de72f35 into narwhals-dev:main May 19, 2026
37 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants