diff options
author | Colin Walters <walters@verbum.org> | 2012-12-10 13:12:13 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-12-10 13:46:04 -0500 |
commit | f8e95c68dc0e4a0fb35979db7415de8ec09e1e7e (patch) | |
tree | 38b73d28154947280c9c783295a922d2fc9dc03a /giscanner/introspectablepass.py | |
parent | 702a24d97be5f046cabbe8ae84638683de114e8a (diff) | |
download | gobject-introspection-f8e95c68dc0e4a0fb35979db7415de8ec09e1e7e.tar.gz |
scanner: Warn if we're missing (element-type) for GPtrArray
For background,
See https://bugzilla.gnome.org/show_bug.cgi?id=629682
See https://bugzilla.gnome.org/show_bug.cgi?id=689871
Basically we should emit a warning here.
https://bugzilla.gnome.org/show_bug.cgi?id=689998
Diffstat (limited to 'giscanner/introspectablepass.py')
-rw-r--r-- | giscanner/introspectablepass.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/introspectablepass.py b/giscanner/introspectablepass.py index 97ccfe71..b87156a8 100644 --- a/giscanner/introspectablepass.py +++ b/giscanner/introspectablepass.py @@ -87,7 +87,7 @@ class IntrospectablePass(object): parent.introspectable = False return - if (isinstance(node.type, ast.List) + if (isinstance(node.type, (ast.List, ast.Array)) and node.type.element_type == ast.TYPE_ANY): self._parameter_warning(parent, node, "Missing (element-type) annotation") parent.introspectable = False |