Skip to content

Commit 77f718c

Browse files
Bas van BeekBvB93
authored andcommitted
ENH: Add __path__ annotations to all sub-packages
1 parent 25e6e11 commit 77f718c

File tree

9 files changed

+9
-0
lines changed

9 files changed

+9
-0
lines changed

numpy/fft/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ from typing import Any, List
33
from numpy._pytesttester import PytestTester
44

55
__all__: List[str]
6+
__path__: List[str]
67
test: PytestTester
78

89
def fft(a, n=..., axis=..., norm=...): ...

numpy/lib/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ from numpy.core.multiarray import (
233233
)
234234

235235
__all__: List[str]
236+
__path__: List[str]
236237
test: PytestTester
237238

238239
__version__ = version

numpy/linalg/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ from typing import Any, List
33
from numpy._pytesttester import PytestTester
44

55
__all__: List[str]
6+
__path__: List[str]
67
test: PytestTester
78

89
class LinAlgError(Exception): ...

numpy/ma/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,4 +232,5 @@ from numpy.ma.extras import (
232232
)
233233

234234
__all__: List[str]
235+
__path__: List[str]
235236
test: PytestTester

numpy/matrixlib/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ from numpy import (
77
)
88

99
__all__: List[str]
10+
__path__: List[str]
1011
test: PytestTester
1112

1213
def bmat(obj, ldict=..., gdict=...): ...

numpy/polynomial/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ from numpy.polynomial.legendre import Legendre as Legendre
1818
from numpy.polynomial.polynomial import Polynomial as Polynomial
1919

2020
__all__: List[str]
21+
__path__: List[str]
2122
test: PytestTester
2223

2324
def set_default_printstyle(style): ...

numpy/random/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,5 @@ from numpy.random.mtrand import (
6868
)
6969

7070
__all__: List[str]
71+
__path__: List[str]
7172
test: PytestTester

numpy/testing/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ from numpy.testing._private.utils import (
4949
)
5050

5151
__all__: List[str]
52+
__path__: List[str]
5253
test: PytestTester
5354

5455
def run_module_suite(

numpy/typing/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ def final(f): return f
172172
# Declare to mypy that `__all__` is a list of strings without assigning
173173
# an explicit value
174174
__all__: List[str]
175+
__path__: List[str]
175176

176177

177178
@final # Dissallow the creation of arbitrary `NBitBase` subclasses

0 commit comments

Comments
 (0)