compilers: fix flake8 issues
@@ -32,13 +32,13 @@ from ..arglist import CompilerArgs
if T.TYPE_CHECKING:
from ..build import BuildTarget
- from ..coredata import OptionDictType, KeyedOptionDictType
+ from ..coredata import KeyedOptionDictType
from ..envconfig import MachineInfo
from ..environment import Environment
from ..linkers import DynamicLinker, RSPFileSyntax
from ..dependencies import Dependency
- CompilerType = T.TypeVar('CompilerType', bound=Compiler)
+ CompilerType = T.TypeVar('CompilerType', bound='Compiler')
_T = T.TypeVar('_T')
"""This file contains the data files of all compilers Meson knows
@@ -1232,7 +1232,6 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta):
with self._build_wrapper(code, env, extra_args, dependencies, mode, disable_cache=disable_cache) as p:
return p.returncode == 0, p.cached
-
def links(self, code: 'mesonlib.FileOrString', env: 'Environment', *,
extra_args: T.Union[None, T.List[str], CompilerArgs, T.Callable[[CompileCheckMode], T.List[str]]] = None,
dependencies: T.Optional[T.List['Dependency']] = None,
