From 6deaef4760500e22bf3c3400dbd19437e4c2a71f Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Thu, 27 Jul 2017 10:49:10 +0100 Subject: [PATCH] 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. --- assoc.pyx | 2 +- sym.pyx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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): -- 2.11.0