10000 TYP: Fix scalar constructors by jorenham · Pull Request #28279 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

TYP: Fix scalar constructors #28279

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
Feb 5, 2025
Merged

TYP: Fix scalar constructors #28279

merged 1 commit into from
Feb 5, 2025

Conversation

jorenham
Copy link
Member
@jorenham jorenham commented Feb 5, 2025

backport of numpy/numtype#28 and numpy/numtype#78


This ensures correct behavior of the float64, complex128, str_, and bytes_ constructors on pyright. This also fixes the complexfloating scalar types not accepting a second argument, which was causing complex(1, 2) to be rejected.

@jorenham jorenham added the 09 - Backport-Candidate PRs tagged should be backported label Feb 5, 2025
@jorenham jorenham added this to the 2.2.3 release milestone Feb 5, 2025
@charris charris merged commit 506e84d into numpy:main Feb 5, 2025
71 checks passed
@charris
Copy link
Member
charris commented Feb 5, 2025

Thanks Joren.

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Feb 5, 2025
@jorenham jorenham deleted the numtype/28 branch February 5, 2025 22:57
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.

2 participants
0