mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Add __enter__/__exit__ to pymysql.Connection (#7069)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Self
|
||||
from socket import socket as _socket
|
||||
from typing import Any, AnyStr, Generic, Mapping, TypeVar, overload
|
||||
|
||||
@@ -195,6 +196,8 @@ class Connection(Generic[_C]):
|
||||
def get_proto_info(self): ...
|
||||
def get_server_info(self): ...
|
||||
def show_warnings(self): ...
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
def __exit__(self, *exc_info: object) -> None: ...
|
||||
Warning: Any
|
||||
Error: Any
|
||||
InterfaceError: Any
|
||||
|
||||
Reference in New Issue
Block a user