From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CEPPEjZ+9V/iVAAA0tVLHw (envelope-from ) for ; Wed, 06 Jan 2021 09:09:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gN+gDjZ+9V8WGAAA1q6Kng (envelope-from ) for ; Wed, 06 Jan 2021 09:09:10 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 093F69401C0 for ; Wed, 6 Jan 2021 09:09:10 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 3555429D6C; Wed, 6 Jan 2021 04:08:58 -0500 (EST) X-Greylist: delayed 162041 seconds by postgrey-1.36 at nmbug; Wed, 06 Jan 2021 04:08:55 EST Received: from mailproxy05.manitu.net (unknown [IPv6:2a00:1828:1000:1110::2]) by mail.notmuchmail.org (Postfix) with ESMTPS id 3D9C029D45 for ; Wed, 6 Jan 2021 04:08:55 -0500 (EST) Received: from localhost (200116b86027b40061b67b8d208c5aed.dip.versatel-1u1.de [IPv6:2001:16b8:6027:b400:61b6:7b8d:208c:5aed]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: michael@grubix.eu) by mailproxy05.manitu.net (Postfix) with ESMTPSA id 6F6061B602EB; Wed, 6 Jan 2021 10:08:44 +0100 (CET) From: Michael J Gruber To: notmuch@notmuchmail.org Subject: [PATCH 1/3] python/notmuch2: correct docstring for Database.count_messages() Date: Wed, 6 Jan 2021 10:08:40 +0100 Message-Id: <415e4bc6d0df225ed5cb7cb4cca89bf13509f517.1609347527.git.git@grubix.eu> X-Mailer: git-send-email 2.30.0.287.g27f67507f7 In-Reply-To: References: MIME-Version: 1.0 Message-ID-Hash: ZVSHIM54OCCELLJY2XEHEYE5A3EIFALA X-Message-ID-Hash: ZVSHIM54OCCELLJY2XEHEYE5A3EIFALA X-MailFrom: git@grubix.eu X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.60 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 093F69401C0 X-Spam-Score: 0.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2hMEVKIhNiLc Signed-off-by: Michael J Gruber --- bindings/python-cffi/notmuch2/_database.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/python-cffi/notmuch2/_database.py b/bindings/python-cffi/notmuch2/_database.py index 868f4408..31b282f6 100644 --- a/bindings/python-cffi/notmuch2/_database.py +++ b/bindings/python-cffi/notmuch2/_database.py @@ -605,10 +605,10 @@ class Database(base.NotmuchObject): omit_excluded=EXCLUDE.TRUE, sort=SORT.UNSORTED, # Check this default exclude_tags=None): - """Search the database for messages. + """Search the database for messages and count. - :returns: An iterator over the messages found. - :rtype: MessageIter + :returns: The number of messages found. + :rtype: int :raises ObjectDestroyedError: if used after destroyed. """ -- 2.30.0.rc0.297.gbcca948854