From 02d16153100634115613e2494f0aa9efec4229c8 Mon Sep 17 00:00:00 2001 From: Micael Jarniac Date: Sun, 17 Jan 2021 12:59:39 -0300 Subject: [PATCH] Backport PR #39139: BUG: Placeholders not being filled on docstrings --- pandas/core/generic.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 2f7e78d696d7c..8da3bae190f82 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -10889,8 +10889,10 @@ def all(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs): # [assignment] cls.all = all # type: ignore[assignment] + # error: Argument 1 to "doc" has incompatible type "Optional[str]"; expected + # "Union[str, Callable[..., Any]]" @doc( - NDFrame.mad, + NDFrame.mad.__doc__, # type: ignore[arg-type] desc="Return the mean absolute deviation of the values " "over the requested axis.", name1=name1,