__init__.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:rscfl 作者: lc525 项目源码 文件源码
def handle_signature(self, sig, signode):
        cache = _APP_CACHES.get(self.env.app, {})
        key = CursorKind.VAR_DECL, (sig, )
        if key in cache:
            node, comment, start, end, _ = cache[key]
            signode += addnodes.desc_type(node.type.spelling, node.type.spelling + ' ')
            signode += addnodes.desc_name(node.spelling, node.spelling)

            self.content = ViewList()
            for lineno, line in enumerate(comment.splitlines(), start[0]):
                self.content.append(line, '<unknown>', lineno)
        return sig
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号