Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fixing various spelling errors #28569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 25, 2025
Merged

Conversation

john-science
Copy link
Contributor

This is just a simple cleanup PR. I found various spelling errors and fixed them.

And then I went hunting for spelling errors and found a few more.

I have not changed any variable names here, this is all just docs and docstrings. So this should be a very safe change.

Copy link
Contributor

@tylerjereddy tylerjereddy left a comment

Choose a reason for hiding this comment

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

Some of these look "ok," but others look like automatic replacements that don't belong--I've pointed out a few from the latter category from a quick scan.

doc/changelog/1.21.0-changelog.rst Outdated Show resolved Hide resolved
doc/changelog/1.21.0-changelog.rst Outdated Show resolved Hide resolved
doc/changelog/1.21.0-changelog.rst Outdated Show resolved Hide resolved
doc/changelog/1.22.0-changelog.rst Outdated Show resolved Hide resolved
doc/source/release/1.22.0-notes.rst Outdated Show resolved Hide resolved
@charris
Copy link
Member

charris commented Mar 23, 2025

The f2c stuff is generated and should be left alone.

doc/changelog/1.21.0-changelog.rst Outdated Show resolved Hide resolved
doc/changelog/1.21.0-changelog.rst Outdated Show resolved Hide resolved
doc/changelog/1.21.0-changelog.rst Outdated Show resolved Hide resolved
doc/changelog/1.22.0-changelog.rst Outdated Show resolved Hide resolved
doc/source/release/1.22.0-notes.rst Outdated Show resolved Hide resolved
@john-science
Copy link
Contributor Author

The f2c stuff is generated and should be left alone.

Okay, reverted.

@john-science
Copy link
Contributor Author

This error seems erroneous to me:

  E       AssertionError: 
  E       Arrays are not equal
  E       
  E       Mismatched elements: 2 / 10 (20%)
  E       Max absolute difference among violations: 1208103775
  E       Max relative difference among violations: 32749.
  E        ACTUAL: array([[1208103775,      32750,          2,          3,          4],
  E              [         5,          6,          7,          8,          9]],
  E             dtype=int32)
  E        DESIRED: array([[0, 1, 2, 3, 4],
  E              [5, 6, 7, 8, 9]])
  
  POINTER    = <built-in function POINTER>
  a          = array([[ -217879408,       32745, -1231388384,       32745,           4],
         [          5,           6,           7,          48,           0]],
        dtype=int32)

  numpy/tests/test_ctypeslib.py:218: AssertionError

That does not seem related to this PR. I expect re-running the tests would make them pass again. (Sorry if I am wrong. This is just my guess.)

If that IS the case, perhaps we should open a bug ticket for intermittently failing CI.

@charris
Copy link
Member

charris commented Mar 24, 2025

You can ignore the PyPy failure, it is a known bug in PyPy.

Copy link
Member

@ngoldbaum ngoldbaum left a comment

Choose a reason for hiding this comment

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

Changing the error messages is technically a backward compatibility issue - can you add a release note for the off chance someone is using the error message in a test like the numpy tests were?

@ngoldbaum ngoldbaum added the 56 - Needs Release Note. Needs an entry in doc/release/upcoming_changes label Mar 24, 2025
@john-science
Copy link
Contributor Author

Changing the error messages is technically a backward compatibility issue - can you add a release note for the off chance someone is using the error message in a test like the numpy tests were?

I have added a release note. I tried to word it in keeping with other release notes. But feel free to holler if you'd like it worded differently.

doc/release/upcoming_changes/28569.change.rst Outdated Show resolved Hide resolved
@ngoldbaum
Copy link
Member

There was a spelling error in the release note 🙃 so I fixed that and made it a little less wordy. Will merge shortly.

@ngoldbaum
Copy link
Member

Actually I think @tylerjereddy needs to give it another pass because of branch protection

doc/release/upcoming_changes/28569.change.rst Outdated Show resolved Hide resolved
@@ -59,7 +59,7 @@ value for the ``usemask`` parameter.
Deprecations
============

Use delimiter rather than delimitor as kwarg in mrecords
Use delimiter rather than delimiter as kwarg in mrecords
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this still needs to be reverted?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted

@tylerjereddy tylerjereddy dismissed their stale review March 25, 2025 17:55

most comments addressed

doc/source/release/1.22.0-notes.rst Outdated Show resolved Hide resolved
@tylerjereddy
Copy link
Contributor

Actually I think @tylerjereddy needs to give it another pass because of branch protection

I think I found one more case that should be reverted, but I've dismissed the blocking review apart from that.

@ngoldbaum
Copy link
Member

Thanks @john-science!

@ngoldbaum ngoldbaum merged commit 2a6f4f0 into numpy:main Mar 25, 2025
66 checks passed
@john-science john-science deleted the fix_spelling branch March 25, 2025 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
03 - Maintenance 56 - Needs Release Note. Needs an entry in doc/release/upcoming_changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.