Skip to content

Commit

Permalink
typing fix take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
saifelse committed Jan 5, 2024
1 parent 633b5ce commit f439d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alembic/autogenerate/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_)
Expand Down

0 comments on commit f439d4a

Please sign in to comment.