Statistics
| Revision:

gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / pylint / test / input / func_noerror_crash_127416.py @ 745

History | View | Annotate | Download (546 Bytes)

1
# pylint: disable=C0111,R0201
2
"""
3
FUNCTIONALITY
4
"""
5

    
6
class Example(object):
7
    """
8
      @summary: Demonstrates pylint error caused by method expecting tuple
9
      but called method does not return tuple
10
    """
11

    
12
    def method_expects_tuple(self, obj):
13
        meth, args = self.method_doesnot_return_tuple(obj)
14
        result = meth(args)
15
        return result
16

    
17
    def method_doesnot_return_tuple(self, obj):
18
        # we want to lock what we have in the inventory, not what is to have
19
        # in the future
20
        return {'success': obj}