From 87652ee288d2e0a4883394cd244f23b3e13c323e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lu=C3=ADs=20Henrique=20Allebrandt=20Schunemann?= <44511825+luishenri@users.noreply.github.com> Date: Sun, 17 Aug 2025 18:03:56 -0300 Subject: [PATCH] fix(mysql): remove type ignore for MariaDB dialect check because of pep484 --- alembic/ddl/mysql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- 2.47.3