-
Notifications
You must be signed in to change notification settings - Fork 165
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
pylint
is confused about optional prog
?
#436
Comments
And there's a problem with the latest variant of calling
On contrary, |
The optional
P.S. If I had decided to make |
Thank you for the answer. I'll go for sprinkling the ignore hints for
|
There's enough code out there depending on drgn helpers that I try not to change the helper APIs. I've hesitated on bumping to 1.0.0 since I'm still planning on breaking/changing some of the more advanced program APIs (e.g. for #332). |
Hello.
Not sure if it is a
pylint
issue, or there's an issue withdrgn
type annotations, so please feel free to bounce me off in case it's the former.Given this code:
running
pylint
on it results in:I thought it was optional? This is what documentation says:
But lets provide it anyway:
Now, this results in:
OK, now checking how
for_each_mount()
is declared:Lets provide
ns
too:Now
pylint
is silent.Am I missing something, or there's a problem with how
for_each_mount()
is declared? Or this is justpylint
being unable to parse this complexity?Thank you.
The text was updated successfully, but these errors were encountered: