python - Pylint is ignoring disable flag - Stack Overflow

I am running into an issue with pylint and lambda functions. To ignore the error I am using:some_thing

I am running into an issue with pylint and lambda functions. To ignore the error I am using:

some_thing = lambda ... # pylint: disable=E731

I have also tried:

# pylint: disable=E731
some_thing = lambda ....
# pylint: disable=E731

Running my pipeline I have tried:

pylint:
 script:   ... pylint --disable=E731

When it runs the check is not being disabled.

There is no config file. It is all handled inline. But when run I am getting E731 do not assign a lambda expression, use a def.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745080655a4610105.html

相关推荐

  • python - Pylint is ignoring disable flag - Stack Overflow

    I am running into an issue with pylint and lambda functions. To ignore the error I am using:some_thing

    12小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信