Skip to content

Commit 63fc472

Browse files
committed
Fix E501 line too long cython-lint
1 parent 899ec56 commit 63fc472

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

pandas/_libs/tslibs/nattype.pyx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,8 @@ class NaTType(_NaT):
609609
610610
See Also
611611
--------
612-
datetime.datetime.utctimetuple : Return UTC time tuple, compatible with time.localtime().
612+
datetime.datetime.utctimetuple :
613+
Return UTC time tuple, compatible with time.localtime().
613614
Timestamp.timetuple : Return time tuple of local time.
614615
time.struct_time : Time tuple structure used by time functions.
615616
@@ -639,7 +640,8 @@ class NaTType(_NaT):
639640
640641
See Also
641642
--------
642-
datetime.datetime.utcoffset : Standard library method to get the UTC offset of a datetime object.
643+
datetime.datetime.utcoffset :
644+
Standard library method to get the UTC offset of a datetime object.
643645
Timestamp.tzname : Return the name of the timezone.
644646
Timestamp.dst : Return the daylight saving time (DST) adjustment.
645647

pandas/_libs/tslibs/timestamps.pyx

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,20 @@ cdef class _Timestamp(ABCTimestamp):
256256

257257
This property returns a string representing the time unit of the Timestamp's
258258
resolution. It corresponds to the smallest time unit that can be represented
259-
by this Timestamp object. The possible values are 's' (second), 'ms' (millisecond),
260-
'us' (microsecond), and 'ns' (nanosecond).
259+
by this Timestamp object. The possible values are:
260+
- 's' (second)
261+
- 'ms' (millisecond)
262+
- 'us' (microsecond)
263+
- 'ns' (nanosecond)
261264

262265
Returns
263266
-------
264267
str
265268
A string abbreviation of the Timestamp's resolution unit:
266-
's' for second, 'ms' for millisecond, 'us' for microsecond, or 'ns' for nanosecond.
269+
- 's' for second
270+
- 'ms' for millisecond
271+
- 'us' for microsecond
272+
- 'ns' for nanosecond
267273

268274
See Also
269275
--------
@@ -1798,7 +1804,8 @@ class Timestamp(_Timestamp):
17981804
17991805
See Also
18001806
--------
1801-
datetime.datetime.utcoffset : Standard library method to get the UTC offset of a datetime object.
1807+
datetime.datetime.utcoffset :
1808+
Standard library method to get the UTC offset of a datetime object.
18021809
Timestamp.tzname : Return the name of the timezone.
18031810
Timestamp.dst : Return the daylight saving time (DST) adjustment.
18041811
@@ -1828,7 +1835,8 @@ class Timestamp(_Timestamp):
18281835
18291836
See Also
18301837
--------
1831-
datetime.datetime.utctimetuple : Return UTC time tuple, compatible with time.localtime().
1838+
datetime.datetime.utctimetuple :
1839+
Return UTC time tuple, compatible with time.localtime().
18321840
Timestamp.timetuple : Return time tuple of local time.
18331841
time.struct_time : Time tuple structure used by time functions.
18341842

0 commit comments

Comments
 (0)