Skip to content

Commit 993ab04

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent 07f49bd commit 993ab04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/paperqa/types.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,9 @@ def __add__(self, other: DocDetails | int) -> DocDetails: # noqa: PLR0912
12321232
merged_data[field] = max(self_value, other_value)
12331233
elif field == "content_hash" and (
12341234
# Hashes are both present but differ
1235-
self_value and other_value and self_value != other_value
1235+
self_value
1236+
and other_value
1237+
and self_value != other_value
12361238
):
12371239
# If hashes are both present but differ,
12381240
# we don't know which to pick, so just discard the value

0 commit comments

Comments
 (0)