diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2020-12-27 17:14:19 +0100 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2021-01-31 23:06:22 +0100 |
commit | 77de3fcc616757c775895873ccabc79ce865fe9b (patch) | |
tree | 4320fbe95a9c53f615ffd6516df85dad5cc33277 /giscanner/ccompiler.py | |
parent | 5ed5b1ed30938dbe70e50feffa56ee5ee47696d2 (diff) | |
download | gobject-introspection-wip/nielsdg/python-formatter-out-params.tar.gz |
docwriter: Fix (out) arguments for Pythonwip/nielsdg/python-formatter-out-params
The documentation formatter for Python3 doesn't properly deal with
`(out)` arguments, which leads to those being added as function
arguments, rather than return values. This commit fixes that by mostly
copying the logic from the GJS formatter.
For future work, it might be worth looking into whether Python type
annotations can be used to add types to arguments.
Fixes https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/235
Diffstat (limited to 'giscanner/ccompiler.py')
0 files changed, 0 insertions, 0 deletions