diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-07-03 12:38:15 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-07-19 18:31:37 -0400 |
commit | cfc3960956f98aff74b118ce3de89a40ef3496c1 (patch) | |
tree | 47340c7dc289e979fd6ba743ceb649fbe9c3e222 | |
parent | 621264e1d4f1a8623c6f82b774c8c9f099e98b62 (diff) | |
download | meson-cfc3960956f98aff74b118ce3de89a40ef3496c1.zip meson-cfc3960956f98aff74b118ce3de89a40ef3496c1.tar.gz meson-cfc3960956f98aff74b118ce3de89a40ef3496c1.tar.bz2 |
mypy: add more mixin base classes
These don't have new errors or old ignored ones, but add them anyway so
we can generally validate their sanity.
-rw-r--r-- | mesonbuild/linkers/linkers.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py index 5e76a92..8948347 100644 --- a/mesonbuild/linkers/linkers.py +++ b/mesonbuild/linkers/linkers.py @@ -316,7 +316,7 @@ else: StaticLinkerBase = DynamicLinkerBase = object -class VisualStudioLikeLinker: +class VisualStudioLikeLinker(StaticLinkerBase): always_args = ['/NOLOGO'] def __init__(self, machine: str): @@ -559,7 +559,7 @@ def evaluate_rpath(p: str, build_dir: str, from_dir: str) -> str: return os.path.relpath(os.path.join(build_dir, p), os.path.join(build_dir, from_dir)) -class PosixDynamicLinkerMixin: +class PosixDynamicLinkerMixin(DynamicLinkerBase): """Mixin class for POSIX-ish linkers. @@ -578,7 +578,7 @@ class PosixDynamicLinkerMixin: return ['-L' + dirname] -class GnuLikeDynamicLinkerMixin: +class GnuLikeDynamicLinkerMixin(DynamicLinkerBase): """Mixin class for dynamic linkers that provides gnu-like interface. |