From 27813efc04a04fbbf10fcdc7c703930426e48f97 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sun, 2 Jun 2024 12:05:44 +0200 Subject: [PATCH] Fix bogus type errors dug up by mypy Signed-off-by: Jan Lindemann --- tools/python/jwutils/algo/ShuntingYard.py | 2 +- tools/python/jwutils/log.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/jwutils/algo/ShuntingYard.py b/tools/python/jwutils/algo/ShuntingYard.py index a1e0970..598ea94 100644 --- a/tools/python/jwutils/algo/ShuntingYard.py +++ b/tools/python/jwutils/algo/ShuntingYard.py @@ -4,7 +4,7 @@ import shlex # --- python 2 / 3 compatibility stuff try: - basestring + basestring # type: ignore except NameError: basestring = str diff --git a/tools/python/jwutils/log.py b/tools/python/jwutils/log.py index d0fecec..bdce9ee 100644 --- a/tools/python/jwutils/log.py +++ b/tools/python/jwutils/log.py @@ -10,7 +10,7 @@ from . import misc # --- python 2 / 3 compatibility stuff try: - basestring + basestring # type: ignore except NameError: basestring = str