Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive no-value-for-parameter for Qt methods #6464

Closed
jacobtylerwalls opened this issue Apr 26, 2022 · 0 comments · Fixed by pylint-dev/astroid#1531
Closed

False positive no-value-for-parameter for Qt methods #6464

jacobtylerwalls opened this issue Apr 26, 2022 · 0 comments · Fixed by pylint-dev/astroid#1531
Assignees
Labels
Astroid Related to astroid Bug 🪲 False Positive 🦟 A message is emitted but nothing is wrong with the code
Milestone

Comments

@jacobtylerwalls
Copy link
Member

Bug description

Reproducer thx to @The-Compiler

from PyQt5.QtCore import QTimer
timer = QTimer()
timer.timeout.connect(lambda: None)

Configuration

--extension-pkg-whitelist=PyQt5

Command used

pylint a.py --extension-pkg-whitelist=PyQt5

Pylint output

a.py:4:0: C0305: Trailing newlines (trailing-newlines)
a.py:1:0: C0114: Missing module docstring (missing-module-docstring)
a.py:3:0: E1120: No value for argument 'slot' in method call (no-value-for-parameter)

Expected behavior

a.py:4:0: C0305: Trailing newlines (trailing-newlines)
a.py:1:0: C0114: Missing module docstring (missing-module-docstring)

Pylint version

2.14 dev, essentially since astroid changes in https://github.com/PyCQA/astroid/pull/1505

OS / Environment

No response

Additional dependencies

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Astroid Related to astroid Bug 🪲 False Positive 🦟 A message is emitted but nothing is wrong with the code
Projects
None yet
1 participant