summaryrefslogtreecommitdiff
path: root/astroid/brain/brain_numpy_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Add missing copyright annotations for the past releasesClaudiu Popa2020-04-271-1/+2
|
* Add a call to register_transform for each numpy function in case the current ↵hippo912020-01-051-2/+10
| | | | | | | | | | | | node is an astroid.Name instance The problem was that astroid could not infer the result of a call to `numpy.append` because this function calls the `concatenate` function. This last function is inferred thanks to the `brain_numpy_core_multiarray` module but only when the corresponding node is an `astroid.Attribute` (for example numpy.concatenate). It turns out that in the source of the append function the node that realises the call to concatenate is a `astroid.Name`. Thus the correction proposed here is to register the concatenate inference tip function in order to apply it, also, to `astroid.Name`. Close #666
* Make sure that node.expr points to a Name before calling looks_like_numpy_memberClaudiu Popa2019-06-201-0/+1
|
* Avoid use of inference engine before it is fully set up. Add docstringshippo912019-05-251-2/+34
|
* Corrects the way a numpy member is identifiedhippo912019-04-261-1/+1
|
* Refomat according to blackhippo912019-04-211-3/+5
|
* Factorize functions inference systemhippo912019-04-201-0/+21