third_party.pylibs.pylint.src/pylint/test/input/func_noerror_crash_127416.py
2015-02-14 18:13:20 +02:00

21 lines
552 B
Python

# pylint: disable=C0111,R0201,C0121
"""
FUNCTIONALITY
"""
class Example(object):
"""
@summary: Demonstrates pylint error caused by method expecting tuple
but called method does not return tuple
"""
def method_expects_tuple(self, obj):
meth, args = self.method_doesnot_return_tuple(obj)
result = meth(args)
return result
def method_doesnot_return_tuple(self, obj):
# we want to lock what we have in the inventory, not what is to have
# in the future
return {'success': obj}