One-line docstring should fit on one line with quotes
161 """
162
163 def __init__(self, init: str = None, proxy=None):
164 """165 构造函数中,如果init不为none,则提供下载emoji资源包的url地址
166 """
167 self.savepath = './resources/emoji/twemoji.zip'
One-line docstring should fit on one line with quotes
112
113
114class LocalSource(pilmoji.source.BaseSource):
115 """116 emoji本地源基类
117 """
118
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