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

unbalanced-tuple-unpacking false positive with statistics.quantiles #10317

Open
jamesbraza opened this issue Mar 27, 2025 · 0 comments
Open

unbalanced-tuple-unpacking false positive with statistics.quantiles #10317

jamesbraza opened this issue Mar 27, 2025 · 0 comments
Labels
False Positive 🦟 A message is emitted but nothing is wrong with the code Needs investigation 🔬 A bug or crash where it's not immediately obvious what is happenning

Comments

@jamesbraza
Copy link

Bug description

import statistics

q1, q2, q3 = statistics.quantiles(list(range(100)), n=4)
print(q1, q2, q3)

Configuration

Command used

pylint a.py

Pylint output

************* Module a
a.py:3:0: W0632: Possible unbalanced tuple unpacking with sequence defined at line 849 of statistics: left side has 3 labels, right side has 0 values (unbalanced-tuple-unpacking)

Expected behavior

No warning from pylint here

Pylint version

pylint 3.3.5
astroid 3.3.9
Python 3.12.8 (main, Jan 28 2025, 10:06:03) [Clang 16.0.0 (clang-1600.0.26.4)]

OS / Environment

macOS Sequoia version 15.3.2

Additional dependencies

@jamesbraza jamesbraza added the Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling label Mar 27, 2025
@Pierre-Sassoulas Pierre-Sassoulas added Needs investigation 🔬 A bug or crash where it's not immediately obvious what is happenning False Positive 🦟 A message is emitted but nothing is wrong with the code and removed Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling labels Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
False Positive 🦟 A message is emitted but nothing is wrong with the code Needs investigation 🔬 A bug or crash where it's not immediately obvious what is happenning
Projects
None yet
Development

No branches or pull requests

2 participants