nteract/papermill

Literal annotation results in unrecognized parameter

开放

#906 创建于 2026年8月10日

 (3 条评论) (0 个反应) (0 位负责人)Python (402 个派生)batch import
bughelp wanted

仓库指标

星标
 (5,381 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

🐛 Bug

Papermill 2.7.0

Tagging a cell as parameters and inserting the following definition results in Papermill complaining about unknown parameter if swallow is passed using parameters (CLI argument or keyword argument to execute()):

# previous cell: from typing import Literal
swallow: Literal["african", "european", "unknown"] = "unknown"

This works:

swallow: str = "unknown"

贡献者指南