Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Apply ruff/Perflint rule #1136

Merged
merged 1 commit into from
Nov 30, 2024
Merged
Changes from all commits
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
3 changes: 1 addition & 2 deletions twine/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ def _convert_data_to_list_of_tuples(data: Dict[str, Any]) -> List[Tuple[str, Any
if key in KEYWORDS_TO_NOT_FLATTEN or not isinstance(value, (list, tuple)):
data_to_send.append((key, value))
else:
for item in value:
data_to_send.append((key, item))
data_to_send.extend((key, item) for item in value)
return data_to_send

def set_certificate_authority(self, cacert: Optional[str]) -> None:
Expand Down
Loading