nteract/papermill
Literal annotation results in unrecognized parameter
Aperta
#906 aperta il 10 ago 2026
bughelp wanted
Metriche repository
- Star
- (5381 stelle)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
🐛 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"