Commit dd1ec83
Fix wrong parameter name in Time.diff_for_humans docstring (#1007)
The docstring documented ":param dt: The time to subtract from", but the
parameter is named "other" and the method compares rather than subtracts.
Both the name and the description were copied from Time.diff just above,
which does take a "dt" argument. Time.diff_for_humans(dt=...) raises
TypeError.
Date.diff_for_humans, which has the identical signature, already documents
":param other: The date to compare to (defaults to today)". This mirrors
that wording.
Claude-Session: https://claude.ai/code/session_01NbQSLKhdfSRcBeGWhaaV6T
Co-authored-by: Geonseok Lee <16929288+hxperl@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 0d71391 commit dd1ec83
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
0 commit comments