Skip to content

Commit c66c85e

Browse files
committed
0.3.4 Update
Even if some parameters in interfaced procedures have the same number of dimensions, the shape might be different
1 parent f1b3806 commit c66c85e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = 'sphinxfortran_ng'
3-
version = '0.3.3'
3+
version = '0.3.4'
44
authors = [{name = "Lorenzo Crippa", email="[email protected]"}]
55
description = "An improved version of the sphinx-fortran python module"
66
readme = "README.md"

src/sphinxfortran_ng/fortran_autodoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@ def format_interfacearg(self, arg, impl):
12731273
other = self.routines[i]['vars'][arg]
12741274
if ('dimension' in other and 'dimension' not in ref) or \
12751275
('dimension' not in other and 'dimension' in ref) or \
1276-
('dimension' in other and 'dimension' in ref and len(other['dimension']) != len(ref['dimension'])):
1276+
('dimension' in other and 'dimension' in ref and (other['dimension'] != ref['dimension'])):
12771277
vdim = '(various shapes)'
12781278
vattr = self.format_argattr(ref)
12791279
vdesc = ref['desc'] if 'desc' in ref else ''

0 commit comments

Comments
 (0)