From f439d4abc436fff2e4299c98f2170c177d761fe7 Mon Sep 17 00:00:00 2001 From: Saif Hakim Date: Thu, 4 Jan 2024 22:50:27 -0800 Subject: [PATCH] typing fix take 2 --- alembic/autogenerate/render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alembic/autogenerate/render.py b/alembic/autogenerate/render.py index 2ed6c1d6..b6c375f9 100644 --- a/alembic/autogenerate/render.py +++ b/alembic/autogenerate/render.py @@ -834,7 +834,7 @@ def _repr_type( prefix = _sqlalchemy_autogenerate_prefix(autogen_context) return "%s%r" % (prefix, type_) elif isinstance(type_, sqltypes.TypeDecorator): - return _repr_type(type_.impl_instance, autogen_context, _skip_variants) + return _repr_type(cast("TypeEngine", type_.impl), autogen_context, _skip_variants) else: prefix = _user_autogenerate_prefix(autogen_context, type_) return "%s%r" % (prefix, type_)