8000 Merge pull request #29146 from jorenham/typing/f2py-2.3.0 · numpy/numpy@0e0c8d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e0c8d3

Browse files
authored
Merge pull request #29146 from jorenham/typing/f2py-2.3.0
TYP: fix minor ``f2py`` stub inconsistencies
2 parents 0b6a990 + cd53806 commit 0e0c8d3

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

numpy/f2py/auxfuncs.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ from .cfuncs import errmess
1010
__all__ = [
1111
"applyrules",
1212
"containscommon",
13+
"containsderivedtypes",
1314
"debugcapi",
1415
"dictappend",
1516
"errmess",
@@ -200,7 +201,7 @@ def isintent_inplace(var: _Var) -> bool: ...
200201
def isintent_aux(var: _Var) -> bool: ...
201202

202203
#
203-
def containsderivedtypes(rout: _ROut) -> _Bool: ...
204+
def containsderivedtypes(rout: _ROut) -> L[0, 1]: ...
204205
def containscommon(rout: _ROut) -> _Bool: ...
205206
def hasexternals(rout: _ROut) -> bool: ...
206207
def hasresultnote(rout: _ROut) -> _Bool: ...

numpy/f2py/diagnose.pyi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
from _typeshed import StrOrBytesPath
2-
3-
def run_command(cmd: StrOrBytesPath) -> None: ...
41
def run() -> None: ...

0 commit comments

Comments
 (0)
0