Skip to content

Fix grammar typo in _find_labels_default_heuristic docstring#9495

Open
adityasingh2400 wants to merge 1 commit into
pytorch:mainfrom
adityasingh2400:fix-typo-label-like-docstring
Open

Fix grammar typo in _find_labels_default_heuristic docstring#9495
adityasingh2400 wants to merge 1 commit into
pytorch:mainfrom
adityasingh2400:fix-typo-label-like-docstring

Conversation

@adityasingh2400
Copy link
Copy Markdown

The docstring for _find_labels_default_heuristic in torchvision/transforms/v2/_utils.py describes a "label-like" key as the result of a case-insensitive search. The first reference to that search uses the article "an" before "case-insensitive", which is grammatically incorrect since "case" begins with a consonant sound. The second sentence in the same paragraph already uses the correct form "a case-insensitive".

This patch changes the single occurrence of "an case-insensitive" to "a case-insensitive" so the two sentences match. Docstring only, no code or behavior change.

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented May 22, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9495

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the cla signed label May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant