Skip to content

Conversation

@dangotbanned
Copy link
Member

@dangotbanned dangotbanned commented Aug 24, 2025

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

  • πŸ’Ύ Refactor
  • ✨ Feature
  • πŸ› Bug Fix
  • πŸ”§ Optimization
  • πŸ“ Documentation
  • βœ… Test
  • 🐳 Other

Related issues

Checklist

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

If you have comments or can explain your changes, please do so below

I have no idea what to title this PR πŸ˜‚

During another PR I noticed some strange typing that I think was masking the problems resolved recently in the from_native overloads.

So, I've removed/corrected some annotations that had Frame or IntoSeries.

Important

We should not need to annotate inline when handling the return of a narwhals function
That indicates an issue with our typing to fix

Fixed during the series of PRs that ended at #2944
- Each was only ever a single type
- The remaining one in `dtypes_test` is still helpful, since we assign multiple times using incompatible nominal types
@dangotbanned dangotbanned marked this pull request as ready for review August 24, 2025 11:38
Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

@dangotbanned dangotbanned changed the title test(typing): Avoid masking fixed overloads? test(typing): Avoid masking fixed overloads Aug 24, 2025
@dangotbanned dangotbanned merged commit 17cf983 into main Aug 24, 2025
33 of 35 checks passed
@dangotbanned dangotbanned deleted the test-typing-unmask branch August 24, 2025 12:02
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.

3 participants