summaryrefslogtreecommitdiff
path: root/astroid/brain/brain_numpy.py
Commit message (Collapse)AuthorAgeFilesLines
* Rename brain_numpy module and associated unit test modulehippo912019-04-201-151/+0
|
* Correct prototypes of 3 dunder methods.hippo912019-04-201-3/+3
|
* Correctiong missing default valuehippo912019-04-061-1/+1
|
* Finalizing description of numpy.ndarrayhippo912019-04-061-56/+55
|
* Finish the split of the numpy brain. Implements all the dunder methods for ↵hippo912019-04-021-459/+48
| | | | ndarray
* Split the brain_numpy modules in smaller ones for clarity.hippo912019-03-311-32/+4
|
* Add of __getitem__ and __setitem__ methods in ndarray. Correct signature of ↵hippo912019-03-301-1/+5
| | | | setitem method. Add of empty_like, ones_like function
* Add a definition for randint function. Move definition of class ndarray from ↵hippo912019-03-231-94/+95
| | | | numpy_core_numerictypes_transform function to infer_numpy_ndarray which is used a inference_tip. Add a _looks_like_numpy_ndarray function. Deletion of the register_transform for linspace function because it is correctly inferred with the inference_tip function for ndarray
* Merge branch 'master' into bug_pylint_2721hippo912019-03-161-249/+249
|\
| * Replace `any` with `uninferable` when returning values from `numpy` transformClaudiu Popa2019-03-041-249/+249
| | | | | | | | | | | | | | | | | | | | | | Turns out that this was conflicting with the `any` builtin, while the original intention was to return a value that cannot be inferred, until we have support for types. This should fix a couple of false positives on pylint's side where the return value of numpy functions was considered to be itself a function. Close PyCQA/pylint#2784
* | Add transforms to define return type of numpy.zeros_like et numpy.linspace ↵hippo912019-02-261-13/+24
| | | | | | | | functions
* | Removing declaration of zeros_like (pass). Filtering tuple and list from ↵hippo912019-02-261-1/+12
| | | | | | | | types inferred by call to full_like and ones_like
* | Goes back to pass instead of return any for randint function. Declare ↵hippo912019-02-261-1/+8
|/ | | | zeros_like function (pass) and filter tuple for type inferred for a call to zeros_like
* Format according to Blackhippo912019-02-091-6/+14
|
* Refactoring to code DRYhippo912019-02-031-20/+28
|
* Adding support for unary operators for numpy ndarray and numbers. Adding ↵hippo912019-02-031-1/+54
| | | | hook to filter results of infer_call_result from list and tuples for function array and linspace
* Remove inadvertent returns from class bodiesClaudiu Popa2019-01-271-26/+26
|
* ``brain_numpy`` returns an undefined type for ``numpy`` methods to avoid ↵Claudiu Popa2019-01-251-272/+272
| | | | | | | | ``assignment-from-no-retur n`` Close PyCQA/pylint#2694
* Initial formatting of astroidClaudiu Popa2018-10-021-23/+39
|
* Update the copyright noticesastroid-2.0Claudiu Popa2018-07-151-1/+3
|
* Reworking astroid numpy brain (#561)hippo912018-06-251-88/+232
| | | | | | Complete refoundation of the numpy_core_numerictypes_transform method thanks to a deep analysis of the numpy.core.numerictpyes module. The generated hierarchy of classes is closer to the real one.
* Enrichmend of the unittest to check if methods of the numpy types are ↵hippo912018-06-061-0/+1
| | | | correctly detected
* Setting up the numpy.string_ methods signaturehippo912018-06-061-24/+24
|
* Taking into account specific numpy types more preciselyhippo912018-06-061-23/+155
|
* Add brain tip for numpy.sum. Close PyCQA/pylint#1558Claudiu Popa2018-04-051-0/+9
|
* Enhancement of numpy brain to add missing types defined in ↵hippo912018-01-301-0/+33
| | | | numpy.core.numerictypes + add of corresponding unittest
* Introduction of numpy.random.mtrand functions signatures inside numpy brain ↵hippo912017-11-111-38/+53
| | | | + add of a dedicated unit test
* Introduction of numpy.core.umath functions signatures inside numpy brain + ↵hippo912017-11-111-18/+88
| | | | add of a dedicated unit test
* Expose more objects in numpy brain tiphippo912017-09-211-1/+17
|
* Even more granular copyrights (thanks to copyrite)Claudiu Popa2016-07-221-2/+2
|
* Keep a consistent copyright notice across the board.Claudiu Popa2016-07-191-0/+2
|
* Remove superfluous boilerplate the first regex missedCeridwen2016-05-171-17/+0
|
* Convert all files to new license headerCeridwen2016-05-161-0/+3
|
* Rename the brain files again to avoid naming conflicts.Claudiu Popa2015-10-281-0/+62