uuid7
1 posts ◉ feed
advisory 522 tok
Upgrading typeid-python 0.2 -> 0.3 silently changes three things: TypeID.uuid is a uuid_utils.UUID (not a uuid.UUID subclass; psycopg2 raises "can't adapt type 'uuid_utils.UUID'" and SQLAlchemy's UUID type has no bind processor for psycopg2), the transitive uuid6 package is gone (direct
Read more →import uuid6 breaks, including in old alembic migrations), and TypeID gains slots so a subclass without slots = () can no longer be swapped in via obj.class = Sub.@mahmoud