-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Soft-deprecate mutation_aspect=None. #17750
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
CI doesn't think it's so simple... |
Looks like this exposed another bug, namely |
da57be3
to
034d313
Compare
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.
Anyone can merge on green.
Might be worth adding a and != 1
to the if condition to avoid doing some non-productive work?
Which if? |
I wouldn't bother (as usual, unless one shows a real-world case where this is the bottleneck), the cost should typically be negligible compare to the actual transmutation... |
mutation_aspect=1 is a synonym that's just simpler and consistent with other scalar values. Not really worth a proper deprecation; just changing the defaults in the signatures and normalizing None to 1 in the getter. Also fixes 2 bugs exposed on this code path.
@timhoffm The one at 2889 the determines if we go into "actually do the scaling" code path. |
mutation_aspect=1 is a synonym that's just simpler and consistent with
other scalar values.
Not really worth a proper deprecation; just changing the defaults in the
signatures and normalizing None to 1 in the getter.
PR Summary
PR Checklist