From 85677b196e5fb48138e44aa00fe971ac4ee237c2 Mon Sep 17 00:00:00 2001 From: Chetan Kini Date: Thu, 19 Dec 2024 13:30:42 -0500 Subject: [PATCH] update logic --- great_expectations/_docs_decorators.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/great_expectations/_docs_decorators.py b/great_expectations/_docs_decorators.py index 88def1fd777f..cee2d7297c89 100644 --- a/great_expectations/_docs_decorators.py +++ b/great_expectations/_docs_decorators.py @@ -81,8 +81,9 @@ def add(self, func: F) -> None: raise def _add_to_docstring_violations(self, func: F) -> None: - if not func.__doc__: - self._docstring_violations.add(f"{func.__module__}.{func.__qualname__}") + name = f"{func.__module__}.{func.__qualname__}" + if not func.__doc__ and name.startswith("great_expectations"): + self._docstring_violations.add(name) def _add_to_class_registry(self, func: F) -> None: if isinstance(func, type):