diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2023-01-06 11:23:32 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2023-01-10 09:53:22 -0800 |
commit | a67f04eb237f9b8a1b60fd0118a5bb050c9569e0 (patch) | |
tree | b87411f13754e6297788c03a623c9c276b54d4e3 | |
parent | 27df0e09f701e88c5f924ea75adb0aea236091cb (diff) | |
download | meson-a67f04eb237f9b8a1b60fd0118a5bb050c9569e0.zip meson-a67f04eb237f9b8a1b60fd0118a5bb050c9569e0.tar.gz meson-a67f04eb237f9b8a1b60fd0118a5bb050c9569e0.tar.bz2 |
modules/rust: Fix annotation for _bindgen_bin
Which suffers from the same issue as the gnome module
-rw-r--r-- | mesonbuild/modules/rust.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/modules/rust.py b/mesonbuild/modules/rust.py index d41b99c..02003ec 100644 --- a/mesonbuild/modules/rust.py +++ b/mesonbuild/modules/rust.py @@ -29,7 +29,7 @@ if T.TYPE_CHECKING: from ..interpreter import Interpreter from ..interpreter import kwargs as _kwargs from ..interpreter.interpreter import SourceInputs, SourceOutputs - from ..programs import ExternalProgram + from ..programs import ExternalProgram, OverrideProgram from typing_extensions import TypedDict @@ -56,7 +56,7 @@ class RustModule(ExtensionModule): def __init__(self, interpreter: Interpreter) -> None: super().__init__(interpreter) - self._bindgen_bin: T.Optional[ExternalProgram] = None + self._bindgen_bin: T.Optional[T.Union[ExternalProgram, Executable, OverrideProgram]] = None self.methods.update({ 'test': self.test, 'bindgen': self.bindgen, |