Skip to content

Navigation Menu

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

TYP: Fix scalar constructors #28283

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 6, 2025
Merged

Conversation

charris
Copy link
Member

@charris charris commented Feb 5, 2025

Backport of #28279.

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.

@charris charris added 08 - Backport Used to tag backport PRs 41 - Static typing labels Feb 5, 2025
@charris charris added this to the 2.2.3 release milestone Feb 5, 2025
@charris charris merged commit cd97e2e into numpy:maintenance/2.2.x Feb 6, 2025
68 checks passed
@charris charris deleted the backport-28279 branch February 6, 2025 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
08 - Backport Used to tag backport PRs 41 - Static typing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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