Skip to content

Commit a990309

Browse files
pylint: fix superfluous-parens cases
Fix all cases of C0325 superfluous-parens. Part of #270
1 parent 093fe2e commit a990309

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tarantool/msgpack_ext/decimal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def add_str_digit(digit, digits_reverted, scale):
326326
:meta private:
327327
"""
328328

329-
if not (0 <= digit <= 9):
329+
if not 0 <= digit <= 9:
330330
raise MsgpackError('Unexpected MP_DECIMAL digit nibble')
331331

332332
if len(digits_reverted) == scale:

test/suites/lib/remote_tarantool_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __init__(self):
2626
self.args['primary'] = BINARY_PORT
2727
self.args['admin'] = os.environ['REMOTE_TARANTOOL_CONSOLE_PORT']
2828

29-
assert(self.args['primary'] != self.args['admin'])
29+
assert self.args['primary'] != self.args['admin']
3030

3131
# a name to using for a lock
3232
self.whoami = get_random_string()
@@ -54,7 +54,7 @@ def acquire_lock(self):
5454
self.lock_is_acquired = True
5555

5656
def touch_lock(self):
57-
assert(self.lock_is_acquired)
57+
assert self.lock_is_acquired
5858
res = self.admin.execute(f'return touch_lock("{self.whoami}")')
5959
ok = res[0]
6060
err = res[1] if not ok else None

test/suites/test_dml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def test_02_select(self):
111111
select_req = self.con.select('space_1', [0], index='secondary')
112112
self.assertEqual(len(select_req), 99)
113113
for i in select_req:
114-
self.assertTrue(not (i[0] % 5))
114+
self.assertTrue(not i[0] % 5)
115115
self.assertTrue(not i[1])
116116
self.assertTrue(i[2] == 'tuple_' + str(i[0]))
117117

0 commit comments

Comments
 (0)