summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
authorBvB93 <43369155+BvB93@users.noreply.github.com>2022-10-06 13:41:28 +0200
committerBvB93 <43369155+BvB93@users.noreply.github.com>2022-11-14 17:43:37 +0100
commit6df49a353e01fd0382947bdf994c010342ab2c34 (patch)
tree36525b2da48b3562404a653472eb9664b0ee1e4b /numpy/lib
parent473b80f9b6cecdef0e26b0c9396e194353d92719 (diff)
downloadnumpy-6df49a353e01fd0382947bdf994c010342ab2c34.tar.gz
TYP,ENH: Add annotations for `np.show_runtime`
Xref https://github.com/numpy/numpy/pull/21468
Diffstat (limited to 'numpy/lib')
-rw-r--r--numpy/lib/__init__.pyi1
-rw-r--r--numpy/lib/utils.pyi2
2 files changed, 3 insertions, 0 deletions
diff --git a/numpy/lib/__init__.pyi b/numpy/lib/__init__.pyi
index 0e3da5b41..1fa2d226e 100644
--- a/numpy/lib/__init__.pyi
+++ b/numpy/lib/__init__.pyi
@@ -231,6 +231,7 @@ from numpy.lib.utils import (
lookfor as lookfor,
byte_bounds as byte_bounds,
safe_eval as safe_eval,
+ show_runtime as show_runtime,
)
from numpy.core.multiarray import (
diff --git a/numpy/lib/utils.pyi b/numpy/lib/utils.pyi
index 407ce1120..52ca92774 100644
--- a/numpy/lib/utils.pyi
+++ b/numpy/lib/utils.pyi
@@ -87,3 +87,5 @@ def lookfor(
) -> None: ...
def safe_eval(source: str | AST) -> Any: ...
+
+def show_runtime() -> None: ...