From 94ff63adb2aa5678904ea0d0fe6cc786b468ffb0 Mon Sep 17 00:00:00 2001 From: evgenii Date: Sat, 28 Jun 2025 00:40:42 +0300 Subject: [PATCH 1/2] CI: temporarily pin numpydoc<1.7 to unblock docstring validation (GH#61720) --- environment.yml | 2 +- requirements-dev.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/environment.yml b/environment.yml index 74186bd2581c4..74124a23f8a6c 100644 --- a/environment.yml +++ b/environment.yml @@ -84,7 +84,7 @@ dependencies: # documentation - gitpython # obtain contributors from git for whatsnew - natsort # DataFrame.sort_values doctest - - numpydoc + - numpydoc<1.7 - pydata-sphinx-theme=0.16 - pytest-cython # doctest - sphinx diff --git a/requirements-dev.txt b/requirements-dev.txt index 6515797bc3b9d..f30becb3efe5a 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -59,7 +59,7 @@ tokenize-rt pre-commit>=4.2.0 gitpython natsort -numpydoc +numpydoc<1.7 pydata-sphinx-theme==0.16 pytest-cython sphinx From de79be5ae944ea1f1a166472473049e9ef57e026 Mon Sep 17 00:00:00 2001 From: evgenii Date: Sat, 28 Jun 2025 01:44:07 +0300 Subject: [PATCH 2/2] DOC: fix duplicate Returns/Yields in option_context and mark expected warning in timeseries example (GH#61720) --- doc/source/user_guide/timeseries.rst | 1 + pandas/_config/config.py | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index ac0fc9e53ee94..99283809f3022 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -197,6 +197,7 @@ a ``Series``, this returns a ``Series`` (with the same index), while a list-like is converted to a ``DatetimeIndex``: .. ipython:: python + :okwarning: pd.to_datetime(pd.Series(["Jul 31, 2009", "Jan 10, 2010", None])) diff --git a/pandas/_config/config.py b/pandas/_config/config.py index d42d90d44f82f..dd4a5a7b209c7 100644 --- a/pandas/_config/config.py +++ b/pandas/_config/config.py @@ -462,11 +462,6 @@ def option_context(*args) -> Generator[None]: interpreted as (pattern, value) pairs. Alternatively, a single dictionary of {pattern: value} may be provided. - Returns - ------- - None - No return value. - Yields ------ None