Skip to content

Conversation

@jorenham
Copy link
Owner

This removes the PEP 696 default of the first optype.numpy.CanArrayND generic type parameter (covariant and bound to np.generic). This is technically a breaking change, but given its absence from the docs, I don't expect it to be likely that this will cuase issues for optype users.

This works around a path-dependent bug in Pyright (<=1.1.403) that has recently been causing a lot of issues in scipy-stubs.

See scipy/scipy-stubs#745, scipy/scipy-stubs#742, and scipy/scipy-stubs#741 for more info about this pyright bug.

@jorenham jorenham added this to the v0.12.0 milestone Jul 15, 2025
@jorenham jorenham marked this pull request as draft July 15, 2025 15:44
@jorenham jorenham marked this pull request as ready for review July 15, 2025 15:46
@jorenham
Copy link
Owner Author

This does indeed seem to fix the scipy-stubs issues when installed in scipy/scipy-stubs#745.

@jorenham jorenham merged commit bf66cd1 into master Jul 15, 2025
17 checks passed
@jorenham jorenham deleted the path-dependent-pyright-bug-workaround branch July 15, 2025 15:48
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.

1 participant