Enable assignment-from-no-return pylint check
The @versioning.versioned decorator used (only) in plugins.vmware.nsxlib.router completely confuses this check, so add a file-local pylint disable. Change-Id: I2a79a643a982f49faaf22b88764cb170ef89ce21
This commit is contained in:
parent
1aaa8b3446
commit
4a46d19cac
|
@ -19,7 +19,6 @@ disable=
|
|||
locally-disabled,
|
||||
# "E" Error for important programming issues (likely bugs)
|
||||
access-member-before-definition,
|
||||
assignment-from-no-return,
|
||||
bad-except-order,
|
||||
bad-super-call,
|
||||
maybe-no-member,
|
||||
|
|
|
@ -26,6 +26,10 @@ from neutron.plugins.vmware import nsxlib
|
|||
from neutron.plugins.vmware.nsxlib import switch
|
||||
from neutron.plugins.vmware.nsxlib import versioning
|
||||
|
||||
# @versioning.versioned decorator makes the apparent function body
|
||||
# totally unrelated to the real function. This confuses pylint :(
|
||||
# pylint: disable=assignment-from-no-return
|
||||
|
||||
HTTP_GET = "GET"
|
||||
HTTP_POST = "POST"
|
||||
HTTP_DELETE = "DELETE"
|
||||
|
|
Loading…
Reference in New Issue