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"

貢獻者指南