From 6d1c59d2387613469554fc7e4dd7a8e327bc825c Mon Sep 17 00:00:00 2001 From: Julian Mehnle Date: Thu, 2 Jul 2020 19:53:38 -0700 Subject: [PATCH] `pymysql.err.Warning` multiple-inherits from `builtins.Warning` and `MySQLError`. (#4303) Previously we declared it as single-inheriting from only `MySQLError`. --- third_party/2and3/pymysql/err.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/third_party/2and3/pymysql/err.pyi b/third_party/2and3/pymysql/err.pyi index 14993cbf2..1ef626361 100644 --- a/third_party/2and3/pymysql/err.pyi +++ b/third_party/2and3/pymysql/err.pyi @@ -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): ...