diff --git a/great_expectations/expectations/expectation.py b/great_expectations/expectations/expectation.py index 259e4863e883..d198a3784d94 100644 --- a/great_expectations/expectations/expectation.py +++ b/great_expectations/expectations/expectation.py @@ -338,7 +338,10 @@ def _register_renderer_functions(cls) -> None: expectation_type: str = camel_to_snake(cls.__name__) for candidate_renderer_fn_name in dir(cls): - attr_obj: Callable = getattr(cls, candidate_renderer_fn_name) + attr_obj: Callable | None = getattr(cls, candidate_renderer_fn_name, None) + # attrs are not guaranteed to exist https://docs.python.org/3.10/library/functions.html#dir + if attr_obj is None: + continue if not hasattr(attr_obj, "_renderer_type"): continue register_renderer(object_name=expectation_type, parent_class=cls, renderer_fn=attr_obj)