Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

MAINT: add more functions to the blacklist #73

Merged
merged 2 commits into from Jun 5, 2020

Conversation

person142
Copy link
Member

Found a few more functions that we shouldn't add types for.

runtests.py Outdated
"int_asbuffer",
"oldnumeric",
"recfromcsv",
"recfromtxt",
Copy link
Member

Choose a reason for hiding this comment

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

These two recfrom functions are the only ones I'm not sure about, they're not deprecated and are regular data loading functions. Why should they be ignored?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think I ignored them because they aren't in the refguide and because of numpy/numpy#12385 (comment). Happy to add them back though.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added the two recfrom functions back.

@@ -41,6 +54,9 @@
"ppmt",
"pv",
"rate",
# More standard names should be preferred
"alltrue", # all
"sometrue", # any
Copy link
Member

Choose a reason for hiding this comment

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

For alltrue can't we just use alltrue = all and call it a day?
Considering it's supposed to be public function (correct me if I'm wrong here) I feel it would not be wise to just skip it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Considering it's supposed to be public function

It's not in the refguide, and the general opinion seems to be "should be deprecated/removed" (see numpy/numpy#14584), so I think it's best to exclude it.

@person142
Copy link
Member Author

Ok, the two questionable functions have been removed, so merging.

@person142 person142 merged commit 66ed43a into numpy:master Jun 5, 2020
@person142 person142 deleted the update-blacklist branch June 5, 2020 15:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants