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):
381
381
382
382
383
383
def test_imports_and_implements_within_interface (make_input_bundle ):
384
- interface_code = """
384
+ ibar_code = """
385
385
@external
386
386
def foobar():
387
387
...
388
388
"""
389
+ ifoo_code = """
390
+ import bar
389
391
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 })
391
400
392
401
code = """
393
402
import foo as Foo
Original file line number Diff line number Diff line change @@ -194,6 +194,7 @@ def _load_import_helper(
194
194
file = self .input_bundle .load_file (path .with_suffix (".vyi" ))
195
195
assert isinstance (file , FileInput ) # mypy hint
196
196
module_ast = self ._ast_from_file (file )
197
+ self .resolve_imports (module_ast )
197
198
198
199
# language does not yet allow recursion for vyi files
199
200
# self.resolve_imports(module_ast)
You can’t perform that action at this time.
0 commit comments