From: Mike Bayer Date: Tue, 1 Feb 2022 15:35:23 +0000 (-0500) Subject: fix pep484 issue X-Git-Tag: rel_1_7_7~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32dc8a49cfd560c3291f00acaddf317d0264fed3;p=thirdparty%2Fsqlalchemy%2Falembic.git fix pep484 issue the jenkins pep484 job wasn't catching the tox target so we missed a mypy failure that got released :/ Change-Id: Ibaee3158971985fb08e43a53f99244bcc4fa0f81 --- diff --git a/alembic/operations/batch.py b/alembic/operations/batch.py index b163d790..ba1d1967 100644 --- a/alembic/operations/batch.py +++ b/alembic/operations/batch.py @@ -475,8 +475,8 @@ class ApplyBatchImpl: and resolved_existing_type.name # type:ignore[attr-defined] # noqa E501 ): self.named_constraints.pop( - resolved_existing_type.name, - None, # type:ignore[attr-defined] + resolved_existing_type.name, # type:ignore[attr-defined] # noqa E501 + None, ) if type_ is not None: