Skip to content

Commit 01ad3f9

Browse files
author
03darius
committed
Fixed false negative PR01, PR02 errors in Series
1 parent e6f3a74 commit 01ad3f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/validate_docstrings.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,20 +247,20 @@ def _get_delegated_func_name(func_name: str) -> str:
247247
if "Series.cat" in func_name:
248248
return "pandas.core.arrays.categorical.Categorical." + method_name
249249
if "Series.dt" in func_name:
250-
if method_name in ["as_unit", "ceil", "floor", "round",]:
250+
if method_name in ["as_unit", "ceil", "floor", "round"]:
251251
return "pandas.core.arrays.datetimelike.TimelikeOps." + method_name
252252
if method_name in [
253253
"day_name",
254254
"month_name",
255255
"normalize",
256256
"to_period",
257257
"tz_convert",
258-
"tz_localize",
258+
"tz_localize"
259259
]:
260260
return "pandas.core.arrays.datetimes.DatetimeArray." + method_name
261-
if method_name in ["strftime",]:
261+
if method_name in ["strftime"]:
262262
return "pandas.core.arrays.datetimelike.DatelikeOps." + method_name
263-
if method_name in ["total_seconds",]:
263+
if method_name in ["total_seconds"]:
264264
return "pandas.core.arrays.timedeltas.TimedeltaArray." + method_name
265265

266266
return func_name

0 commit comments

Comments
 (0)