Skip to content

A variable annotated with 'date' is not compatible with a value of type 'datetime'. #2487

@mvaled

Description

@mvaled

datetime is a subclass of date. In the stubs of 'datetime' there's the following TODO:

class datetime:
    # TODO: Is a subclass of date, but this would make some types incompatible.

Is there any record of the incompatibilities? Should we keep an issue open to address this TODO eventually?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions