Skip to content

Commit

Permalink
improve docstring error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
PedramNavid committed Aug 10, 2024
1 parent 8c14773 commit 93e68b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sphinx/_ext/dagster-sphinx/dagster_sphinx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 93e68b6

Please sign in to comment.