Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bad node given to a message and false positive invalide format fo…
…r ``__all__`` (#4953) * Fix bad node being given as context for message See #4711 * Add a functional test for issue #4711 * Fix false positive invalid-all-format Closes #4711
- Loading branch information
1 parent
a4ee38e
commit 9ec8cb9
Showing
5 changed files
with
23 additions
and
6 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
invalid-all-format:5:11::Invalid format for __all__, must be tuple or list | ||
invalid-all-format:5:11::Invalid format for __all__, must be tuple or list:HIGH |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"""Test valid __all__ format.""" | ||
|
||
# pylint: disable=import-error, unused-import | ||
|
||
from foo import bar | ||
|
||
__all__ = list(globals().keys()) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"""Test valid __all__ format.""" | ||
|
||
# pylint: disable=import-error, unused-import | ||
|
||
from foo import bar | ||
|
||
__all__ = tuple(globals().keys()) |