diff options
| author | Rohit Goswami <rog32@hi.is> | 2023-04-16 18:18:16 +0000 |
|---|---|---|
| committer | Rohit Goswami <rog32@hi.is> | 2023-04-16 18:18:16 +0000 |
| commit | f331fe66df280437ca1d4353e89e72dc7b1a3dd6 (patch) | |
| tree | df9c3690e15a6892ca915dac029d7673f2314efa /numpy | |
| parent | f96b8daea959db191ff84b80dbc1ea948722fbaa (diff) | |
| download | numpy-f331fe66df280437ca1d4353e89e72dc7b1a3dd6.tar.gz | |
BUG: Fix return types for functions in f2py
Diffstat (limited to 'numpy')
| -rwxr-xr-x | numpy/f2py/crackfortran.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py index 4be41a61b..f87de4943 100755 --- a/numpy/f2py/crackfortran.py +++ b/numpy/f2py/crackfortran.py @@ -2850,6 +2850,8 @@ def analyzevars(block): kindselect, charselect, typename = cracktypespec( typespec, selector) vars[n]['typespec'] = typespec + if block['result']: + vars[block['result']]['typespec'] = typespec if kindselect: if 'kind' in kindselect: try: |
