This website requires JavaScript.
Explore
Help
Register
Sign In
fuchsia-china
/
third_party.pylibs.pylint.src
Watch
1
Star
0
Fork
0
You've already forked third_party.pylibs.pylint.src
mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced
2024-09-21 16:19:21 +00:00
Code
Issues
Actions
8
Packages
Projects
Releases
Wiki
Activity
b72c0dd9a3
third_party.pylibs.pylint.src
/
tests
/
messages
/
func_w0401_disabled.txt
3 lines
118 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Make cyclic import checker respect local disable clauses (#1286) Fixes #59
2017-03-01 19:46:24 +00:00
W: 8: Using a conditional statement with a constant value
Do not warn for locally disabled cyclic import checks Since commit 7df8caaa3e1995018417ac2fd87afd89be6945ba, the "# pylint: disable=cyclic-import" statment is respected. One case which was not covered is the disabling of the check for an import from inside a method/function. Example: File test1.py > class B(object): > pass > > def function(): > from . import test2 # pylint: disable=cyclic-import > pass File test2.py > from . import test1 > > class A(object): > pass Pylint wrongly reports: Cyclic import (testfolder.test1 -> testfolder.test2) (cyclic-import) This is due to the fact that the self._excluded_edges dict was not filled with the imports that need to be excluded. Passing the line number to the self.linter.is_message_enabled() check allows to not prematurely return due to the line number being None. Also fixed (with the help of rogalski) the test setup which got confused by the second 'func' in the test function name
2017-06-03 17:21:13 +00:00
W: 8: Using a conditional statement with a constant value
Reference in New Issue
Copy Permalink