From a67f04eb237f9b8a1b60fd0118a5bb050c9569e0 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 6 Jan 2023 11:23:32 -0800 Subject: modules/rust: Fix annotation for _bindgen_bin Which suffers from the same issue as the gnome module --- mesonbuild/modules/rust.py | 4 ++-- 1 file 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, -- cgit v1.1