From 4b9349da3be8851ca738aafcabb81271dd5a17f1 Mon Sep 17 00:00:00 2001 From: Chris Sellers Date: Wed, 18 Oct 2023 15:49:28 +1100 Subject: [PATCH] Fix docstrings --- nautilus_trader/core/datetime.pyx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nautilus_trader/core/datetime.pyx b/nautilus_trader/core/datetime.pyx index 63d296dd688e..cc4688dd83f2 100644 --- a/nautilus_trader/core/datetime.pyx +++ b/nautilus_trader/core/datetime.pyx @@ -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 -------- @@ -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 ---------- @@ -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 ----------