File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -381,13 +381,22 @@ def test_interfaces_success(good_code):
381381
382382
383383def test_imports_and_implements_within_interface (make_input_bundle ):
384- interface_code = """
384+ ibar_code = """
385385@external
386386def foobar():
387387 ...
388388"""
389+ ifoo_code = """
390+ import bar
389391
390- input_bundle = make_input_bundle ({"foo.vyi" : interface_code })
392+ implements: bar
393+
394+ @external
395+ def foobar():
396+ ...
397+ """
398+
399+ input_bundle = make_input_bundle ({"foo.vyi" : ifoo_code , "bar.vyi" : ibar_code })
391400
392401 code = """
393402import foo as Foo
Original file line number Diff line number Diff line change @@ -194,6 +194,7 @@ def _load_import_helper(
194194 file = self .input_bundle .load_file (path .with_suffix (".vyi" ))
195195 assert isinstance (file , FileInput ) # mypy hint
196196 module_ast = self ._ast_from_file (file )
197+ self .resolve_imports (module_ast )
197198
198199 # language does not yet allow recursion for vyi files
199200 # self.resolve_imports(module_ast)
You can’t perform that action at this time.
0 commit comments