Skip to content

Commit

Permalink
refactor(mediatypes): use a stricter type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
vytas7 committed Oct 1, 2024
1 parent 7912924 commit 2f11234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion falcon/util/mediatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def quality(media_type: str, header: str) -> float:
return most_specific[-1]


def best_match(media_types: Iterable[str], header: str) -> Optional[str]:
def best_match(media_types: Iterable[str], header: str) -> str:
"""Choose media type with the highest :func:`quality` from a list of
candidates.
Expand Down

0 comments on commit 2f11234

Please sign in to comment.