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

Regression(3.2): matplotlib.widgets.CheckButtons.get_status() is no longer recognized as a list #9629

Closed
sam-s opened this issue May 15, 2024 · 1 comment
Labels
Duplicate 🐫 Duplicate of an already existing issue

Comments

@sam-s
Copy link

sam-s commented May 15, 2024

Bug description

Starting with pylint 3.2, I get not-an-iterable and unsubscriptable-object for the return value of matplotlib.widgets.CheckButtons.get_status().

Code:

"https://github.com/pylint-dev/pylint/issues/9629"

import matplotlib.pyplot as plt
from matplotlib.widgets import CheckButtons

_figure, axes = plt.subplots()
buttons = CheckButtons(axes, ["a","b"])
print("".join(f"_{v}" for v in buttons.get_status()))  # not-an-iterable
print(buttons.get_status()[0])                         # unsubscriptable-object

Command used

pylint a.py

Pylint output

a.py:8:31: E1133: Non-iterable value buttons.get_status() is used in an iterating context (not-an-iterable)
a.py:9:6: E1136: Value 'buttons.get_status()' is unsubscriptable (unsubscriptable-object)

Expected behavior

no diagnostics, like in 3.1

Pylint version

pylint 3.2.0
astroid 3.2.0
Python 3.12.1 | packaged by conda-forge | (main, Dec 23 2023, 07:53:56) [MSC v.1937 64 bit (AMD64)]

OS / Environment

windows

@sam-s sam-s added the Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling label May 15, 2024
@jacobtylerwalls
Copy link
Member

Thanks for the report. Duplicate of #9626. I'll update the title to make that more clear.

Stay tuned for a patch release of pylint in the next few days.

@jacobtylerwalls jacobtylerwalls closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
@jacobtylerwalls jacobtylerwalls added Duplicate 🐫 Duplicate of an already existing issue and removed Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate 🐫 Duplicate of an already existing issue
Projects
None yet
Development

No branches or pull requests

2 participants