-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
AttributeError: 'Slice' object has no attribute 'name' when a slice is used as a class decorator #10334
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
Comments
Note that >>> slice(-2)()
Traceback (most recent call last):
File "<python-input-1>", line 1, in <module>
slice(-2)()
~~~~~~~~~^^
TypeError: 'slice' object is not callable |
Pierre-Sassoulas
added a commit
to Pierre-Sassoulas/pylint
that referenced
this issue
Apr 23, 2025
Pierre-Sassoulas
added a commit
to Pierre-Sassoulas/pylint
that referenced
this issue
Apr 23, 2025
Closes pylint-dev#10334 Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
Pierre-Sassoulas
pushed a commit
to Pierre-Sassoulas/pylint
that referenced
this issue
Apr 23, 2025
Pierre-Sassoulas
added a commit
to Pierre-Sassoulas/pylint
that referenced
this issue
Apr 23, 2025
Closes pylint-dev#10334 Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
Pierre-Sassoulas
added a commit
to Pierre-Sassoulas/pylint
that referenced
this issue
Apr 23, 2025
Closes pylint-dev#10334 Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
While triaging pylint-dev/astroid#2721, I triggered an
AttributeError
in Pylint:Here's a similar issue that was fixed: #8067
Configuration
Command used
Pylint output
Expected behavior
No crash
Pylint version
pylint: 70559b8
astroid: pylint-dev/astroid@ce81c290efa
Python 3.13.2
OS / Environment
Arch Linux
Additional dependencies
The text was updated successfully, but these errors were encountered: