Skip to content

Commit a2ed13c

Browse files
author
cecily_carver
committed
Removing pylint too-many-positional-arguments comment strings and replacing with rule update.
1 parent 412819d commit a2ed13c

File tree

5 files changed

+3
-7
lines changed

5 files changed

+3
-7
lines changed

.pylintrc

+1
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ disable=
2121

2222
max-args=10
2323
max-line-length=130
24+
max-positional-arguments=10

mysql_mimic/connection.py

-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
class Connection:
3737
_MAX_PREPARED_STMT_ID = 2**32
3838

39-
# pylint: disable=too-many-positional-arguments
4039
def __init__(
4140
self,
4241
stream: MysqlStream,
@@ -197,7 +196,6 @@ async def handle_change_user(self, data: bytes) -> None:
197196

198197
await self.session.reset()
199198

200-
# pylint: disable=too-many-positional-arguments
201199
async def authenticate(
202200
self,
203201
username: str,

mysql_mimic/packets.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class ComFieldList:
114114
wildcard: str
115115

116116

117-
def make_ok( # pylint: disable=too-many-positional-arguments
117+
def make_ok(
118118
capabilities: Capabilities,
119119
status_flags: ServerStatus,
120120
eof: bool = False,
@@ -170,7 +170,7 @@ def make_error(
170170
return _concat(*parts)
171171

172172

173-
def make_handshake_v10( # pylint: disable=too-many-positional-arguments
173+
def make_handshake_v10(
174174
capabilities: Capabilities,
175175
server_charset: CharacterSet,
176176
server_version: str,
@@ -338,7 +338,6 @@ def make_column_count(capabilities: Capabilities, column_count: int) -> bytes:
338338

339339

340340
# pylint: disable=too-many-arguments
341-
# pylint: disable=too-many-positional-arguments
342341
def make_column_definition_41(
343342
server_charset: CharacterSet,
344343
schema: Optional[str] = None,

mysql_mimic/results.py

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class ResultColumn:
3737
binary_encoder: Optionally override the function used to encode values for MySQL's binary protocol
3838
"""
3939

40-
# pylint: disable=too-many-positional-arguments
4140
def __init__(
4241
self,
4342
name: str,

mysql_mimic/server.py

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ class MysqlServer:
4040
**kwargs: extra keyword args passed to the asyncio start server command
4141
"""
4242

43-
# pylint: disable=too-many-positional-arguments
4443
def __init__(
4544
self,
4645
session_factory: Callable[[], BaseSession | Awaitable[BaseSession]] = Session,

0 commit comments

Comments
 (0)