PEP257 D212和D213冲突?

2024-04-25 22:14:57 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试在python文件之上的docstrings上使用prospector。在

下面是我的docstring示例:

"""item_exporters.py contains Scrapy item exporters.

Once you have scraped your items, you often want to persist or export those items, to use the data in some other
application. That is, after all, the whole purpose of the scraping process.

For this purpose Scrapy provides a collection of Item Exporters for different output formats, such as XML, CSV or JSON.

More Info:
    https://doc.scrapy.org/en/latest/topics/exporters.html

"""

它的问题是:

^{pr2}$

因此,我将第一行向下移动,它将从第二行开始:

"""
item_exporters.py contains Scrapy item exporters.

Once you have scraped your items, you often want to persist or export those items, to use the data in some other
application. That is, after all, the whole purpose of the scraping process.

For this purpose Scrapy provides a collection of Item Exporters for different output formats, such as XML, CSV or JSON.

More Info:
    https://doc.scrapy.org/en/latest/topics/exporters.html

"""

如果我再次运行prospector,我将得到D212作为一个错误。在

pep257: D212 / Multi-line docstring summary should start at the first line

D212和D213有问题吗?在


Tags: orofthetopyyouitemsitem