diff --git a/docs/sphinx/_ext/dagster-sphinx/dagster_sphinx/__init__.py b/docs/sphinx/_ext/dagster-sphinx/dagster_sphinx/__init__.py index 9ca64707bb617..242b77048a788 100644 --- a/docs/sphinx/_ext/dagster-sphinx/dagster_sphinx/__init__.py +++ b/docs/sphinx/_ext/dagster-sphinx/dagster_sphinx/__init__.py @@ -75,7 +75,7 @@ def record_error(env: BuildEnvironment, message: str) -> None: def check_public_method_has_docstring(env: BuildEnvironment, name: str, obj: object) -> None: if name != "__init__" and not obj.__doc__: message = ( - f"Docstring not found for {obj}.{name}. " + f"Docstring not found for {obj.__repr__()}.{name}. " "All public methods and properties must have docstrings." ) record_error(env, message)