summaryrefslogtreecommitdiff
path: root/giscanner/introspectablepass.py
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2020-04-28 11:18:18 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2020-04-28 11:19:29 +0200
commitbb364bd25d50215b0c40d98ba5ecf2aa779e53a2 (patch)
tree1618dbab70c70a86d6bf85e63252759fbd662732 /giscanner/introspectablepass.py
parent770d81f2a32a7bbaa64cd923a69838574e2f0454 (diff)
downloadgobject-introspection-bb364bd25d50215b0c40d98ba5ecf2aa779e53a2.tar.gz
Revert "Add support for element-type to GListModel"
Breaks vapigen and changes GListModel definition in Gio-2.0.gir This reverts commit a9f45431684e6be3623e272e54d481e4c5d9423d.
Diffstat (limited to 'giscanner/introspectablepass.py')
-rw-r--r--giscanner/introspectablepass.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/giscanner/introspectablepass.py b/giscanner/introspectablepass.py
index 8ac50064..e2056b42 100644
--- a/giscanner/introspectablepass.py
+++ b/giscanner/introspectablepass.py
@@ -89,8 +89,7 @@ class IntrospectablePass(object):
return
if (isinstance(node.type, (ast.List, ast.Array))
- and node.type.element_type == ast.TYPE_ANY
- and not (isinstance(node.type, ast.List) and node.type.name == 'Gio.ListModel')):
+ and node.type.element_type == ast.TYPE_ANY):
self._parameter_warning(parent, node, "Missing (element-type) annotation")
parent.introspectable = False
return