Skip to content

DEPR: unit->input_unit in to_datetime, to_timedelta #51829

DEPR: unit->input_unit in to_datetime, to_timedelta

DEPR: unit->input_unit in to_datetime, to_timedelta #51829

Triggered via pull request October 1, 2025 16:35
Status Failure
Total duration 19m 8s
Artifacts

code-checks.yml

on: pull_request
Docstring validation, typing, and other manual pre-commit hooks
18m 16s
Docstring validation, typing, and other manual pre-commit hooks
ASV Benchmarks
19m 5s
ASV Benchmarks
Build Docker Dev Environment
2m 19s
Build Docker Dev Environment
Test install requirements-dev.txt
1m 53s
Test install requirements-dev.txt
Fit to window
Zoom out
Zoom in

Annotations

4 errors
Docstring validation, typing, and other manual pre-commit hooks
Process completed with exit code 3.
Docstring validation, typing, and other manual pre-commit hooks
/home/runner/work/pandas/pandas/pandas/core/tools/timedeltas.py:87:PR03:pandas.to_timedelta:Wrong parameters order. Actual: ('arg', 'unit', 'errors', 'input_unit'). Documented: ('arg', 'input_unit', 'errors', 'unit')
Docstring validation, typing, and other manual pre-commit hooks
/home/runner/work/pandas/pandas/pandas/core/tools/datetimes.py:678:PR03:pandas.to_datetime:Wrong parameters order. Actual: ('arg', 'errors', 'dayfirst', 'yearfirst', 'utc', 'format', 'exact', 'unit', 'origin', 'cache', 'input_unit'). Documented: ('arg', 'errors', 'dayfirst', 'yearfirst', 'utc', 'format', 'exact', 'input_unit', 'origin', 'cache', 'unit')
Docstring validation, typing, and other manual pre-commit hooks
/home/runner/work/pandas/pandas/pandas/__init__.py:None:PR03:pandas.Timestamp:Wrong parameters order. Actual: ('ts_input', 'year', 'month', 'day', 'hour', 'minute', 'second', 'microsecond', 'tzinfo', 'nanosecond', 'tz', 'unit', 'fold', 'input_unit'). Documented: ('ts_input', 'year', 'month', 'day', 'hour', 'minute', 'second', 'microsecond', 'tzinfo', 'nanosecond', 'tz', 'input_unit', 'fold', 'unit')