]> git.notmuchmail.org Git - notmuch/commit
python: annotate all calls into libnotmuch with types
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Sun, 9 Oct 2011 22:12:54 +0000 (00:12 +0200)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Thu, 1 Dec 2011 21:24:19 +0000 (22:24 +0100)
commit3434d194026ff65217d9342ffe511f67fd71e79f
treeadcd4621f97ac5143efd378530d62a78f3b937f5
parente92b438f46a3ad7103299b1c62747f36d9de06bf
python: annotate all calls into libnotmuch with types

Add type information to the ctypes._FuncPtr wrappers and
use the wrapper classes instead of c_void_p for pointers
to notmuch_*_t.

This enables the ctypes library to type check parameters
being handed to functions from the notmuch library.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
bindings/python/notmuch/database.py
bindings/python/notmuch/filename.py
bindings/python/notmuch/message.py
bindings/python/notmuch/tag.py
bindings/python/notmuch/thread.py