Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Apr 16, 2024
1 parent c0f1d8b commit ccecfe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/sdist/amici/swig.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _annotation_from_docstring(self, node: ast.FunctionDef):

if (
match := re.match(
r"\s*:type\s*(\w+):\W*(?::py:class:`)?(.+)`?\s*$", line
r"\s*:type\s+(\w+):\s+(?::py:class:`)?(.+)`?\s*$", line
)
) and not match.group(1).startswith(":"):
for arg in node.args.args:
Expand Down

0 comments on commit ccecfe4

Please sign in to comment.