Skip to content

Commit

Permalink
Mypy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RishiDiwanTT committed Sep 7, 2023
1 parent fcad7b7 commit 79fcb0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/feed_protocol/opds.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def get_serializer(
# Loop through and return whichever mimetype is encountered first
# Sort values by q-value first
if mime_types is not None:
mime_types = sorted(mime_types, key=lambda mime: mime[1], reverse=True) # type: ignore[arg-type]
mime_types = sorted(mime_types, key=lambda mime: mime[1], reverse=True)
for mime in mime_types or []:
if "application/opds+json" in mime[0]:
return OPDS2Serializer()
Expand Down

0 comments on commit 79fcb0d

Please sign in to comment.