We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Starting with pylint 3.2, I get not-an-iterable and unsubscriptable-object for the return value of matplotlib.widgets.CheckButtons.get_status().
not-an-iterable
unsubscriptable-object
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
pylint a.py
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)
no diagnostics, like in 3.1
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)]
windows
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
No branches or pull requests
Bug description
Starting with pylint 3.2, I get
not-an-iterable
andunsubscriptable-object
for the return value ofmatplotlib.widgets.CheckButtons.get_status()
.Code:
Command used
Pylint output
Expected behavior
no diagnostics, like in 3.1
Pylint version
OS / Environment
windows
The text was updated successfully, but these errors were encountered: