Skip to content

Commit 79cc160

Browse files
pylint: disable no-self-use cases
Disable all cases of R0201 no-self-use in code. We don't plan to change API yet. Part of #270
1 parent ce056e5 commit 79cc160

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

tarantool/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ class Connection(ConnectionInterface):
489489
check its status, call procedures and evaluate Lua code on server,
490490
make simple data manipulations and execute SQL queries.
491491
"""
492-
# pylint: disable=too-many-instance-attributes,too-many-public-methods
492+
# pylint: disable=too-many-instance-attributes,too-many-public-methods,no-self-use
493493

494494
# DBAPI Extension: supply exceptions as attributes on the connection
495495
Error = Error

tarantool/connection_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ class ConnectionPool(ConnectionInterface):
370370
>>> resp
371371
- ['AAAA', 'Alpha']
372372
"""
373-
# pylint: disable=too-many-public-methods,duplicate-code
373+
# pylint: disable=too-many-public-methods,duplicate-code,no-self-use
374374

375375
def __init__(self,
376376
addrs,

test/setup_command.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class Test(setuptools.Command):
1717
"""
1818
Class implementing `python setup.py test`.
1919
"""
20+
# pylint: disable=no-self-use
2021

2122
user_options = []
2223
description = 'Run tests'

test/suites/test_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
This module tests work with a cluster of Tarantool servers through
33
ConnectionPool.
44
"""
5-
# pylint: disable=missing-class-docstring,missing-function-docstring,too-many-public-methods,duplicate-code
5+
# pylint: disable=missing-class-docstring,missing-function-docstring,too-many-public-methods,duplicate-code,no-self-use
66

77
import sys
88
import time

test/suites/test_ssl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
This module tests connection through SSL.
33
"""
4-
# pylint: disable=missing-class-docstring,missing-function-docstring,too-many-branches,too-many-locals
4+
# pylint: disable=missing-class-docstring,missing-function-docstring,too-many-branches,too-many-locals,no-self-use
55

66
import os
77
import sys

0 commit comments

Comments
 (0)