Skip to content

Commit

Permalink
fix mypy typing on optional times
Browse files Browse the repository at this point in the history
  • Loading branch information
richardjgowers committed Jun 30, 2023
1 parent daf6d84 commit 980b812
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gufe/protocols/protocolunit.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ def ok() -> bool:
return True

@property
def start_time(self) -> datetime.datetime:
def start_time(self) -> Optional[datetime.datetime]:
"""The time execution of this Unit began"""
return self._start_time

@property
def end_time(self) -> datetime.datetime:
def end_time(self) -> Optional[datetime.datetime]:
"""The time at which execution of this Unit finished"""
return self._end_time

Expand Down

0 comments on commit 980b812

Please sign in to comment.