提交 ec55fa86 编写于 作者: HansBug's avatar HansBug 😆

fix(hansbug): try fix the bug in docs when __doc__ is None

上级 5581556c
......@@ -6,8 +6,8 @@ __all__ = [
]
def _strip_lines(doc: str):
_lines = doc.strip().splitlines()
def _strip_lines(doc: Optional[str]):
_lines = (doc or '').strip().splitlines()
_exist_lines = list(filter(str.strip, _lines))
if not _exist_lines:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册