def source(self):
"""Return the source code for the definition."""
full_src = self._source[self._slice]
def is_empty_or_comment(line):
return line.strip() == '' or line.strip().startswith('#')
filtered_src = dropwhile(is_empty_or_comment, reversed(full_src))
return ''.join(reversed(list(filtered_src)))
flake8_rst_docstrings.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录