Skip to content

Fix TypeError with UUID primary keys in issubclass check#992

Open
S3wnkin wants to merge 2 commits intosmithyhq:mainfrom
S3wnkin:fix/uuid-issubclass-typecheck
Open

Fix TypeError with UUID primary keys in issubclass check#992
S3wnkin wants to merge 2 commits intosmithyhq:mainfrom
S3wnkin:fix/uuid-issubclass-typecheck

Conversation

@S3wnkin
Copy link
Copy Markdown

@S3wnkin S3wnkin commented Jan 12, 2026

- Add inspect.isclass() guard before issubclass() call

- Prevents TypeError when column.python_type returns type annotations

- Fixes smithyhq#981
Copy link
Copy Markdown
Collaborator

@aminalaee aminalaee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a minimal test to maek sure it works as expected?

@mmzeynalli
Copy link
Copy Markdown
Member

@S3wnkin any updates on tests?

@aminalaee aminalaee added the waiting-for-feedback Waiting feedback/answer/updates from contributor label Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-for-feedback Waiting feedback/answer/updates from contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression: TypeError with UUID primary keys in 0.22.0: issubclass() arg 1 must be a class

3 participants