nteract/papermill

Literal annotation results in unrecognized parameter

Aberta

#906 aberto em 10 de ago. de 2026

 (3 comentários) (0 reação) (0 responsável)Python (402 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (5.381 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

🐛 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"

Guia do colaborador