mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-22 00:24:37 +00:00
21 lines
552 B
Python
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}
|