8000 Make 4 more arguments to keyword-only. (#941) · PyMySQL/PyMySQL@abe83c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit abe83c2

Browse files
authored
Make 4 more arguments to keyword-only. (#941)
1 parent 5c6f8bc commit abe83c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymysql/connections.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ class Connection:
164164

165165
def __init__(
166166
self,
167-
user=None,
167+
*,
168+
user=None, # The first four arguments is based on DB-API 2.0 recommendation.
168169
password="",
169170
host=None,
170171
database=None,
171-
*,
172172
unix_socket=None,
173173
port=0,
174174
charset="",

0 commit comments

Comments
 (0)
0