Skip to content

Commit

Permalink
fix type mismatch on assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
mzuzek committed Oct 6, 2023
1 parent 916b3e7 commit ea23a2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/io/excel/_odfreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ def _get_cell_value(self, cell) -> Scalar | NaTType:
cell_value = cell.attributes.get((OFFICENS, "date-value"))
return pd.Timestamp(cell_value)
elif cell_type == "time":
cell_value = self._get_cell_time_value(cell)
stamp = self._get_cell_time_value(cell)
# cast needed here because Scalar doesn't include datetime.time
return cast(Scalar, cell_value)
return cast(Scalar, stamp)
else:
self.close()
raise ValueError(f"Unrecognized type {cell_type}")
Expand Down

0 comments on commit ea23a2e

Please sign in to comment.