Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Avoid false-positive print separator diagnostic with starred argument #8079

Merged
merged 1 commit into from Oct 19, 2023

Conversation

charliermarsh
Copy link
Member

Given print(*a_list_with_elements, sep="\n"), we can't remove the separator (unlike in print(a, sep="\n")), since we don't know how many arguments were provided.

Closes #8078.

@charliermarsh charliermarsh added the bug Something isn't working label Oct 19, 2023
@charliermarsh charliermarsh enabled auto-merge (squash) October 19, 2023 22:11
@charliermarsh charliermarsh force-pushed the charlie/star branch 3 times, most recently from 61ee4f5 to b1b2a1c Compare October 19, 2023 22:19
@charliermarsh charliermarsh merged commit a00c445 into main Oct 19, 2023
15 checks passed
@charliermarsh charliermarsh deleted the charlie/star branch October 19, 2023 22:30
@github-actions
Copy link

PR Check Results

Ecosystem

✅ ecosystem check detected no changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FURB105 [*] Unnecessary separator passed to print
1 participant