Skip to content

Commit fa7e465

Browse files
committed
fix pytest
1 parent cb5d44a commit fa7e465

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pandas/_libs/tslibs/nattype.pyx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ cdef class _NaT(datetime):
183183
return np.datetime64(NPY_NAT, 'ns')
184184

185185
def to_datetime64(self):
186-
""" Returns a numpy.datetime64 object with 'ns' precision """
186+
"""
187+
Return a numpy.datetime64 object with 'ns' precision.
188+
"""
187189
return np.datetime64('NaT', 'ns')
188190

189191
def __repr__(self):
@@ -448,7 +450,7 @@ class NaTType(_NaT):
448450
"""
449451
Timestamp.now(tz=None)
450452
451-
Returns new Timestamp object representing current time local to
453+
Return new Timestamp object representing current time local to
452454
tz.
453455
454456
Parameters

pandas/_libs/tslibs/timestamps.pyx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,9 @@ cdef class _Timestamp(datetime):
340340
self.microsecond, self.tzinfo)
341341

342342
cpdef to_datetime64(self):
343-
""" Returns a numpy.datetime64 object with 'ns' precision """
343+
"""
344+
Return a numpy.datetime64 object with 'ns' precision.
345+
"""
344346
return np.datetime64(self.value, 'ns')
345347

346348
def __add__(self, other):

0 commit comments

Comments
 (0)