Skip to content

Commit ff9b329

Browse files
committed
fix flake8
1 parent 652d105 commit ff9b329

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

doc/source/whatsnew/v1.4.0.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Other Deprecations
279279
- Deprecated :meth:`.Styler.render` in favour of :meth:`.Styler.to_html` (:issue:`42140`)
280280
- Deprecated passing in a string column label into ``times`` in :meth:`DataFrame.ewm` (:issue:`43265`)
281281
- Deprecated the ``squeeze`` argument to :meth:`read_csv`, :meth:`read_table`, and :meth:`read_excel`. Users should squeeze the DataFrame afterwards with ``.squeeze("columns")`` instead. (:issue:`43242`)
282-
- Deprecated the `closed` argument in :meth:`date_range` and :meth:`bdate_range` in favor of `inclusive` argument; In a future version passing `closed` wil raise (:issue:`40245`)
282+
- Deprecated the ``closed`` argument in :meth:`date_range` and :meth:`bdate_range` in favor of ``inclusive`` argument; In a future version passing ``closed`` will raise (:issue:`40245`)
283283

284284
.. ---------------------------------------------------------------------------
285285
@@ -320,7 +320,7 @@ Datetimelike
320320
^^^^^^^^^^^^
321321
- Bug in :class:`DataFrame` constructor unnecessarily copying non-datetimelike 2D object arrays (:issue:`39272`)
322322
- :func:`to_datetime` would silently swap ``MM/DD/YYYY`` and ``DD/MM/YYYY`` formats if the given ``dayfirst`` option could not be respected - now, a warning is raised in the case of delimited date strings (e.g. ``31-12-2012``) (:issue:`12585`)
323-
- Bug in :meth:`date_range` and `bdate_range` do not return right bound when `start`=`end` and set is closed on one side (:issue:`43394`)
323+
- Bug in :meth:`date_range` and :meth:`bdate_range` do not return right bound when ``start`` = ``end`` and set is closed on one side (:issue:`43394`)
324324
-
325325

326326
Timedelta

pandas/core/arrays/datetimelike.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
Callable,
1212
Literal,
1313
Sequence,
14-
Tuple,
1514
TypeVar,
1615
Union,
1716
cast,
@@ -1841,7 +1840,7 @@ def validate_inclusiveness(inclusive):
18411840
------
18421841
ValueError : if argument is not among valid values
18431842
"""
1844-
left_right_inclusive: Tuple[bool, bool] | None = {
1843+
left_right_inclusive: tuple[bool, bool] | None = {
18451844
"both": (True, True),
18461845
"left": (True, False),
18471846
"right": (False, True),

pandas/core/indexes/datetimes.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1038,11 +1038,12 @@ def date_range(
10381038
"""
10391039
if inclusive is not None and closed is not lib.no_default:
10401040
raise ValueError(
1041-
"Deprecated Argument `closed` cannot be passed if Argument `inclusive` is not None"
1041+
"Deprecated argument `closed` cannot be passed"
1042+
"if argument `inclusive` is not None"
10421043
)
10431044
elif closed is not lib.no_default:
10441045
warnings.warn(
1045-
"Argument `closed` is deprectated in favor of `inclusive`.",
1046+
"Argument `closed` is deprecated in favor of `inclusive`.",
10461047
FutureWarning,
10471048
stacklevel=2,
10481049
)

0 commit comments

Comments
 (0)