Skip to content

TYP, MAINT: Add a missing explicit Any parameter to the npt.ArrayLike definition#23150

Merged
charris merged 1 commit intonumpy:maintenance/1.24.xfrom
charris:backport-23144
Feb 3, 2023
Merged

TYP, MAINT: Add a missing explicit Any parameter to the npt.ArrayLike definition#23150
charris merged 1 commit intonumpy:maintenance/1.24.xfrom
charris:backport-23144

Conversation

@charris
Copy link
Copy Markdown
Member

@charris charris commented Feb 2, 2023

Backport of #23144.

Closes #23137

While equivalent to omitting, explicitly setting generic type parameters that you don't care about to Any is considered best practice.

@charris charris added this to the 1.24.2 release milestone Feb 2, 2023
@charris
Copy link
Copy Markdown
Member Author

charris commented Feb 2, 2023

@BvB93 Ping.

@charris
Copy link
Copy Markdown
Member Author

charris commented Feb 3, 2023

Hmm, looks like there have been other changes in main, might want to skip this backport.

@charris charris merged commit bc47a5b into numpy:maintenance/1.24.x Feb 3, 2023
@charris charris deleted the backport-23144 branch February 3, 2023 04:36
@charris
Copy link
Copy Markdown
Member Author

charris commented Feb 3, 2023

The simplest option works, so much for clever.

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