-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
AttributeError: 'Attribute' object has no attribute 'name' #7380
Comments
Note that the error in the OP doesn't actually reproduce. The post before the edit does provide the necessary info though. @itttgg As I had to dive into your codebase to find the issue I had a look around. I noticed that you use For the issue reported I have pushed a fix! |
I thought that |
No problem, just thought I'd let you know. A year ago I had never even heard of Python typing. We're all just learning about it 😄 |
I mean, is there a difference? |
Between |
Yes |
Yeah! For example: def func(x: int) -> None:
print(x)
x = x + 1
print(x)
def func_two(x: int) -> NoReturn:
print(x)
raise ValueError
func()
func_two() With the following code, |
Ok i'm fix this error in my code |
Sorry @DanielNoord, I was the one who did the edit. I was trying to bisect the file to get to the minimum reproducer, and I guess I made a mistake somewhere. |
Bug description
Linting:
pylint crashed with a
AstroidError
and with the following stacktrace:Expected behavior
No crash.
Pylint version
OS / Environment
ubuntu-latest
The text was updated successfully, but these errors were encountered: