From 6e198f4b50157d824863280830ffe570414c9fad Mon Sep 17 00:00:00 2001 From: Meet_Vasita Date: Wed, 1 Oct 2025 00:57:32 +0530 Subject: [PATCH] Backport PR #62313: DOC: Fix NaT and NA API docs --- doc/source/reference/missing_value.rst | 2 -- pandas/_libs/missing.pyx | 1 + pandas/_libs/tslibs/nattype.pyx | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/source/reference/missing_value.rst b/doc/source/reference/missing_value.rst index 3bf22aef765d1..c4eac220be279 100644 --- a/doc/source/reference/missing_value.rst +++ b/doc/source/reference/missing_value.rst @@ -11,7 +11,6 @@ NA is the way to represent missing values for nullable dtypes (see below): .. autosummary:: :toctree: api/ - :template: autosummary/class_without_autosummary.rst NA @@ -19,6 +18,5 @@ NaT is the missing value for timedelta and datetime data (see below): .. autosummary:: :toctree: api/ - :template: autosummary/class_without_autosummary.rst NaT diff --git a/pandas/_libs/missing.pyx b/pandas/_libs/missing.pyx index 0fd1c2b21d5cd..7fff7725d5ad4 100644 --- a/pandas/_libs/missing.pyx +++ b/pandas/_libs/missing.pyx @@ -371,6 +371,7 @@ class NAType(C_NAType): >>> True | pd.NA True """ + __module__ = "pandas" _instance = None diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx index 65db0e05f859c..9eb253ad52c95 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -341,6 +341,8 @@ class NaTType(_NaT): 1 NaT """ + __module__ = "pandas" + def __new__(cls): cdef _NaT base