Fix typos in comments and debug log message#4278
Merged
Wauplin merged 1 commit intoMay 27, 2026
Merged
Conversation
Contributor
|
This PR has been shipped as part of the v1.17.0 release. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Small typo cleanup — comments and a debug log message only. No functional changes.
What
src/huggingface_hub/constants.py# Timeout of aquiring file lock…# Timeout of acquiring file lock…src/huggingface_hub/file_download.py# …give up. Tre retry mechanism…# …give up. The retry mechanism…src/huggingface_hub/hf_api.py(create_commitdebug log){len(copies)} copie(s){len(copies)} copy(ies)src/huggingface_hub/hf_api.py(SSE comment)# Keep-alives are sent as empty data: messages# Keep-alive messages are sent as empty data: eventsWhy
All four were caught by
codespellagainstsrc/. Thecopie(s)one is a user-visiblelogger.debugline; the other three are inline comments. Each fix is one or two tokens — easy to review and revert if needed.Out of scope (intentionally not touched)
cachableinhf_file_system.py— that's the fsspecAbstractFileSystem.cachableclass attribute, not a typo.uncommitedin_hot_reload/types.py— it's aTypedDictfield name that matches a documented API contract.tests/— those are inside test fixture string literals (e.g."spaeces/user/id" # with typo in repo type) and changing them would break the test intent.docs/source/de/…etc.) — left for native speakers.Test
No behavioural change, no new tests needed.
make qualityandmake styleare no-ops on a comment/string change like this.Note
Low Risk
String-only edits to comments and debug logging; no runtime, API, or security impact.
Overview
This PR is comment and log-string typo cleanup only — no behavior changes.
It fixes codespell issues in
constants.py(file-lock comment: acquiring),file_download.py(download retry comment: The), andhf_api.py(commit debug log: copy(ies) instead of copie(s), plus a clearer SSE keep-alive comment for Space logs).Reviewed by Cursor Bugbot for commit 8e96d52. Bugbot is set up for automated code reviews on this repo. Configure here.