forked from sfstpala/flake8-import-style
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since relative imports don't work with the `import <>` syntax, suggest importing the names directly. In this cases, the `i.module` is `None` and the `i.level` has the number of levels down in the relative import, e.g. `1` means the current directory. If there's only one name, suggest: use 'import module.name' instead of 'from module import name' This implements the enhancement proposed in sfstpala#1.
- Loading branch information
Showing
2 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters