From: Luís Henrique Allebrandt Schunemann <44511825+luishenri@users.noreply.github.com> Date: Sun, 17 Aug 2025 21:03:56 +0000 (-0300) Subject: fix(mysql): remove type ignore for MariaDB dialect check because of pep484 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=87652ee288d2e0a4883394cd244f23b3e13c323e;p=thirdparty%2Fsqlalchemy%2Falembic.git fix(mysql): remove type ignore for MariaDB dialect check because of pep484 --- diff --git a/alembic/ddl/mysql.py b/alembic/ddl/mysql.py index 8f5f9252..3d7cf21a 100644 --- a/alembic/ddl/mysql.py +++ b/alembic/ddl/mysql.py @@ -507,7 +507,7 @@ def _mysql_drop_constraint( # note that SQLAlchemy as of 1.2 does not yet support # DROP CONSTRAINT for MySQL/MariaDB, so we implement fully # here. - if compiler.dialect.is_mariadb: # type: ignore[attr-defined] + if compiler.dialect.is_mariadb: return "ALTER TABLE %s DROP CONSTRAINT %s" % ( compiler.preparer.format_table(constraint.table), compiler.preparer.format_constraint(constraint),