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/9469/head
Eli Schwartz 3 years ago committed by Xavier Claessens
parent 8947352889
commit f4b91c4306
  1. 4
      mesonbuild/interpreterbase/interpreterbase.py
  2. 4
      mesonbuild/mlog.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[

@ -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,

Loading…
Cancel
Save