modules/rust: fix initialize signature

So that it's accurate, and we don't need to use to use `#type: ignore`
declaration
pull/9126/head
Dylan Baker 3 years ago
parent 8f3695fc53
commit 65b8c2663b
  1. 4
      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)

Loading…
Cancel
Save