Skip to content

Commit

Permalink
conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
rancomp committed Oct 28, 2023
1 parent ec2876a commit ef91ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-polars/polars/utils/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def _negate_duration(duration: str) -> str:
return f"-{duration}"


def _datetime_to_pl_timestamp(dt: datetime, time_unit: TimeUnit) -> int:
def _datetime_to_pl_timestamp(dt: datetime, time_unit: TimeUnit | None) -> int:
"""Convert a python datetime to a timestamp in given time unit."""
if dt.tzinfo is None:
# Make sure to use UTC rather than system time zone.
Expand Down

0 comments on commit ef91ad4

Please sign in to comment.