Skip to content

In CLI entry points, type of default value should match type annotation #220

@lpsinger

Description

@lpsinger

For example, in this code:

time_step: Annotated[
u.Quantity[u.physical.time],
typer.Option(
parser=u.Quantity,
help="Time step for evaluating field of regard",
),
] = "1 min",

The default value should be 900 * u.s, not "900 s".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions