Skip to content

Literal annotation results in unrecognized parameter#906

Description

@tvoipio

馃悰 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"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions