Revert "mark a couple of typing-only imports as noqa, to appease pyflakes"

This reverts commit 6cc1b8441c.

The latest version of pyflakes learned to detect that correctly.
pull/9667/head
Eli Schwartz 3 years ago committed by Nirbheek Chauhan
parent 5f5ebc7262
commit 55c87f5bd1
  1. 4
      mesonbuild/interpreterbase/interpreterbase.py
  2. 4
      mesonbuild/mlog.py

@ -52,9 +52,7 @@ import typing as T
import textwrap import textwrap
if T.TYPE_CHECKING: if T.TYPE_CHECKING:
# T.cast is not handled by flake8 to detect quoted annotation use from ..interpreter import Interpreter
# see https://github.com/PyCQA/pyflakes/pull/632
from ..interpreter import Interpreter # noqa
HolderMapType = T.Dict[ HolderMapType = T.Dict[
T.Union[ T.Union[

@ -22,9 +22,7 @@ from contextlib import contextmanager
from pathlib import Path from pathlib import Path
if T.TYPE_CHECKING: if T.TYPE_CHECKING:
# T.Union is not handled by flake8 to detect quoted annotation use (StringProtocol) from ._typing import StringProtocol, SizedStringProtocol
# see https://github.com/PyCQA/pyflakes/pull/632
from ._typing import StringProtocol, SizedStringProtocol # noqa: F401
"""This is (mostly) a standalone module used to write logging """This is (mostly) a standalone module used to write logging
information about Meson runs. Some output goes to screen, information about Meson runs. Some output goes to screen,

Loading…
Cancel
Save