We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2f320f commit 6842372Copy full SHA for 6842372
1 file changed
src/_griffe/diff.py
@@ -219,10 +219,10 @@ def _explain_github(self) -> str:
219
title = f"title={self._format_title()}"
220
explanation = f"::warning {location},{title}::{self.kind.value}"
221
old = self._format_old_value()
222
- if old != "unset":
+ if old and old != "unset":
223
old = f"`{old}`"
224
new = self._format_new_value()
225
- if new != "unset":
+ if new and new != "unset":
226
new = f"`{new}`"
227
if old and new:
228
change = f"{old} -> {new}"
0 commit comments