最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Pylint is ignoring disable flag - Stack Overflow

programmeradmin0浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论