Skip to content

Commit

Permalink
fix typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilo59 committed Apr 29, 2024
1 parent aec8598 commit 165c85d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions great_expectations/expectations/expectation.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,9 @@ def _register_renderer_functions(cls) -> None:

for candidate_renderer_fn_name in dir(cls):
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(
Expand Down

0 comments on commit 165c85d

Please sign in to comment.