aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-08-26 09:37:39 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-09-24 10:36:05 -0700
commit9795323b8649b8615e55cad981d235e432afef02 (patch)
tree4a53251558aca1906f776893604d45ff03cf74dc /mesonbuild/compilers
parent92b21a0045e32229f5b3b01429b683fbe1f33abe (diff)
downloadmeson-9795323b8649b8615e55cad981d235e432afef02.zip
meson-9795323b8649b8615e55cad981d235e432afef02.tar.gz
meson-9795323b8649b8615e55cad981d235e432afef02.tar.bz2
pylint: check for duplicate imports
I ran into one of these from LGTM, and it would be nice if pylint could warn me as part of my local development process instead of waiting for the CI to tell me.
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/cpp.py2
-rw-r--r--mesonbuild/compilers/d.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index 168ba7a..ecc911d 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/mesonbuild/compilers/cpp.py
@@ -47,7 +47,7 @@ if T.TYPE_CHECKING:
from ..environment import Environment
from ..linkers import DynamicLinker
from ..programs import ExternalProgram
- from .mixins.clike import CLikeCompiler as CompilerMixinBase
+ CompilerMixinBase = CLikeCompiler
else:
CompilerMixinBase = object
diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py
index 19706c5..18a5d68 100644
--- a/mesonbuild/compilers/d.py
+++ b/mesonbuild/compilers/d.py
@@ -33,11 +33,12 @@ from .compilers import (
from .mixins.gnu import GnuCompiler
if T.TYPE_CHECKING:
- from .compilers import Compiler as CompilerMixinBase
from ..programs import ExternalProgram
from ..envconfig import MachineInfo
from ..environment import Environment
from ..linkers import DynamicLinker
+
+ CompilerMixinBase = Compiler
else:
CompilerMixinBase = object