From a066618eb6a194cceadd509f4d497e39f32c719a Mon Sep 17 00:00:00 2001 From: Kevin Kirsche Date: Sun, 24 Jul 2022 09:48:48 -0400 Subject: [PATCH] `mysqlclient`: Annotate types of exceptions in `Connection` class (#8382) --- stubs/mysqlclient/MySQLdb/connections.pyi | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/stubs/mysqlclient/MySQLdb/connections.pyi b/stubs/mysqlclient/MySQLdb/connections.pyi index e3f48d2d7..6c95e8a40 100644 --- a/stubs/mysqlclient/MySQLdb/connections.pyi +++ b/stubs/mysqlclient/MySQLdb/connections.pyi @@ -37,13 +37,13 @@ class Connection(_mysql.connection): def set_character_set(self, charset) -> None: ... def set_sql_mode(self, sql_mode) -> None: ... def show_warnings(self): ... - Warning: Any - Error: Any - InterfaceError: Any - DatabaseError: Any - DataError: Any - OperationalError: Any - IntegrityError: Any - InternalError: Any - ProgrammingError: Any - NotSupportedError: Any + Warning: type[BaseException] + Error: type[BaseException] + InterfaceError: type[BaseException] + DatabaseError: type[BaseException] + DataError: type[BaseException] + OperationalError: type[BaseException] + IntegrityError: type[BaseException] + InternalError: type[BaseException] + ProgrammingError: type[BaseException] + NotSupportedError: type[BaseException]