This check catches attempts to call variables that pylint believes are
not functions. A trivial example would be:
# Trivial example caught by this check:
foo = dict()
print foo('bar') # <- oops, meant foo['bar']
This change enables the "not-callable" pylint check, after disabling a
few cases where the alert triggers but the usage was intended (defining
decorators).
Change-Id: I09ad929902509018fe7183a15b784601c36b6196
Related-Bug: #
1356224
no-member,
no-method-argument,
no-self-argument,
- not-callable,
no-value-for-parameter,
super-on-old-class,
too-few-format-args,
"or configured as NoopFirewallDriver."),
func.__name__)
else:
- return func(self, *args, **kwargs)
+ return func(self, # pylint: disable=not-callable
+ *args, **kwargs)
return decorated_function
@skip_if_noopfirewall_or_firewall_disabled
inst.synchronizer = (
APICMechanismDriver.get_base_synchronizer(inst))
inst.synchronizer.sync_base()
+ # pylint: disable=not-callable
return f(inst, *args, **kwargs)
return inner
mechanism_apic.APICMechanismDriver.
get_router_synchronizer(inst))
inst.synchronizer.sync_router()
+ # pylint: disable=not-callable
return f(inst, *args, **kwargs)
return inner