Skip to content

Commit a56f4ce

Browse files
committed
add: type hints for connections
1 parent ec8d8fd commit a56f4ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymysqlreplication/tests/benchmark.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ def consume_events() -> None:
4848
"db": "pymysqlreplication_test"
4949
}
5050

51-
conn = pymysql.connect(**database)
51+
conn: Connection = pymysql.connect(**database)
5252

5353
execute(conn, "DROP DATABASE IF EXISTS pymysqlreplication_test")
5454
execute(conn, "CREATE DATABASE pymysqlreplication_test")
55-
conn = pymysql.connect(**database)
55+
conn: Connection = pymysql.connect(**database)
5656
execute(conn, "CREATE TABLE test (i INT) ENGINE = MEMORY")
5757
execute(conn, "INSERT INTO test VALUES(1)")
5858
execute(conn, "CREATE TABLE test2 (i INT) ENGINE = MEMORY")

0 commit comments

Comments
 (0)