Fix typos in docstrings and comments#31538
Closed
Bojun-Vvibe wants to merge 1 commit intomatplotlib:mainfrom
Closed
Fix typos in docstrings and comments#31538Bojun-Vvibe wants to merge 1 commit intomatplotlib:mainfrom
Bojun-Vvibe wants to merge 1 commit intomatplotlib:mainfrom
Conversation
Member
|
It seems to me like this contribution is entirely AI generated, which goes against our AI policy: https://matplotlib.org/devdocs/devel/contribute.html#use-of-generative-ai. @Bojun-Vvibe have you read our AI policy, and have you yourself made these changes and written the PR description above? |
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.
Repo: matplotlib/matplotlib (⭐ 20000)
Type: docs
Files changed: 3
Lines: +3/-3
What
Fix three small typos in user-facing docstrings and an internal comment:
lib/matplotlib/_mathtext.py: "the the actual" → "the actual" (comment).lib/matplotlib/colors.py: "through the the corresponding norm" → "through the corresponding norm" (rendered docstring forColorizer.inverse).lib/matplotlib/text.py: "the location to of the offset origin" → "the location of the offset origin" (rendered docstring forOffsetFrom).Why
Two of the three errors appear in published API docstrings, where they are visible
to downstream users and on matplotlib.org. The third is in a comment but reads as
a doubled-word typo. Fixes are isolated and unambiguous.
Testing
Pure documentation/comment edits — no behavior change. Verified each change is a
self-contained word-level fix and leaves surrounding prose grammatical.
Risk
Low — comment/docstring text only, no code paths touched.