From 7ebe2806b12a4bb60c779220b111235722d511d5 Mon Sep 17 00:00:00 2001 From: Jeremy Low Date: Sun, 28 Jan 2024 22:15:35 +1100 Subject: [PATCH 1/2] Copy the signature from the implementation --- pandas/_config/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandas/_config/config.py b/pandas/_config/config.py index b74883dbe5734..3de0c3bac9c5f 100644 --- a/pandas/_config/config.py +++ b/pandas/_config/config.py @@ -54,6 +54,7 @@ ContextDecorator, contextmanager, ) +from inspect import signature import re from typing import ( TYPE_CHECKING, @@ -270,6 +271,7 @@ class CallableDynamicDoc(Generic[T]): def __init__(self, func: Callable[..., T], doc_tmpl: str) -> None: self.__doc_tmpl__ = doc_tmpl self.__func__ = func + self.__signature__ = signature(func) def __call__(self, *args, **kwds) -> T: return self.__func__(*args, **kwds) From 755907eff8e38c7ff3715395bffb10a6fcb30278 Mon Sep 17 00:00:00 2001 From: Jeremy Low Date: Sun, 28 Jan 2024 22:28:07 +1100 Subject: [PATCH 2/2] updated code_checs.sh --- ci/code_checks.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index c0a26edd230eb..484cde210cb95 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -162,9 +162,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.tseries.offsets.Milli\ pandas.tseries.offsets.Micro\ pandas.tseries.offsets.Nano\ - pandas.describe_option\ - pandas.reset_option\ - pandas.get_option\ pandas.set_option\ pandas.Timestamp.max\ pandas.Timestamp.min\