Pylint-字符串语句没有效果(毫无意义的弦乐)DOC字符串
请告知如何修复皮层抱怨。
Pylint抱怨字符串语句没有效果(毫无意义的串联词)
对于模块文件顶部的DOC字符串。
"""Utilities for the online realtime model serving.
Consider the latency of the serving response
"""
如果将其删除,请抱怨1,0:缺少模块DocString(缺少模块 - 模块)
。
环境
$ python --version
Python 3.7.9
$ pylint --version
pylint 2.14.4
astroid 2.11.6
Python 3.7.9 (v3.7.9:13c94747c7, Aug 15 2020, 01:31:08)
[Clang 6.0 (clang-600.0.57)]
$ pip install pylint --upgrade
No update occurs
Please advise how to fix the pylint complaining.
pylint complains String statement has no effect (pointless-string-statement)
for the doc string at the top of the module file.
"""Utilities for the online realtime model serving.
Consider the latency of the serving response
"""
If removed it, then complain 1, 0: Missing module docstring (missing-module-docstring)
.
Environment
$ python --version
Python 3.7.9
$ pylint --version
pylint 2.14.4
astroid 2.11.6
Python 3.7.9 (v3.7.9:13c94747c7, Aug 15 2020, 01:31:08)
[Clang 6.0 (clang-600.0.57)]
$ pip install pylint --upgrade
No update occurs
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当docstring低于进口时,我遇到了这个问题。当我将其放在导入上方时,
Pylint
很高兴。您的文件在哪里?
I've had this problem, when the docstring was below the imports. When I put it above the imports, below the license header,
pylint
was happy.Where is it in your file?