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

Pass file IO modes as kwarg #3560

Merged
merged 4 commits into from
Jan 17, 2024
Merged

Pass file IO modes as kwarg #3560

merged 4 commits into from
Jan 17, 2024

Conversation

janosh
Copy link
Member

@janosh janosh commented Jan 17, 2024

More explicit. Example:

- with open(path, "w") as file:
+ with open(path, mode="w") as file

@janosh janosh added the housekeeping Moving around or cleaning up old code/files label Jan 17, 2024
@janosh janosh enabled auto-merge (squash) January 17, 2024 12:07
@janosh janosh merged commit 021a280 into master Jan 17, 2024
22 checks passed
@janosh janosh deleted the open-file-mode-kwarg branch January 17, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Moving around or cleaning up old code/files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant