-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Method overwrite warning when building sysimg #27053
Comments
The background is that we're exploiting #9498 to do dispatch on keyword arguments: the "user-facing" method is Lines 125 to 126 in a0b1e98
which, depending on the arguments, will eventually call round(x,r) without keyword arguments.
To avoid recursive calls we also define a generic error: Line 135 in a0b1e98
which triggers the redefinition warning. Unfortunately, I don't see a nice way to do it that doesn't trigger it. Any ideas? |
Since we have
it looks to me like it's never valid to be in the keyword arg definition with |
No that is valid: the intention is that each number type defines their own Lines 358 to 365 in a0b1e98
|
Ah, I misunderstood what you meant. That should work, thanks! |
Fix method overwrite warning in `round` Fixes #27053
Touched in #26670 cc @simonbyrne
The text was updated successfully, but these errors were encountered: