Skip to content

Commit

Permalink
pacify flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
0xabu committed Dec 29, 2024
1 parent c711e63 commit 6da46cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pdfannots/printer/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def annot_to_dict(
"author": annot.author,
"created": annot.created.strftime('%Y-%m-%dT%H:%M:%S') if annot.created else None,
"color": ('#' + annot.color.ashex()) if annot.color else None,
"in_reply_to": annot.in_reply_to.name if annot.in_reply_to and annot.in_reply_to.name else None,
"in_reply_to": (annot.in_reply_to.name if annot.in_reply_to and annot.in_reply_to.name
else None),
}

# Remove keys with None values in nested dictionary and return
Expand Down

0 comments on commit 6da46cb

Please sign in to comment.