8000 ENH: Add type annotations for the np.core.fromnumeric module: part 1/4 by BvB93 · Pull Request #67 · numpy/numpy-stubs · GitHub
[go: up one dir, main page]

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

ENH: Add type annotations for the np.core.fromnumeric module: part 1/4 #67

Merged
merged 8 commits into from
Apr 24, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added a module-level docstring with the name of the corresponding num…
…py module
  • Loading branch information
Bas van Beek committed Apr 21, 2020
commit 37cbdedd2a60bbb92c1eb3b52b65a4c6786058ec
2 changes: 2 additions & 0 deletions tests/fail/fromnumeric.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Tests for :mod:`numpy.core.fromnumeric`."""

import numpy as np
Copy link
Member

Choose a reason for hiding this comment

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

Maybe there's a better name than fromnumeric.py? Maybe not though. At some point we're going to need to organize things better, but it's not hard to shuffle stuff around later.

Copy link
Member Author

Choose a reason for hiding this comment

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

Currently it's named after the corresponding module in NumPy (np.core.fromnumeric).
I'm all ears if you have suggestions, but I feel that the current name is already pretty decent.

Copy link
Member Author

Choose a reason for hiding this comment

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

Im any case, I've added a module-level docstring to the tests for now to clarify that the relevant functions are from np.core.fromnumeric (37cbded).


A = np.array(True, ndmin=2, dtype=bool)
Expand Down
2 changes: 2 additions & 0 deletions tests/pass/fromnumeric.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Tests for :mod:`numpy.core.fromnumeric`."""

import numpy as np

A = np.array(True, ndmin=2, dtype=bool)
Expand Down
2 changes: 2 additions & 0 deletions tests/reveal/fromnumeric.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Tests for :mod:`numpy.core.fromnumeric`."""

import numpy as np

A = np.array(True, ndmin=2, dtype=bool)
Expand Down
0