2 from typing import FrozenSet
4 from .connections import Connection as Connection
5 from .constants import FIELD_TYPE as FIELD_TYPE
6 from .converters import escape_dict as escape_dict, escape_sequence as escape_sequence, escape_string as escape_string
8 DatabaseError as DatabaseError,
9 DataError as DataError,
11 IntegrityError as IntegrityError,
12 InterfaceError as InterfaceError,
13 InternalError as InternalError,
14 MySQLError as MySQLError,
15 NotSupportedError as NotSupportedError,
16 OperationalError as OperationalError,
17 ProgrammingError as ProgrammingError,
22 DateFromTicks as DateFromTicks,
24 TimeFromTicks as TimeFromTicks,
25 Timestamp as Timestamp,
26 TimestampFromTicks as TimestampFromTicks,
33 class DBAPISet(FrozenSet[int]):
34 def __ne__(self, other) -> bool: ...
35 def __eq__(self, other) -> bool: ...
36 def __hash__(self) -> int: ...
47 if sys.version_info >= (3, 0):
48 def Binary(x) -> bytes: ...
51 def Binary(x) -> bytearray: ...
53 def get_client_info() -> str: ...
56 version_info: tuple[int, int, int, str, int]
59 # pymysql/__init__.py says "Connect = connect = Connection = connections.Connection"
63 def thread_safe() -> bool: ...
64 def install_as_MySQLdb() -> None: ...