Skip to content

TYP: fix typing errors in _core.strings #28492

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 1 commit into from
Mar 25, 2025
Merged

Conversation

jorenham
Copy link
Member

@jorenham jorenham commented Mar 13, 2025

Backport of numpy/numtype#115


  • fixed the incorrect signatures of np.strings.{add,rstrip,startswith}
  • removed the non-existent np.strings.join function
  • removed incorrect "fail" type-tests for np.strings.{l,r}just
  • annotated np._core.strings.__all__

@jorenham jorenham added 09 - Backport-Candidate PRs tagged should be backported 41 - Static typing numtype Isssue/PR related to numpy/numtype labels Mar 13, 2025
@ngoldbaum
Copy link
Member

Thanks! I'll try to take a look at this soon, just to understand what's going on. I'll likely just merge it.

@ngoldbaum ngoldbaum self-requested a review March 13, 2025 15:23
@jorenham
Copy link
Member Author

For your piece of mind; in numtype this was passing all strict mypy and pyright checks

@charris
Copy link
Member

charris commented Mar 24, 2025

@ngoldbaum Ping.

@ngoldbaum
Copy link
Member

Thanks @jorenham, sorry for the delay. These changes make sense.

@ngoldbaum ngoldbaum merged commit f9e5fd2 into numpy:main Mar 25, 2025
75 checks passed
@jorenham jorenham deleted the numtype/115 branch March 25, 2025 16:51
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
41 - Static typing numtype Isssue/PR related to numpy/numtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants