-
-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a call to register_transform for each numpy function in case the …
…current 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
- Loading branch information
1 parent
67321ee
commit 59f0be7
Showing
3 changed files
with
21 additions
and
2 deletions.
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
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
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