-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
REF: axis in [...]
becomes _get_axis_number(axis)
in Styler
#43121
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - I must have missed this one. small comment.
Co-authored-by: attack68 <[email protected]>
I think it was added after you made the changes. Happy to contribute! |
LGTM pending green tests |
This gets a mypy error. Not sure why, I think its a curious case of ordering the conditional and it breaks. I've seen this before. See if you can fix it. Failing that can always try adding |
isn't this because |
Yes good spot. Not sure why mypy didn't complain on previous implementation... |
I think it's because |
I think it's because of the change in the ordering of the conditional statements. Earlier the first assignment of
So one solution would be to change the ordering of the conditional statements again. Or I could annotate the type of |
I would attempt to correct any annotations that might be wrong, its a cleaner and more transparent approach |
The problem is that Otherwise, I think the only annotation which could be changed would be of |
lets see how #43148 works in the CI (continuous integration tests). You might be able to merge/update your PR after that |
#43148 seems to have passed the tests. Once it is merged I'll update this PR and hopefully it will work. |
@yashbg that PR should be merged, just waiting on its review, but it passes all tests and is green. You can add it here if you like. Either this will then be merged with changes and I close the other, or mine is merged first and when you pull you have same changes so no problems. |
It has been merged. So I'll pull those changes and update my PR. |
The checks seem to have passed. Now the remaining workflows need approval. |
All the checks have finally passed. I think it can be merged now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@attack68 could you please review the changes you had requested in the beginning? Then I think the PR can be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. thx
…as-dev#43121) * Use _get_axis_number() in _apply() * Update _apply() Co-authored-by: attack68 <[email protected]> Co-authored-by: attack68 <[email protected]>
_get_axis_number
instead ofif axis in [...]
: #43048