Skip to content

Comments

Fix TypeError with UUID primary keys in issubclass check#992

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

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

Conversation

@S3wnkin
Copy link

@S3wnkin S3wnkin commented Jan 12, 2026

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

- Prevents TypeError when column.python_type returns type annotations

- Fixes aminalaee#981
Copy link
Owner

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

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

2 participants