summaryrefslogtreecommitdiff
path: root/giscanner/introspectablepass.py
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-12-10 13:12:13 -0500
committerColin Walters <walters@verbum.org>2012-12-10 13:46:04 -0500
commitf8e95c68dc0e4a0fb35979db7415de8ec09e1e7e (patch)
tree38b73d28154947280c9c783295a922d2fc9dc03a /giscanner/introspectablepass.py
parent702a24d97be5f046cabbe8ae84638683de114e8a (diff)
downloadgobject-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.py2
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