pymysql.err.Warning multiple-inherits from builtins.Warning and MySQLError. (#4303)

Previously we declared it as single-inheriting from only `MySQLError`.
This commit is contained in:
Julian Mehnle
2020-07-02 19:53:38 -07:00
committed by GitHub
parent f26a82436c
commit 6d1c59d238

View File

@@ -1,9 +1,10 @@
import builtins
from typing import Dict, NoReturn, Type
from .constants import ER as ER
class MySQLError(Exception): ...
class Warning(MySQLError): ...
class Warning(builtins.Warning, MySQLError): ...
class Error(MySQLError): ...
class InterfaceError(Error): ...
class DatabaseError(Error): ...