From 18c578347210c8f3b9ab4a4b730e2a5b190ca7ef Mon Sep 17 00:00:00 2001 From: Deepyaman Datta Date: Sun, 19 Mar 2023 12:22:35 -0400 Subject: [PATCH 1/2] Update _decorators.py --- pandas/util/_decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py index 968da7cf60105..53796a965721e 100644 --- a/pandas/util/_decorators.py +++ b/pandas/util/_decorators.py @@ -339,7 +339,7 @@ def wrapper(*args, **kwargs): def doc(*docstrings: None | str | Callable, **params) -> Callable[[F], F]: """ - A decorator take docstring templates, concatenate them and perform string + A decorator to take docstring templates, concatenate them and perform string substitution on it. This decorator will add a variable "_docstring_components" to the wrapped From 37fd8294fc44aaeda7d1693ca238ca03537f99aa Mon Sep 17 00:00:00 2001 From: Deepyaman Datta Date: Sun, 19 Mar 2023 12:27:50 -0400 Subject: [PATCH 2/2] Update _decorators.py --- pandas/util/_decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py index 53796a965721e..29448f4cbfa2a 100644 --- a/pandas/util/_decorators.py +++ b/pandas/util/_decorators.py @@ -340,7 +340,7 @@ def wrapper(*args, **kwargs): def doc(*docstrings: None | str | Callable, **params) -> Callable[[F], F]: """ A decorator to take docstring templates, concatenate them and perform string - substitution on it. + substitution on them. This decorator will add a variable "_docstring_components" to the wrapped callable to keep track the original docstring template for potential usage.