refactor(typing): make _evaluate_output_names generic#2053
Merged
MarcoGorelli merged 3 commits intomainfrom Feb 22, 2025
Merged
refactor(typing): make _evaluate_output_names generic#2053MarcoGorelli merged 3 commits intomainfrom
_evaluate_output_names generic#2053MarcoGorelli merged 3 commits intomainfrom
Conversation
dangotbanned
commented
Feb 20, 2025
Comment on lines
-40
to
-42
| ArrowOrPandasLikeExpr = TypeVar( | ||
| "ArrowOrPandasLikeExpr", bound=Union[ArrowExpr, PandasLikeExpr] | ||
| ) |
Member
Author
There was a problem hiding this comment.
I was playing around with fixing the ignores - noticed this was unused
dangotbanned
commented
Feb 21, 2025
dangotbanned
added a commit
that referenced
this pull request
Feb 22, 2025
Typing correctly will require (#2053), so leaving it out for now
69b81e7 to
07c6e6e
Compare
Member
Author
Thanks @MarcoGorelli! I botched the git history in at least 3 different ways on this PR 😅 |
dangotbanned
added a commit
that referenced
this pull request
Feb 23, 2025
Missed this part during #2053
10 tasks
MarcoGorelli
pushed a commit
that referenced
this pull request
Feb 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What type of PR is this? (check all applicable)
Related issues
pyrightto ci #2035 (comment)CompliantSelector#2064Checklist
If you have comments or can explain your changes, please do so below
Follow up to (#2035), with a change that solves the last 10 errors.
Important
The commit history wasn't clean
PR branched
b26c94c(#2035)As mentioned in (#2035 (comment)), there are some similar changes in
reuse-sub-protocolsThat branch will need some tweaks after this, but it will also benefit - as it currently types this as
Anyto avoid the same error:narwhals/narwhals/_protocols.py
Lines 53 to 66 in 0abb3d3
In (#2064), I've been using the aliases (
EvalSeries,EvalNames) which I think give a huge boost to readability:narwhals/narwhals/_selectors.py
Lines 42 to 51 in e6f2d07
vs
main:narwhals/narwhals/typing.py
Lines 80 to 90 in b03f716