Skip to content

Conversation

kianelbo
Copy link
Contributor

@kianelbo kianelbo commented Sep 27, 2025

@kianelbo
Copy link
Contributor Author

kianelbo commented Oct 7, 2025

pre-commit.ci autofix

with parser.read_csv(path, chunksize=20) as result:
for _ in result:
pass
path = str(temp_file)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you just use temp_file directly, instead of converting to a str? (Unless the test appears to explicitly testing a string path)

@mroeschke mroeschke added the Code Style Code style, linting, code_checks label Oct 7, 2025
@kianelbo kianelbo requested a review from mroeschke October 7, 2025 18:20
@mroeschke mroeschke added this to the 3.0 milestone Oct 7, 2025
@mroeschke mroeschke merged commit 10102e6 into pandas-dev:main Oct 7, 2025
42 checks passed
@mroeschke
Copy link
Member

Thanks @kianelbo

@kianelbo kianelbo deleted the tempfile-replace branch October 8, 2025 05:31
jzwick pushed a commit to jzwick/pandas that referenced this pull request Oct 8, 2025
…v#62474)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Code Style Code style, linting, code_checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants