Skip to content

pylint no longer detects numpy ufunc methods #2885

@wshanks

Description

@wshanks

Steps to reproduce

Run pylint on the following file with numpy=1.16.2 in the environment:

import numpy as np np.logical_or.reduce([0, 0, 0]) 

Current behavior

This error is generated:

E1101: Function 'logical_or' has no 'reduce' member (no-member) 

Expected behavior

No error.

Notes

It seems like there were some major changes in numpy 1.16.2 which have caused issues like #2839 and #2721. I tried using the version of astroid in this PR which is supposed to address #2721 but I still get the same error: pylint-dev/astroid#664

pylint --version output

pylint 2.3.1
astroid 2.2.5
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions