Skip to content

Commit b822376

Browse files
committed
return on no warning add unused to whats new entry
1 parent b5f77b1 commit b822376

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/source/whatsnew/v2.0.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ Deprecations
780780
- :meth:`Index.is_object` has been deprecated. Use :func:`pandas.api.types.is_object_dtype` instead (:issue:`50042`)
781781
- :meth:`Index.is_interval` has been deprecated. Use :func:`pandas.api.types.is_intterval_dtype` instead (:issue:`50042`)
782782
- Deprecated ``all`` and ``any`` reductions with ``datetime64`` and :class:`DatetimeTZDtype` dtypes, use e.g. ``(obj != pd.Timestamp(0), tz=obj.tz).all()`` instead (:issue:`34479`)
783-
- Deprecated arguments ``*args`` and ``**kwargs`` in :class:`Resampler` (:issue:`50977`)
783+
- Deprecated unused arguments ``*args`` and ``**kwargs`` in :class:`Resampler` (:issue:`50977`)
784784

785785
.. ---------------------------------------------------------------------------
786786
.. _whatsnew_200.prior_deprecations:

pandas/core/resample.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2273,7 +2273,7 @@ def maybe_warn_args_and_kwargs(cls, kernel: str, args, kwargs) -> None:
22732273
elif warn_kwargs:
22742274
msg = "kwargs"
22752275
else:
2276-
msg = ""
2276+
return
22772277
if msg != "":
22782278
warnings.warn(
22792279
f"Passing additional {msg} to {cls.__name__}.{kernel} has "

0 commit comments

Comments
 (0)