_object.py 文件源码

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

项目:uhu 作者: updatehub 项目源码 文件源码
def __init__(self, option):
        if option.choices:
            type_ = click.Choice(option.choices)
        elif option.min is not None or option.max is not None:
            type_ = click.IntRange(min=option.min, max=option.max)
        else:
            type_ = TYPES[option.type_name]
        super().__init__(
            param_decls=option.cli, help=option.help,
            default=None, type=type_)
        self.metadata = option.metadata
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号