mysqlclient: Annotate types of exceptions in Connection class (#8382)

This commit is contained in:
Kevin Kirsche
2022-07-24 09:48:48 -04:00
committed by GitHub
parent f7166fc6ea
commit a066618eb6

View File

@@ -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]