From efdbefee86ff1e4c7597f939ca044fbd5b4b0733 Mon Sep 17 00:00:00 2001 From: Alex Jurkiewicz Date: Fri, 27 Sep 2019 15:04:23 +1000 Subject: [PATCH] Add return types for pymysql.connection.close/cursor (#3268) --- third_party/2and3/pymysql/connections.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/2and3/pymysql/connections.pyi b/third_party/2and3/pymysql/connections.pyi index 4f1cd0486..47e00a47d 100644 --- a/third_party/2and3/pymysql/connections.pyi +++ b/third_party/2and3/pymysql/connections.pyi @@ -94,14 +94,14 @@ class Connection: socket: Any rfile: Any wfile: Any - def close(self): ... + def close(self) -> None: ... def autocommit(self, value): ... def commit(self): ... def begin(self) -> None: ... def rollback(self): ... def escape(self, obj): ... def literal(self, obj): ... - def cursor(self, cursor: Optional[Type[Cursor]] = ...): ... + def cursor(self, cursor: Optional[Type[Cursor]] = ...) -> Cursor: ... def __enter__(self): ... def __exit__(self, exc, value, traceback): ... def query(self, sql): ...