nteract/papermill

Literal annotation results in unrecognized parameter

オープン

#906 opened on 2026/08/10

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Python (402 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (5,381 個のスター)
PR merge metrics
 (30d に merged 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"

コントリビューターガイド