summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBas van Beek <b.f.van.beek@vu.nl>2021-04-23 14:07:45 +0200
committerBas van Beek <b.f.van.beek@vu.nl>2021-04-23 14:21:50 +0200
commit2e60be21905d2fd53d712ffd90daa94cf073e3a7 (patch)
tree6bea0f41baaff67f3d07a7078b15502ffabfa8e0
parent350d7a55d75e916159e3e31417e3a164f6dab73c (diff)
downloadnumpy-2e60be21905d2fd53d712ffd90daa94cf073e3a7.tar.gz
ENH: Add improved placeholder annotations for `np.f2py`
-rw-r--r--numpy/f2py/__init__.pyi17
1 files changed, 14 insertions, 3 deletions
diff --git a/numpy/f2py/__init__.pyi b/numpy/f2py/__init__.pyi
index 50594c1e3..3f7231fed 100644
--- a/numpy/f2py/__init__.pyi
+++ b/numpy/f2py/__init__.pyi
@@ -1,7 +1,18 @@
from typing import Any, List
+from numpy.f2py import (
+ f2py_testing as f2py_testing,
+)
+
__all__: List[str]
-run_main: Any
-compile: Any
-f2py_testing: Any
+def run_main(comline_list): ...
+def compile(
+ source,
+ modulename=...,
+ extra_args=...,
+ verbose=...,
+ source_fn=...,
+ extension=...,
+ full_output=...,
+): ...