Skip to content

E1111 false positive with pathlib.Path.readlink() #11114

Description

@rompe

Bug description

When assigning the result of readlink() to a variable, Pylint logs a false E1111 (assignment-from-no-return) positive. In reality, readlink() returns a pathlib.Path object.

pylint-E1111-false-positive.py :

import pathlib

path = pathlib.Path("test.txt")
result = path.readlink()

Configuration

Command used

pylint --disable all --enable E1111 pylint-E1111-false-positive.py

Pylint output

************* Module pylint-E1111-false-positive
pylint-E1111-false-positive.py:4:0: E1111: Assigning result of a function call, where the function has no return (assignment-from-no-return)

Expected behavior

No warning would be expected.

Pylint version

pylint 4.0.6
astroid 4.0.4
Python 3.14.0rc3 (main, Sep 18 2025, 19:45:57) [MSC v.1944 64 bit (AMD64)]

OS / Environment

  • RedHat 9 with Python 3.14.6
  • Windows 11 with Python 3.14.0rc3

Additional dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions