pylint icon indicating copy to clipboard operation
pylint copied to clipboard

time.sleep false negative!

Open socketpair opened this issue 1 year ago • 2 comments

Bug description

from time import time

time.sleep(1)

Configuration

No response

Command used

pylint qwe.py

Pylint output

************* Module qwe
qwe.py:1:0: C0114: Missing module docstring (missing-module-docstring)

------------------------------------------------------------------
Your code has been rated at 5.00/10 (previous run: 5.00/10, +0.00)

Expected behavior

Report obvious error. time.time.sleep doesn't exist. time.sleep does.

Pylint version

pylint 2.13.7
astroid 2.11.6
Python 3.10.5 (main, Jun  9 2022, 00:00:00) [GCC 12.1.1 20220507 (Red Hat 12.1.1-1)]

OS / Environment

Fedra 36

Additional dependencies

No response

socketpair avatar Aug 06 '22 09:08 socketpair

Thank you for opening the issue I can reproduce on the latest main. This require investigation, and probably some knowledge in astroid.

Pierre-Sassoulas avatar Aug 06 '22 11:08 Pierre-Sassoulas

pylint 3.0.4
astroid 3.0.3
Python 3.12.2 (main, Feb 21 2024, 00:00:00) [GCC 13.2.1 20231205 (Red Hat 13.2.1-6)]

Still actual

socketpair avatar Mar 21 '24 16:03 socketpair