From: Aaron Griffin Date: Thu, 24 Apr 2025 21:54:51 +0000 (-0500) Subject: fix pep484 errors X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bada1c36d93c33cd060163884f24f2def02b4880;p=thirdparty%2Fsqlalchemy%2Falembic.git fix pep484 errors --- diff --git a/alembic/ddl/mysql.py b/alembic/ddl/mysql.py index 37afe457..d92e3cd7 100644 --- a/alembic/ddl/mysql.py +++ b/alembic/ddl/mysql.py @@ -167,6 +167,7 @@ class MySQLImpl(DefaultImpl): def drop_constraint( self, const: Constraint, + **kw: Any, ) -> None: if isinstance(const, schema.CheckConstraint) and _is_type_bound(const): return diff --git a/alembic/ddl/sqlite.py b/alembic/ddl/sqlite.py index 7c6fb20c..5f141330 100644 --- a/alembic/ddl/sqlite.py +++ b/alembic/ddl/sqlite.py @@ -91,7 +91,7 @@ class SQLiteImpl(DefaultImpl): "SQLite migrations using a copy-and-move strategy." ) - def drop_constraint(self, const: Constraint): + def drop_constraint(self, const: Constraint, **kw: Any): if const._create_rule is None: raise NotImplementedError( "No support for ALTER of constraints in SQLite dialect. "