summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/mallardwriter.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py
index bb268be7..e596eca8 100644
--- a/giscanner/mallardwriter.py
+++ b/giscanner/mallardwriter.py
@@ -182,6 +182,10 @@ class MallardWriter(object):
continue
if getattr(node, 'disguised', False):
continue
+ if isinstance(node, ast.Record) and \
+ self._language == 'Python' and \
+ node.is_gtype_struct_for is not None:
+ continue
nodes.append(node)
if isinstance(node, (ast.Class, ast.Interface, ast.Record)):
nodes += getattr(node, 'methods', [])