Pylint-字符串语句没有效果(毫无意义的弦乐)DOC字符串

发布于 2025-02-13 18:38:41 字数 524 浏览 0 评论 0原文

请告知如何修复皮层抱怨。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

长安忆 2025-02-20 18:38:41

当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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文