RobertCraigie / prisma-client-py

Prisma Client Python is an auto-generated and fully type-safe database client designed for ease of use
https://prisma-client-py.readthedocs.io
Apache License 2.0
1.85k stars 81 forks source link

chore(internal): restructure PrismaUnion representation #926

Closed RobertCraigie closed 6 months ago

RobertCraigie commented 6 months ago

We shouldn't be overloading subtypes for unions as we may need to distinguish between subtypes and variants, e.g. each variant has the same shared parent class