-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
Bug pylint 2721 #664
Merged
Merged
Bug pylint 2721 #664
Changes from 42 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
b0ad5a1
Goes back to pass instead of return any for randint function. Declare…
hippo91 919f938
Removing declaration of zeros_like (pass). Filtering tuple and list f…
hippo91 0e142fe
Add transforms to define return type of numpy.zeros_like et numpy.lin…
hippo91 0f7d210
Add a test to ensure that numpy functions calls are infered as numpy …
hippo91 9714e3b
Merge branch 'master' into bug_pylint_2721
hippo91 35baf16
Merge branch 'master' into bug_pylint_2721
hippo91 effaf55
Add a definition for randint function. Move definition of class ndarr…
hippo91 83aa30f
Correcting inference test. linspace and zeros_like are inferred as '.…
hippo91 3e7aef9
Merge branch 'master' into bug_pylint_2721
hippo91 d7c0373
Add of __getitem__ and __setitem__ methods in ndarray. Correct signat…
hippo91 d6f1fe1
Split the brain_numpy modules in smaller ones for clarity.
hippo91 81b70ed
Test the unicity of inferred value for function returning ndarray.
hippo91 c5687bc
Remove test_numpy_function_calls_not_inferred_as_* methods because th…
hippo91 c5d9205
Finish the split of the numpy brain. Implements all the dunder method…
hippo91 b7e42aa
Merge branch 'master' into bug_pylint_2721
hippo91 19f9f27
Finalizing description of numpy.ndarray
hippo91 86ffb90
Correctiong missing default value
hippo91 be16e43
Deleting test about __inv__ method which doesn't exists in ndarray
hippo91 181c83e
Split the unittest_brain_numpy module in parts so that each brain_num…
hippo91 6be0cda
Changes uninferable return toward correct ones
hippo91 ecb4fbd
Split the unittest_brain_numpy
hippo91 0e0edeb
Check that functions return a ndarray
hippo91 2aba1f9
Split the unittest_brain_numpy module
hippo91 2308d93
Reformat
hippo91 27a9d33
Add logspace et geomspace functions
hippo91 ee0db7f
Typo.
hippo91 8718254
Add a unittest dedicated to the numpy_core_fromnumeric brain
hippo91 5869ac5
Merge branch 'master' into bug_pylint_2721
hippo91 0401d81
Correct prototypes of 3 dunder methods.
hippo91 cee9012
Refactor in order to test the methods of ndarray
hippo91 264a547
Rename brain_numpy module and associated unit test module
hippo91 257c78b
Add the tests concerning ndarray classic methods
hippo91 bef091d
Add .python-version file and .vscode directory
hippo91 c1679a6
Add the __init__ method for datetime64and timedelta64
hippo91 c10320b
Add the function numpy.empty
hippo91 d05ff50
Add definition for numpy.ones and numpy.zeros functions
hippo91 42ce258
Reformat for easier new function introduction
hippo91 585e118
Factorize functions inference system
hippo91 7d5ae0d
Refactor to make the introduction of new functions easier
hippo91 4ab338e
Refomat according to black
hippo91 ee3d323
Corrects the way a numpy member is identified
hippo91 4ad2fd1
Add the references to pylint bugs corrected
hippo91 5646dd8
Merge branch 'master' into bug_pylint_2721
hippo91 0a81846
Merge branch 'bug_pylint_2721' of https://github.com/hippo91/astroid …
hippo91 442dcae
Deleting personal setup
hippo91 c2bb4f6
Avoid use of inference engine before it is fully set up. Add docstrings
hippo91 f8d12d2
Deleting useless subTest mock for python version prior to 3.4
hippo91 40a7ee9
Merge branch 'master' into bug_pylint_2721
hippo91 f818d1a
Merge branch 'master' into bug_pylint_2721
PCManticore File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,6 @@ astroid.egg-info/ | |
.cache/ | ||
.eggs/ | ||
.pytest_cache/ | ||
.python-version | ||
.vscode/ | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,24 @@ What's New in astroid 2.3.0? | |
============================ | ||
Release Date: TBA | ||
|
||
* Numpy brain support is improved. | ||
Numpy's fondamental type ``numpy.ndarray`` has its own brain : ``brain_numpy_ndarray`` and | ||
each numpy module that necessitates brain action has now its own numpy brain : | ||
|
||
- ``numpy.core.numeric`` | ||
- ``numpy.core.function_base`` | ||
- ``numpy.core.multiarray`` | ||
- ``numpy.core.numeric`` | ||
- ``numpy.core.numerictypes`` | ||
- ``numpy.core.umath`` | ||
- ``numpy.random.mtrand`` | ||
|
||
Close PyCQA/pylint2865 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's a nice set of closed issues! |
||
Close PyCQA/pylint2747 | ||
Close PyCQA/pylint2721 | ||
Close PyCQA/pylint2326 | ||
Close PyCQA/pylint2021 | ||
|
||
* Drop a superfluous and wrong callcontext when inferring the result of a context manager | ||
|
||
Close PyCQA/pylint#2859 | ||
|
Oops, something went wrong.
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.
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.
@hippo91 These should go into your global gitignore, as they are specific to tools you use on your dev environment rather than specific to tools used by the project itself.
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.
Yes ! Off-course.