Skip to content

"E1101: Module 'numpy' has no 'float_power' member (no-member)" #3319

@texadactyl

Description

@texadactyl

Step 1 to reproduce

Create source file essai.py:

"""
power versus float_power
"""
import numpy as np

XX1 = np.power(np.pi, 2)
XX2 = np.float_power(np.pi, 2)
print(XX1, XX2)

Step 2 to reproduce

pylint  essai.py

Current behavior

essai.py:7:6: E1101: Module 'numpy' has no 'float_power' member (no-member)

Expected behavior

No diagnostic messages. I believe that pylint misdiagnoses the XX2 assignment. There is, indeed, a float_power function in numpy.

pylint --version output

pylint 2.4.4
astroid 2.3.3
Python 3.7.3 | packaged by conda-forge | (default, Dec  6 2019, 08:54:18) 
[GCC 7.3.0]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions