Skip to content

Commit fc2323f

Browse files
pylint: disable new too-many-arguments cases
Disable newly uncovered cases of R0913 too-many-arguments. We don't plan to change existing public API now. Since pylint 3.0.0, issue [1] has been fixed, which uncovered several new too-many-arguments cases. 1. pylint-dev/pylint#8667
1 parent e104037 commit fc2323f

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

tarantool/connection.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def delete(self, space_name, key, *, index=None, on_push=None, on_push_ctx=None)
215215
"""
216216
Reference implementation: :meth:`~tarantool.Connection.delete`.
217217
"""
218+
# pylint: disable=too-many-arguments
218219

219220
raise NotImplementedError
220221

@@ -224,6 +225,7 @@ def upsert(self, space_name, tuple_value, op_list, *, index=None,
224225
"""
225226
Reference implementation: :meth:`~tarantool.Connection.upsert`.
226227
"""
228+
# pylint: disable=too-many-arguments
227229

228230
raise NotImplementedError
229231

@@ -232,6 +234,7 @@ def update(self, space_name, key, op_list, *, index=None, on_push=None, on_push_
232234
"""
233235
Reference implementation: :meth:`~tarantool.Connection.update`.
234236
"""
237+
# pylint: disable=too-many-arguments
235238

236239
raise NotImplementedError
237240

@@ -249,6 +252,7 @@ def select(self, space_name, key, *, offset=None, limit=None,
249252
"""
250253
Reference implementation: :meth:`~tarantool.Connection.select`.
251254
"""
255+
# pylint: disable=too-many-arguments
252256

253257
raise NotImplementedError
254258

@@ -1618,6 +1622,7 @@ def delete(self, space_name, key, *, index=0, on_push=None, on_push_ctx=None):
16181622
16191623
.. _delete: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/delete/
16201624
"""
1625+
# pylint: disable=too-many-arguments
16211626

16221627
self._schemaful_connection_check()
16231628

@@ -1680,6 +1685,7 @@ def upsert(self, space_name, tuple_value, op_list, *, index=0, on_push=None, on_
16801685
16811686
.. _upsert: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/upsert/
16821687
"""
1688+
# pylint: disable=too-many-arguments
16831689

16841690
self._schemaful_connection_check()
16851691

@@ -1771,6 +1777,7 @@ def update(self, space_name, key, op_list, *, index=0, on_push=None, on_push_ctx
17711777
17721778
.. _update: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/update/
17731779
"""
1780+
# pylint: disable=too-many-arguments
17741781

17751782
self._schemaful_connection_check()
17761783

@@ -1961,6 +1968,7 @@ def select(self, space_name, key=None, *, offset=0, limit=0xffffffff, index=0, i
19611968
19621969
.. _select: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/select/
19631970
"""
1971+
# pylint: disable=too-many-arguments
19641972

19651973
self._schemaful_connection_check()
19661974

tarantool/connection_pool.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,7 @@ def replace(self, space_name, values, *, mode=Mode.RW, on_push=None, on_push_ctx
820820
821821
.. _replace: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/replace/
822822
"""
823+
# pylint: disable=too-many-arguments
823824

824825
return self._send(mode, 'replace', space_name, values,
825826
on_push=on_push, on_push_ctx=on_push_ctx)
@@ -850,6 +851,7 @@ def insert(self, space_name, values, *, mode=Mode.RW, on_push=None, on_push_ctx=
850851
851852
.. _insert: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/insert/
852853
"""
854+
# pylint: disable=too-many-arguments
853855

854856
return self._send(mode, 'insert', space_name, values,
855857
on_push=on_push, on_push_ctx=on_push_ctx)
@@ -883,6 +885,7 @@ def delete(self, space_name, key, *, index=0, mode=Mode.RW, on_push=None, on_pus
883885
884886
.. _delete: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/delete/
885887
"""
888+
# pylint: disable=too-many-arguments
886889

887890
return self._send(mode, 'delete', space_name, key, index=index,
888891
on_push=on_push, on_push_ctx=on_push_ctx)
@@ -920,6 +923,7 @@ def upsert(self, space_name, tuple_value, op_list, *, index=0, mode=Mode.RW,
920923
921924
.. _upsert: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/upsert/
922925
"""
926+
# pylint: disable=too-many-arguments
923927

924928
return self._send(mode, 'upsert', space_name, tuple_value,
925929
op_list, index=index, on_push=on_push, on_push_ctx=on_push_ctx)
@@ -957,6 +961,7 @@ def update(self, space_name, key, op_list, *, index=0, mode=Mode.RW,
957961
958962
.. _update: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/update/
959963
"""
964+
# pylint: disable=too-many-arguments
960965

961966
return self._send(mode, 'update', space_name, key,
962967
op_list, index=index, on_push=on_push, on_push_ctx=on_push_ctx)
@@ -1023,6 +1028,7 @@ def select(self, space_name, key, *, offset=0, limit=0xffffffff,
10231028
10241029
.. _select: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/select/
10251030
"""
1031+
# pylint: disable=too-many-arguments
10261032

10271033
return self._send(mode, 'select', space_name, key, offset=offset, limit=limit,
10281034
index=index, iterator=iterator, on_push=on_push, on_push_ctx=on_push_ctx)
@@ -1214,6 +1220,7 @@ def crud_update(self, space_name, key, operations=None, opts=None, *, mode=Mode.
12141220
:raise: :exc:`~tarantool.error.CrudModuleError`,
12151221
:exc:`~tarantool.error.DatabaseError`
12161222
"""
1223+
# pylint: disable=too-many-arguments
12171224

12181225
return self._send(mode, 'crud_update', space_name, key, operations, opts)
12191226

@@ -1379,6 +1386,7 @@ def crud_upsert(self, space_name, values, operations=None, opts=None, *, mode=Mo
13791386
:raise: :exc:`~tarantool.error.CrudModuleError`,
13801387
:exc:`~tarantool.error.DatabaseError`
13811388
"""
1389+
# pylint: disable=too-many-arguments
13821390

13831391
return self._send(mode, 'crud_upsert', space_name, values, operations, opts)
13841392

@@ -1409,6 +1417,7 @@ def crud_upsert_object(self, space_name, values, operations=None, opts=None, *,
14091417
:raise: :exc:`~tarantool.error.CrudModuleError`,
14101418
:exc:`~tarantool.error.DatabaseError`
14111419
"""
1420+
# pylint: disable=too-many-arguments
14121421

14131422
return self._send(mode, 'crud_upsert_object', space_name, values, operations, opts)
14141423

tarantool/msgpack_ext/types/datetime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def __init__(self, *, timestamp=None, year=None, month=None,
281281
282282
.. _datetime.new(): https://www.tarantool.io/en/doc/latest/reference/reference_lua/datetime/new/
283283
"""
284-
# pylint: disable=too-many-branches,too-many-locals,too-many-statements
284+
# pylint: disable=too-many-branches,too-many-locals,too-many-statements,too-many-arguments
285285

286286
tzinfo = None
287287
if tz != '':

tarantool/msgpack_ext/types/interval.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ def __init__(self, *, year=0, month=0, week=0,
149149
150150
:raise: :exc:`ValueError`
151151
"""
152+
# pylint: disable=too-many-arguments
152153

153154
self.year = year
154155
self.month = month

0 commit comments

Comments
 (0)