[rtems-central commit] specverify: Fix type annotation

Sebastian Huber sebh at rtems.org
Wed Oct 28 07:17:47 UTC 2020


Module:    rtems-central
Branch:    master
Commit:    9bf147c209551957d6a17214e7e94978ea1f3bab
Changeset: http://git.rtems.org/rtems-central/commit/?id=9bf147c209551957d6a17214e7e94978ea1f3bab

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Oct 28 08:17:19 2020 +0100

specverify: Fix type annotation

---

 rtemsspec/specverify.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rtemsspec/specverify.py b/rtemsspec/specverify.py
old mode 100644
new mode 100755
index e3b299a..060a39d
--- a/rtemsspec/specverify.py
+++ b/rtemsspec/specverify.py
@@ -48,10 +48,10 @@ class _Filter(logging.Filter):
         super().__init__()
         self._counts = {}  # type: Dict[int, int]
 
-    def filter(self, record: logging.LogRecord) -> int:
+    def filter(self, record: logging.LogRecord) -> bool:
         count = self._counts.get(record.levelno, 0)
         self._counts[record.levelno] = count + 1
-        return 1
+        return True
 
     def get_verify_info(self) -> VerifyStatus:
         """ Returns the gathered verify information. """



More information about the vc mailing list