Ejemplo n.º 1
0
 def test(self):
     """ unpacking in instance attributes """
     # we're not sure if temp() returns two or three values
     # so we shouldn't emit an error
     self.a, self.b = temp()
     self.a, self.b = temp2()
     self.a, self.b = unpack() # [unbalanced-tuple-unpacking]
Ejemplo n.º 2
0
 def test(self):
     """ unpacking in instance attributes """
     # we're not sure if temp() returns two or three values
     # so we shouldn't emit an error
     self.a, self.b = temp()
     self.a, self.b = temp2()
     self.a, self.b = unpack()  # [unbalanced-tuple-unpacking]
Ejemplo n.º 3
0
 def test(self):
     """ unpacking in instance attributes """
     self.a, self.b = temp()  # [unbalanced-tuple-unpacking]
     self.a, self.b = temp2()
     self.a, self.b = unpack()  # [unbalanced-tuple-unpacking]
Ejemplo n.º 4
0
def do_stuff9():
    """ This is not correct """
    first, second = unpack()  # [unbalanced-tuple-unpacking]
    return first + second
Ejemplo n.º 5
0
def do_stuff9():
    """ This is not correct """
    first, second = unpack() # [unbalanced-tuple-unpacking]
    return first + second
 def test(self):
     """ unpacking in instance attributes """
     self.a, self.b = temp()  # [unbalanced-tuple-unpacking]
     self.a, self.b = temp2()
     self.a, self.b = unpack()  # [unbalanced-tuple-unpacking]