Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove deprecated nw.from_native(..., strict=True) #3811

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

dangotbanned
Copy link
Member

Spotted during an upstream integration test

IIRC, I added strict before it was deprecated to help match an @overload.
Since then, the @overload definitions in narwhals have improved - meaning the default doesn't need to be passed in for us to get it typing correctly

Related

Spotted during an upstream integration test
- narwhals-dev/narwhals#2110 (comment)

IIRC, I added `strict` before it was [deprecated](https://narwhals-dev.github.io/narwhals/backcompat/#breaking-changes-carried-out-so-far) to help match an `@overload`.
Since then, the `@overload` definitions in `narwhals` have improved - meaning the default **doesn't** need to be passed in for us to get it typing correctly

# Related
- #3693
- narwhals-dev/narwhals#2110
@dangotbanned dangotbanned marked this pull request as ready for review February 27, 2025 14:07
@dangotbanned dangotbanned enabled auto-merge (squash) February 27, 2025 14:07
@dangotbanned dangotbanned merged commit c0956c5 into main Feb 27, 2025
25 checks passed
@dangotbanned dangotbanned deleted the nw-from-native-pass-through branch February 27, 2025 14:25
dangotbanned added a commit that referenced this pull request Feb 28, 2025
Have a better understanding *now* of what the issue is in (https://github.com/narwhals-dev/narwhals/actions/runs/13577097131/job/37955718895).

- This patch is *functionally* the same - but removes the need for ignoring a (typing) warning following (narwhals-dev/narwhals@62f8a1f).
- Should also mean we don't need to bump our `narwhals` minimum [again](#3807 (comment)).
- **Bonus**: reduced overhead for `<3.11` (python/cpython#84403)

## Related
- narwhals-dev/narwhals#2110
- #3811
- narwhals-dev/narwhals#2110 (comment)
- narwhals-dev/narwhals#2110 (comment)
- narwhals-dev/narwhals#2111
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.

1 participant