summaryrefslogtreecommitdiff
path: root/alembic/util
diff options
context:
space:
mode:
authorCaselIT <cfederico87@gmail.com>2021-12-21 20:17:39 +0100
committerCaselIT <cfederico87@gmail.com>2021-12-21 20:17:39 +0100
commitfa931a444b078df031280a580b9768193e45b6fa (patch)
treec045bbede0e60e8096041479dc1f8818cdc5d060 /alembic/util
parent1740bcbc16ccbbe557e02e85b12d6629c218ad53 (diff)
downloadalembic-fa931a444b078df031280a580b9768193e45b6fa.tar.gz
fix type errors raised by mypy .920
Change-Id: Ifca989610193074757dec6602af268ea5139c4bc
Diffstat (limited to 'alembic/util')
-rw-r--r--alembic/util/sqla_compat.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alembic/util/sqla_compat.py b/alembic/util/sqla_compat.py
index 4d0041e..0f2762c 100644
--- a/alembic/util/sqla_compat.py
+++ b/alembic/util/sqla_compat.py
@@ -157,9 +157,9 @@ def _get_connection_in_transaction(connection: Optional["Connection"]) -> bool:
def _copy(schema_item: _CE, **kw) -> _CE:
if hasattr(schema_item, "_copy"):
- return schema_item._copy(**kw)
+ return schema_item._copy(**kw) # type: ignore[union-attr]
else:
- return schema_item.copy(**kw)
+ return schema_item.copy(**kw) # type: ignore[union-attr]
def _get_connection_transaction(