1
0
forked from VimPlug/jedi

Remove redundant parentheses

This commit is contained in:
Hugo
2018-01-04 16:32:52 +02:00
parent a7ac647498
commit 8cf708d0d4
41 changed files with 112 additions and 112 deletions

View File

@@ -23,9 +23,9 @@ a(0):.
# if/else/elif
# -----------------
if (random.choice([0, 1])):
if random.choice([0, 1]):
1
elif(random.choice([0, 1])):
elif random.choice([0, 1]):
a = 3
else:
a = ''
@@ -34,7 +34,7 @@ a
def func():
if random.choice([0, 1]):
1
elif(random.choice([0, 1])):
elif random.choice([0, 1]):
a = 3
else:
a = ''
@@ -187,7 +187,7 @@ some_word
# -----------------
class A(object): pass
class B(): pass
class B: pass
#? ['__init__']
A.__init__
@@ -201,7 +201,7 @@ int().__init__
# comments
# -----------------
class A():
class A:
def __init__(self):
self.hello = {} # comment shouldn't be a string
#? dict()