From 1ae7bda2ef02104de10524d1e6c5fb5bbf5eee23 Mon Sep 17 00:00:00 2001 From: Shing Chan Date: Sat, 9 Nov 2024 15:43:28 +0000 Subject: [PATCH] decorate Series with set_module('pandas') --- pandas/core/series.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandas/core/series.py b/pandas/core/series.py index 1d601f36d604a..35b576da87ed7 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -50,6 +50,7 @@ Substitution, deprecate_nonkeyword_arguments, doc, + set_module, ) from pandas.util._validators import ( validate_ascending, @@ -229,6 +230,7 @@ # error: Cannot override final attribute "size" (previously declared in base # class "NDFrame") # definition in base class "NDFrame" +@set_module("pandas") class Series(base.IndexOpsMixin, NDFrame): # type: ignore[misc] """ One-dimensional ndarray with axis labels (including time series).