Skip to content
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

ENH: Add annotations for np.lib.npyio #19667

Merged
merged 3 commits into from
Aug 16, 2021
Merged

ENH: Add annotations for np.lib.npyio #19667

merged 3 commits into from
Aug 16, 2021

Conversation

BvB93
Copy link
Member

@BvB93 BvB93 commented Aug 13, 2021

This PR adds annotations for the various functions in np.lib.npyio.

runtests.py Show resolved Hide resolved
Comment on lines +183 to +185
@overload
def fromregex(
file: str | IO[Any],
Copy link
Member Author

@BvB93 BvB93 Aug 13, 2021

Choose a reason for hiding this comment

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

fromregex is currently the only file-manipulation-function that does not support os.PathLike implementations.
Might be something to add in a future PR?

Copy link
Member

Choose a reason for hiding this comment

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

Maybe open an issue so it doesn't get lost.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call, I just created one at #19679.

@charris charris merged commit eb31586 into numpy:main Aug 16, 2021
@charris
Copy link
Member

charris commented Aug 16, 2021

Thanks Bas.

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.

None yet

2 participants