__init__.py 文件源码

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

项目:kino-bot 作者: DongjunLee 项目源码 文件源码
def tag(self, *tags):
        """
        Tags the job with one or more unique indentifiers.

        Tags must be hashable. Duplicate tags are discarded.

        :param tags: A unique list of ``Hashable`` tags.
        :return: The invoked job instance
        """
        if any([not isinstance(tag, collections.Hashable) for tag in tags]):
            raise TypeError('Every tag should be hashable')

        if not all(isinstance(tag, collections.Hashable) for tag in tags):
            raise TypeError('Tags must be hashable')
        self.tags.update(tags)
        return self
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号