From 65b8c2663b3926caa95a987088b498d5d74a4d42 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 16 Aug 2021 12:01:00 -0700 Subject: [PATCH] modules/rust: fix initialize signature So that it's accurate, and we don't need to use to use `#type: ignore` declaration --- mesonbuild/modules/unstable_rust.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/modules/unstable_rust.py b/mesonbuild/modules/unstable_rust.py index 5d2ad93fa..998dbfdbc 100644 --- a/mesonbuild/modules/unstable_rust.py +++ b/mesonbuild/modules/unstable_rust.py @@ -228,5 +228,5 @@ class RustModule(ExtensionModule): return ModuleReturnValue([target], [target]) -def initialize(*args: T.List, **kwargs: T.Dict) -> RustModule: - return RustModule(*args, **kwargs) # type: ignore +def initialize(interp: 'Interpreter') -> RustModule: + return RustModule(interp)