third_party.pylibs.pylint.src/pylint/test/input/func_noerror_crash_127416.py

21 lines
552 B
Python
Raw Normal View History

# 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):
2013-04-25 08:00:59 +00:00
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
2013-04-25 08:00:59 +00:00
return {'success': obj}