Skip to content

Commit c80f748

Browse files
committed
DOC: comment on reason for verbose check
1 parent 23f5a44 commit c80f748

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/_libs/tslibs/timestamps.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,8 @@ class Timestamp(_Timestamp):
393393

394394
# GH 30543 if pd.Timestamp already passed, return it
395395
# check that only ts_input is passed
396+
# checking verbosely, because cython doesn't optimize
397+
# list comprehensions (as of cython 0.29.x)
396398
if (isinstance(ts_input, Timestamp) and freq is None and
397399
tz is None and unit is None and year is None and
398400
month is None and day is None and hour is None and

0 commit comments

Comments
 (0)