Skip to content

TYP: Remove duplicate CLIP/WRAP/RAISE in __init__.pyi.#23326

Merged
charris merged 1 commit intonumpy:mainfrom
hawkinsp:clipwrap
Mar 5, 2023
Merged

TYP: Remove duplicate CLIP/WRAP/RAISE in __init__.pyi.#23326
charris merged 1 commit intonumpy:mainfrom
hawkinsp:clipwrap

Conversation

@hawkinsp
Copy link
Copy Markdown
Contributor

@hawkinsp hawkinsp commented Mar 3, 2023

These constants are defined twice in this file, to which pytype objects. (mypy appears to tolerate this.)

@hawkinsp hawkinsp changed the title BUG: Remove duplicate CLIP/WRAP/RAISE in __init__.pyi. TYP: Remove duplicate CLIP/WRAP/RAISE in __init__.pyi. Mar 3, 2023
Copy link
Copy Markdown
Member

@BvB93 BvB93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit: I would personally be in favor of switching things around, i.e. removing the definition from the main __init__.pyi and rely on the multiarray re-export (considering they're also sorta defined in the latter during runtime)

These constants are defined twice in this file, to which pytype objects.
@hawkinsp
Copy link
Copy Markdown
Contributor Author

hawkinsp commented Mar 5, 2023

Small nit: I would personally be in favor of switching things around, i.e. removing the definition from the main __init__.pyi and rely on the multiarray re-export (considering they're also sorta defined in the latter during runtime)

Done.

@BvB93 BvB93 added the 09 - Backport-Candidate PRs tagged should be backported label Mar 5, 2023
@charris charris merged commit e76c6bc into numpy:main Mar 5, 2023
@charris
Copy link
Copy Markdown
Member

charris commented Mar 5, 2023

Thanks @hawkinsp .

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Mar 5, 2023
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.

3 participants