Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SQLAlchemy enum generation #363

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
2 changes: 2 additions & 0 deletions src/sqlacodegen/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@ def render_column_type(self, coltype: object) -> str:
continue
elif param.kind in (Parameter.VAR_POSITIONAL, Parameter.VAR_KEYWORD):
continue
elif isinstance(coltype, Enum):
continue

value = getattr(coltype, param.name, missing)
default = defaults.get(param.name, missing)
Expand Down
Loading