Skip to content

Stop converting timestamp to dt.datetime (leave as bintime) #82

@mjohanse-emr

Description

@mjohanse-emr

Tech Debt

For now, I am having to convert a bintime.DateTime to datetime.datetime to get around a mypy error with the named Timing constructor methods.

C:\dev\nipanel-python>poetry run mypy
src\nipanel\converters\protobuf_types.py:121: error: Argument "timestamp" to "Timing" has incompatible type "DateTime"; expected "datetime | None"  [arg-type]
Found 1 error in 1 file (checked 28 source files)

See this PR comment thread:
#75 (comment)

AB#3168483

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech debtNon-user-visible improvement to code or development process

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions