diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-03-22 11:28:01 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-03-22 16:53:51 -0700 |
commit | d2046540890007cd921c60484a274d6aef17bdda (patch) | |
tree | 0c05c9eb4c307fb7c0903c89c1bbb36c9c205f5c | |
parent | 8771045d797b442f1243916bf5e94a263a928149 (diff) | |
download | meson-d2046540890007cd921c60484a274d6aef17bdda.zip meson-d2046540890007cd921c60484a274d6aef17bdda.tar.gz meson-d2046540890007cd921c60484a274d6aef17bdda.tar.bz2 |
dependencies/base: Use Compiler instead of CompilerType
Since Compiler is actually useful now as a base class, unlike when this
code was written.
-rw-r--r-- | mesonbuild/dependencies/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py index 27c33b6..0045805 100644 --- a/mesonbuild/dependencies/base.py +++ b/mesonbuild/dependencies/base.py @@ -39,7 +39,7 @@ from ..mesondata import mesondata from ..programs import ExternalProgram, find_external_program if T.TYPE_CHECKING: - from ..compilers.compilers import CompilerType # noqa: F401 + from ..compilers.compilers import Compiler DependencyType = T.TypeVar('DependencyType', bound='Dependency') # These must be defined in this file to avoid cyclical references. @@ -2313,7 +2313,7 @@ def factory_methods(methods: T.Set[DependencyMethods]) -> T.Callable[['FactoryTy def detect_compiler(name: str, env: Environment, for_machine: MachineChoice, - language: T.Optional[str]) -> T.Optional['CompilerType']: + language: T.Optional[str]) -> T.Optional['Compiler']: """Given a language and environment find the compiler used.""" compilers = env.coredata.compilers[for_machine] |