mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Add return types for pymysql.connection.close/cursor (#3268)
This commit is contained in:
committed by
Sebastian Rittau
parent
e0cc8bdafb
commit
efdbefee86
4
third_party/2and3/pymysql/connections.pyi
vendored
4
third_party/2and3/pymysql/connections.pyi
vendored
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user