mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
mysqlclient: Annotate types of exceptions in Connection class (#8382)
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user