-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
shifting operators are being interpreted as pointless statements #2584
Comments
@feluelle Thanks for creating a question. RIght, that is definitely suggesting to me a code smell, special properties such as |
Thank you for your opinion on this. :) |
Resurfacing an old issue, but what's the recommended approach here? We're also trying to use pylint in our airflow deployment, but it's very cumbersome to put @feluelle what did you end up doing here? Is there pylint extension that we can use? @PCManticore Or perhaps a way to disable this specific warning in a specific directory, or only for Airflow task objects or something? |
I don't think there is much more you can do then disable this for projects that use |
Unfortunate, since we use a monorepo which means this is an all-or-nothing situation, and the I think the #618 |
Hey @martimlobao, sorry but I also don't have a better idea. We moved away from using pylint at some point. |
Question
Hey,
I was wondering why the
>>
operator is interpreted as pointless statement.For example when I do something like
a >> b
, the__rshift__
function froma
will be called and if this function does change some kind of external state it is not a pointless statement.Is it a bad practice to change an external state in
__rshift__
or why is it being interpreted asW0104: Statement seems to have no effect (pointless-statement)
?I am asking this because I am currently using apache-airflow and in Airflow it is recommended to use the
>>
operator to declare graph dependencies.I do not want to put
# pylint: disable=pointless-statement
before each of those kind of statements.It would be nice if I could somehow tell my pylintrc to only disable pointless statement for the bitshifting operator. Is this possible? Or what would you recommend me to do?
The text was updated successfully, but these errors were encountered: