diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-09-21 12:48:51 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-09-24 12:14:13 -0700 |
commit | 682d22129c32edc64c610478368e1bc1f1dbc921 (patch) | |
tree | 093f5e8b064772ee3f0811c81123bb0df872bfee /mesonbuild/linkers.py | |
parent | 2c0fbe161d61d2d15d29892456544442ab1c4ff6 (diff) | |
download | meson-682d22129c32edc64c610478368e1bc1f1dbc921.zip meson-682d22129c32edc64c610478368e1bc1f1dbc921.tar.gz meson-682d22129c32edc64c610478368e1bc1f1dbc921.tar.bz2 |
compilers: Tell mypy that the compiler mixins are just that
We do this by making the mixins inherit the Compiler class only when
mypy is examining the code (using some clever inheritance shenanigans).
This caught a bunch of issues, and also lets us delete a ton of code.
Diffstat (limited to 'mesonbuild/linkers.py')
-rw-r--r-- | mesonbuild/linkers.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py index d85c88e..ed28fa3 100644 --- a/mesonbuild/linkers.py +++ b/mesonbuild/linkers.py @@ -351,6 +351,7 @@ class DynamicLinker(LinkerEnvVarsMixin, metaclass=abc.ABCMeta): self.version = version self.prefix_arg = prefix_arg self.always_args = always_args + self.machine = None # type: T.Optional[str] def __repr__(self) -> str: return '<{}: v{} `{}`>'.format(type(self).__name__, self.version, ' '.join(self.exelist)) |