Skip to content

Allow relative imports beyond one parent level#1784

Merged
fubuloubu merged 3 commits into
vyperlang:masterfrom
iamdefinitelyahuman:relative-import-fix
Jan 2, 2020
Merged

Allow relative imports beyond one parent level#1784
fubuloubu merged 3 commits into
vyperlang:masterfrom
iamdefinitelyahuman:relative-import-fix

Conversation

@iamdefinitelyahuman
Copy link
Copy Markdown
Contributor

What I did

Allow relative imports beyond one parent level - fixes #1703

How I did it

  • vyper/signatures/interface.py - properly handle level > 2
  • vyper/cli - adjust checks for imports out of base folder

How to verify it

Run the tests. I added / modified a few test cases to make sure it works.

Cute Animal Picture

image

@fubuloubu
Copy link
Copy Markdown
Contributor

Just rebase and g2g

@fubuloubu fubuloubu merged commit e0e09ad into vyperlang:master Jan 2, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the relative-import-fix branch January 7, 2020 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Relative imports are broken beyond one parent level

2 participants