Skip to content

Invalid type for datetime fields of LabelRowV2 instance after labels initialisation #597

@gfringeli

Description

@gfringeli

After initialising labels of a LabelRowV2 instance using its initialise_labels method the fields created_at and last_edited_at are of type str instead of datetime.
Looks there is a missing conversion to datetime of the str timestamps in _parse_label_row_dict

created_at=label_row_dict["created_at"],

PS: It also seems like the str timestamp used in the code location above does not contain subsecond information, i.e. no millisecond data. However, when obtaining an already initialised label from Encord, the datetime fields do contain millisecond data.

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