How to prevent python pylint complaining about socket class sendall method

后端 未结 2 1502
有刺的猬
有刺的猬 2021-02-20 18:08

I have a bit of code using a simple tcp socket setup to test something. We run pylint --errors-only on our python files, generally as a way to validate all our code

2条回答
  •  自闭症患者
    2021-02-20 18:47

    using the trick defined in http://www.logilab.org/blogentry/78354, we could start adding to pylint a generic astng plugin that would help him to understand such things from the stdlib (there is also various tickets/comments about hashlib in the tracker).

    That would be a great improvment indeed. Any volunteer ? :)

    Beside this, I don't think there is other options than disabling the message.

提交回复
热议问题