Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
🧎‍♀️ Genuflect to the types.
  • Loading branch information
jaraco committed Dec 18, 2022
commit 93b44dc085b3bccb73a00e72468fe93b4a1d7792
2 changes: 1 addition & 1 deletion twine/commands/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __str__(self) -> str:


# from Python 3.11 docs
def parse_content_type(value):
def parse_content_type(value: str) -> Tuple[str, dict[str, str]]:
msg = email.message.EmailMessage()
msg["content-type"] = value
return msg.get_content_type(), msg["content-type"].params
Expand Down