From: Mark Wooding Date: Thu, 27 Jul 2017 09:49:10 +0000 (+0100) Subject: assoc.pyx, sym.pyx: Mark arguments as `not None'. X-Git-Tag: 1.1.0~10 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib-python/commitdiff_plain/6deaef4760500e22bf3c3400dbd19437e4c2a71f?ds=sidebyside assoc.pyx, sym.pyx: Mark arguments as `not None'. They should have been marked before, but I was careless. Apparently this will be the default in future, which seems like a good thing. --- diff --git a/assoc.pyx b/assoc.pyx index 38b8446..7685dd6 100644 --- a/assoc.pyx +++ b/assoc.pyx @@ -73,7 +73,7 @@ cdef class AssocTable (Mapping): cdef class _AssocIter (_MapIterator): cdef AssocTable t cdef assoc_iter i - def __cinit__(me, AssocTable t): + def __cinit__(me, AssocTable t not None): me.t = t assoc_mkiter(&me.i, &me.t._t) cdef void *_next(me): diff --git a/sym.pyx b/sym.pyx index 48ba3f0..eab6984 100644 --- a/sym.pyx +++ b/sym.pyx @@ -71,7 +71,7 @@ cdef class SymTable (Mapping): cdef class _SymIter (_MapIterator): cdef SymTable t cdef sym_iter i - def __cinit__(me, SymTable t): + def __cinit__(me, SymTable t not None): me.t = t sym_mkiter(&me.i, &me.t._t) cdef void *_next(me):