Skip to content

False Positive "no member" with numpy finfo #10838

@sam-s

Description

@sam-s

Bug description

"https://github.com/pylint-dev/pylint/issues/10838"
import numpy as np
print(np.finfo(1.0).eps)

Command used

pylint pylint-10838.py

Pylint output

pylint-10838.py:3:6: E1101: Instance of 'finfo' has no 'eps' member (no-member)

Expected behavior

no diagnostics.
the code runs as expected, printing 2.220446049250313e-16

Pylint version

pylint 4.0.4
astroid 4.0.3
Python 3.14.2 (tags/v3.14.2:df79316, Dec  5 2025, 17:18:21) [MSC v.1944 64 bit (AMD64)]

OS / Environment

windows

Additional dependencies

numpy==2.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs triage 📥Just created, needs acknowledgment, triage, and proper labelling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions