Skip to content

DataclassReader cannot read datetime.time fields #60

@ytausch

Description

@ytausch

When attempting to read a datetime.time field with DataclassReader, I get the following error:

name 'datetime' is not defined. Did you forget to import 'datetime'?

which is raised here:

self.type_hints = typing.get_type_hints(cls)

I think dataclass-csv should support parsing datetime.time fields out of the box.

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