summaryrefslogtreecommitdiff
path: root/giscanner/annotationparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/annotationparser.py')
-rw-r--r--giscanner/annotationparser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index 82ac15a5..12b6063c 100644
--- a/giscanner/annotationparser.py
+++ b/giscanner/annotationparser.py
@@ -329,7 +329,8 @@ class AnnotationApplier(object):
if not node.direction:
node.direction = self._guess_direction(node)
node.transfer = self._extract_transfer(parent, node, options)
- node.allow_none = 'allow-none' in options
+ if 'allow-none' in options:
+ node.allow_none = True
assert node.transfer is not None