Skip to content

Commit

Permalink
Fix docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Oct 18, 2023
1 parent 4e4c276 commit 4b9349d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nautilus_trader/core/datetime.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,12 @@ cpdef dt_to_unix_nanos(dt: pd.Timestamp):
Parameters
----------
dt : pd.Timestamp, optional
dt : pd.Timestamp
The datetime to convert.
Returns
-------
uint64_t or ``None``
uint64_t
Warnings
--------
Expand All @@ -209,7 +209,7 @@ cpdef maybe_unix_nanos_to_dt(nanos):
"""
Return the datetime (UTC) from the given UNIX time (nanoseconds), or ``None``.
If nanos is ``None``, then will return None.
If nanos is ``None``, then will return ``None``.
Parameters
----------
Expand All @@ -231,7 +231,7 @@ cpdef maybe_dt_to_unix_nanos(dt: pd.Timestamp):
"""
Return the UNIX time (nanoseconds) from the given datetime, or ``None``.
If dt is ``None``, then will return None.
If dt is ``None``, then will return ``None``.
Parameters
----------
Expand Down

0 comments on commit 4b9349d

Please sign in to comment.