From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CE0A215806E for ; Tue, 6 Jun 2023 06:52:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E9F1DE0883; Tue, 6 Jun 2023 06:52:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CF5A1E0883 for ; Tue, 6 Jun 2023 06:52:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D6A10335D6A for ; Tue, 6 Jun 2023 06:52:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E9B36A88 for ; Tue, 6 Jun 2023 06:52:42 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1686034360.0911ea932d81020abe87774ff4819499c0cb891a.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: lib/portage/util/ X-VCS-Repository: proj/portage X-VCS-Files: lib/portage/util/__init__.py X-VCS-Directories: lib/portage/util/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0911ea932d81020abe87774ff4819499c0cb891a X-VCS-Branch: master Date: Tue, 6 Jun 2023 06:52:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 67b038d7-06ad-463e-adad-3efb0e88ff49 X-Archives-Hash: 59555e0c714725df0c3cbfbd53bc8841 commit: 0911ea932d81020abe87774ff4819499c0cb891a Author: Berin Aniesh gmail com> AuthorDate: Tue Jun 6 06:16:35 2023 +0000 Commit: Sam James gentoo org> CommitDate: Tue Jun 6 06:52:40 2023 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=0911ea93 portage.util.writemsg_level: Add return type type annotation Signed-off-by: Berin Aniesh gmail.com> Closes: https://github.com/gentoo/portage/pull/1048 Signed-off-by: Sam James gentoo.org> lib/portage/util/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/portage/util/__init__.py b/lib/portage/util/__init__.py index f0115aea3..1f8c9e94f 100644 --- a/lib/portage/util/__init__.py +++ b/lib/portage/util/__init__.py @@ -130,7 +130,7 @@ def writemsg_stdout(mystr: str, noiselevel: int = 0) -> None: writemsg(mystr, noiselevel=noiselevel, fd=sys.stdout) -def writemsg_level(msg: str, level: int = 0, noiselevel: int = 0): +def writemsg_level(msg: str, level: int = 0, noiselevel: int = 0) -> None: """ Show a message for the given level as defined by the logging module (default is 0).