One-line docstring should fit on one line with quotes
112
113
114class LocalSource(pilmoji.source.BaseSource):
115 """116 emoji本地源基类
117 """
118
One-line docstring should fit on one line with quotes
159 """
160
161 def __init__(self, init: str = None, proxy=None):
162 """163 构造函数中,如果init不为none,则提供下载emoji资源包的url地址
164 """
165 self.savepath = "./resources/emoji/twemoji.zip"
Description
If a docstring fits in a single line (72 characters according to PEP8), it is recommended to have the quotes on the same line.
Bad practice
def foo():
"""
Runs bar and returns baz.
"""
baz = bar()
return baz
Recommended
def foo():
"""Runs bar and returns baz."""
baz = bar()
return baz