Skip to content

Commit 9eac33a

Browse files
authored
Merge pull request #812 from numpy/remove-numtype-reexorts
2 parents c80d3d8 + 09af381 commit 9eac33a

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

src/numtype/@test/test_numtype.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
1-
import pytest
2-
31
import numpy as np
4-
import numpy.typing as npt
52
import numtype as nt
63

7-
NPT_DIR = tuple(k for k in npt.__all__ if k != "NBitBase")
8-
9-
10-
def test_superset() -> None:
11-
assert set(nt.__all__) > set(NPT_DIR)
12-
13-
14-
@pytest.mark.parametrize("name", NPT_DIR)
15-
def test_reexport(name: str) -> None:
16-
assert getattr(nt, name) is getattr(npt, name)
17-
184

195
def test_version() -> None:
206
assert nt.__version__.startswith(np.__version__.split("rc")[0])

src/numtype/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
"""A superset of `numpy.typing`. Will be expanded in the future."""
2-
3-
from numpy.typing import ArrayLike, DTypeLike, NDArray # noqa: ICN003
1+
"""Will become a `numpy.typing` alternative in the future."""
42

53
from .version import __version__
64

7-
__all__ = ["ArrayLike", "DTypeLike", "NDArray", "__version__"]
5+
__all__ = ["__version__"]

0 commit comments

Comments
 (0)