Skip to content

Commit d8780bf

Browse files
committed
amend descriptions and remove unpacking
1 parent ff9b329 commit d8780bf

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

pandas/core/arrays/datetimelike.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,8 +1851,7 @@ def validate_inclusiveness(inclusive):
18511851
raise ValueError(
18521852
"Inclusive has to be either 'both', 'neither', 'left', 'right'"
18531853
)
1854-
left_inclusive, right_inclusive = left_right_inclusive
1855-
return left_inclusive, right_inclusive
1854+
return left_right_inclusive
18561855

18571856

18581857
def validate_endpoints(closed):

pandas/core/indexes/datetimes.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -921,9 +921,8 @@ def date_range(
921921
Make the interval closed with respect to the given frequency to
922922
the 'left', 'right', or both sides (None, the default).
923923
.. deprecated:: 1.4.0
924-
Argument `closed` have been deprecated
925-
to standardize boundary inputs. Use `inclusive` instead, to set
926-
each bound as closed or open.
924+
Argument `closed` have been deprecated to standardize boundary inputs.
925+
Use `inclusive` instead, to set each bound as closed or open.
927926
inclusive : {"both", "neither", "left", "right"}, default "both"
928927
Include boundaries; Whether to set each bound as closed or open.
929928
**kwargs
@@ -1121,9 +1120,8 @@ def bdate_range(
11211120
Make the interval closed with respect to the given frequency to
11221121
the 'left', 'right', or both sides (None).
11231122
.. deprecated:: 1.4.0
1124-
Argument `closed` have been deprecated
1125-
to standardize boundary inputs. Use `inclusive` instead, to set
1126-
each bound as closed or open.
1123+
Argument `closed` have been deprecated to standardize boundary inputs.
1124+
Use `inclusive` instead, to set each bound as closed or open.
11271125
inclusive : {"both", "neither", "left", "right"}, default "both"
11281126
Include boundaries; Whether to set each bound as closed or open.
11291127
**kwargs

0 commit comments

Comments
 (0)