summaryrefslogtreecommitdiff
path: root/giscanner/introspectablepass.py
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-08-29 21:51:34 -0400
committerColin Walters <walters@verbum.org>2011-08-29 21:51:34 -0400
commitedb4146278f74030fba9bfd79e21f070f24d4434 (patch)
tree2d2b98216c82b6bd8c700d597d6b19273f86c628 /giscanner/introspectablepass.py
parentcda0aece025c26a407e5e6c918a4312b87450754 (diff)
downloadgobject-introspection-edb4146278f74030fba9bfd79e21f070f24d4434.tar.gz
Fix warning for missing (element-type)
While looking for a different bug, I noticed that the introspectable pass lists was missing GSList. And the warning was never set up to fire anyways. Fix it and add a test.
Diffstat (limited to 'giscanner/introspectablepass.py')
-rw-r--r--giscanner/introspectablepass.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/introspectablepass.py b/giscanner/introspectablepass.py
index ebb1dedc..95d54b0a 100644
--- a/giscanner/introspectablepass.py
+++ b/giscanner/introspectablepass.py
@@ -84,8 +84,8 @@ class IntrospectablePass(object):
parent.introspectable = False
return
- if not isinstance(node.type, ast.List) and \
- (node.type.target_giname == 'GLib.List'):
+ if (isinstance(node.type, ast.List)
+ and node.type.element_type == ast.TYPE_ANY):
self._parameter_warning(parent, node, "Missing (element-type) annotation")
parent.introspectable = False
return