Skip to content

[BUG] dcc.Input types don't support time and datetime-local #3385

@nhoover

Description

@nhoover
dash                      3.2.0
dash_ag_grid              31.3.1
dash-bootstrap-components 2.0.3
dash_daq                  0.6.0

Describe the bug

When creating a valid dcc.Input like this:

dcc.Input(id=id_, type='time', step=1, value='00:00:00')

I get a warning in Pycharm: Expected type 'Literal["text", "number", "password", "email", "range", "search", "tel", "url", "hidden"] | None', got 'Literal['time']' instead

Expected behavior

There should be no warning.

The same goes for type='datetime-local'.

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