-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
Numpy reshape shape to use * #1999
base: main
Are you sure you want to change the base?
Conversation
I'm not really sure a unit test is needed here but if it does please let me know and hit to where it should be. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1999 +/- ##
=======================================
Coverage 92.77% 92.77%
=======================================
Files 94 94
Lines 10931 10931
=======================================
Hits 10141 10141
Misses 790 790
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -120,7 +120,7 @@ def ptp(self, axis=None, out=None): return np.ndarray([0, 0]) | |||
def put(self, indices, values, mode='raise'): return None | |||
def ravel(self, order='C'): return np.ndarray([0, 0]) | |||
def repeat(self, repeats, axis=None): return np.ndarray([0, 0]) | |||
def reshape(self, shape, order='C'): return np.ndarray([0, 0]) | |||
def reshape(self, *shape, order='C'): return np.ndarray([0, 0]) |
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.
The actual code is a bit different.. I'm not sure how to express this as it feels like we might run into issues with the other form as well..
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.
We install numpy during tests now, so it's possible to add automated tests for this (the example in the description at least).
Type of Changes
Description
Closes pylint-dev/pylint#7883
Pylint issue demonstrates a FP. I think this is the right solution, I also tested with this code and made sure pylint no longer showed the messages.