From 0353044587af50a33a96843900f90e419df74db2 Mon Sep 17 00:00:00 2001 From: Timothy Hobbs Date: Sun, 25 Apr 2021 21:51:12 +0200 Subject: [PATCH] =?UTF-8?q?bool=20=E2=86=92=20cbool=20(probably=20just=20a?= =?UTF-8?q?=20typo)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes https://github.com/capnproto/pycapnp/issues/249 --- capnp/templates/module.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capnp/templates/module.pyx b/capnp/templates/module.pyx index e0ed81c..024b9d8 100644 --- a/capnp/templates/module.pyx +++ b/capnp/templates/module.pyx @@ -69,7 +69,7 @@ cpdef _set_{{field.name}}(self, {{field.type}}_t value): cpdef _set_{{field.name}}(self, value=None): pass {% elif 'bool' == field['type'] -%} -cpdef _set_{{field.name}}(self, bool value): +cpdef _set_{{field.name}}(self, cbool value): self.thisptr_child.set{{field.c_name}}(value) {% elif 'list' == field['type'] -%} cpdef _set_{{field.name}}(self, list value):