Skip to content

fix: Revert change to write_timestamp - #422

Closed
rebkwok wants to merge 1 commit into
mainfrom
fix-timestamp-write
Closed

fix: Revert change to write_timestamp#422
rebkwok wants to merge 1 commit into
mainfrom
fix-timestamp-write

Conversation

@rebkwok

@rebkwok rebkwok commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

This was changed due to ruff rule SIM115, which flagged that a context manager should be used to write to the timestamp file. However, on windows, writing to a file while there's already an open handle to it sometimes errors. The tests passed, but a user has encountered the error now.

Revert the code, add the relevant noqas, and a comment so we don't inadvertently undo this again in future.

This was changed due to ruff rule SIM115, which flagged that a
context manager should be used to write to the timestamp file.
However, on windows, writing to a file while there's already an
open handle to it _sometimes_ errors. The tests passed, but a
user has encountered the error now.

Revert the code, add the relevant noqas, and a comment so we don't
inadvertently undo this again in future.
@rebkwok rebkwok closed this Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant