aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/d.py
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/d.py
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/d.py')
-rw-r--r--mesonbuild/compilers/d.py3
1 files changed, 2 insertions, 1 deletions
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