Skip to content

Commit

Permalink
docs(python): Align docstring phrasing in `Series/Expr.dt.truncate/ro…
Browse files Browse the repository at this point in the history
…und` (pola-rs#15698)

Co-authored-by: Henry Harbeck <[email protected]>
  • Loading branch information
henryharbeck and Henry Harbeck authored Apr 16, 2024
1 parent 2ac0da2 commit 04b00e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions py-polars/polars/expr/datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def truncate(
- `'latest'`: use the latest datetime
.. deprecated:: 0.19.3
This is now auto-inferred, you can safely remove this argument.
This is now automatically inferred; you can safely omit this argument.
Notes
-----
Expand Down Expand Up @@ -321,12 +321,12 @@ def truncate(

if use_earliest is not None:
issue_deprecation_warning(
"`use_earliest` is deprecated. It is now auto-inferred, you can safely remove this argument.",
"`use_earliest` is deprecated. It is now automatically inferred; you can safely omit this argument.",
version="0.19.13",
)
if ambiguous is not None:
issue_deprecation_warning(
"`ambiguous` is deprecated. It is now auto-inferred, you can safely remove this argument.",
"`ambiguous` is deprecated. It is now automatically inferred; you can safely omit this argument.",
version="0.19.13",
)
every = parse_as_expression(every, str_as_lit=True)
Expand Down Expand Up @@ -383,7 +383,7 @@ def round(
- `'latest'`: use the latest datetime
.. deprecated:: 0.19.3
This is now auto-inferred, you can safely remove this argument.
This is now automatically inferred; you can safely omit this argument.
Returns
-------
Expand Down Expand Up @@ -478,7 +478,7 @@ def round(

if ambiguous is not None:
issue_deprecation_warning(
"`ambiguous` is deprecated. It is now auto-inferred, you can safely remove this argument.",
"`ambiguous` is deprecated. It is now automatically inferred; you can safely omit this argument.",
version="0.19.13",
)

Expand Down
4 changes: 2 additions & 2 deletions py-polars/polars/series/datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,7 @@ def truncate(
- `'latest'`: use the latest datetime
.. deprecated:: 0.19.3
This is now auto-inferred, you can safely remove this argument.
This is now automatically inferred; you can safely omit this argument.
Notes
-----
Expand Down Expand Up @@ -1845,7 +1845,7 @@ def round(
- `'latest'`: use the latest datetime
.. deprecated:: 0.19.3
This is now auto-inferred, you can safely remove this argument.
This is now automatically inferred; you can safely omit this argument.
Returns
-------
Expand Down

0 comments on commit 04b00e6

Please sign in to comment.