diff options
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/introspectablepass.py | 4 |
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 |