aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-10-26 19:45:32 -0400
committerXavier Claessens <xclaesse@gmail.com>2021-10-27 09:51:52 -0400
commitf4b91c4306b68c200a54a53ba872903eed2fcd18 (patch)
tree5375cdca6d768eba2e6bc9b2b170f53a6010859b
parent894735288920816b9ad668ca27ce2e013a3f2640 (diff)
downloadmeson-f4b91c4306b68c200a54a53ba872903eed2fcd18.zip
meson-f4b91c4306b68c200a54a53ba872903eed2fcd18.tar.gz
meson-f4b91c4306b68c200a54a53ba872903eed2fcd18.tar.bz2
Revert "mark a couple of typing-only imports as noqa, to appease pyflakes"
This reverts commit 6cc1b8441c0cf7428e52bdf1cd541ea830a4eb83. The latest version of pyflakes learned to detect that correctly.
-rw-r--r--mesonbuild/interpreterbase/interpreterbase.py4
-rw-r--r--mesonbuild/mlog.py4
2 files changed, 2 insertions, 6 deletions
diff --git a/mesonbuild/interpreterbase/interpreterbase.py b/mesonbuild/interpreterbase/interpreterbase.py
index 555db3c..326204d 100644
--- a/mesonbuild/interpreterbase/interpreterbase.py
+++ b/mesonbuild/interpreterbase/interpreterbase.py
@@ -52,9 +52,7 @@ import typing as T
import textwrap
if T.TYPE_CHECKING:
- # T.cast is not handled by flake8 to detect quoted annotation use
- # see https://github.com/PyCQA/pyflakes/pull/632
- from ..interpreter import Interpreter # noqa
+ from ..interpreter import Interpreter
HolderMapType = T.Dict[
T.Union[
diff --git a/mesonbuild/mlog.py b/mesonbuild/mlog.py
index 20d2817..60bc09e 100644
--- a/mesonbuild/mlog.py
+++ b/mesonbuild/mlog.py
@@ -22,9 +22,7 @@ from contextlib import contextmanager
from pathlib import Path
if T.TYPE_CHECKING:
- # T.Union is not handled by flake8 to detect quoted annotation use (StringProtocol)
- # see https://github.com/PyCQA/pyflakes/pull/632
- from ._typing import StringProtocol, SizedStringProtocol # noqa: F401
+ from ._typing import StringProtocol, SizedStringProtocol
"""This is (mostly) a standalone module used to write logging
information about Meson runs. Some output goes to screen,