def convert(self, value: str, param: Optional[click.core.Parameter], ctx: Optional[click.core.Context]) -> Union[(int, NotSet)]:
    if (value == 'None'):
        return not_set
    try:
        int(value)
        return super().convert(value, param, ctx)
    except ValueError:
        self.fail(('%s is not a valid integer or None' % value), param, ctx)
def convert(self, value: str, param: Optional[click.core.Parameter], ctx: Optional[click.core.Context]) -> Union[(int, NotSet)]:
    if (value == 'None'):
        return not_set
    try:
        int(value)
        return super().convert(value, param, ctx)
    except ValueError:
        self.fail(('%s is not a valid integer or None' % value), param, ctx)