Skip to content

TYP: Fix scalar constructors#28283

Merged
charris merged 1 commit intonumpy:maintenance/2.2.xfrom
charris:backport-28279
Feb 6, 2025
Merged

TYP: Fix scalar constructors#28283
charris merged 1 commit intonumpy:maintenance/2.2.xfrom
charris:backport-28279

Conversation

@charris
Copy link
Copy Markdown
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
@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