I get this error when I import a class with a custom constraint using a struct that got this inherited from another class.
Reproducible with:
class Test(pt.Model):
id: int = pt.Field(constraints=pl.struct("id", "line_id").is_unique())
line_id: int = pt.Field(dtype=pl.UInt32)
class TestExtraField(Test):
extra_field: str
Reproducible with:
import copy
import patito as pt
copy.deepcopy(pl.struct("id", "line_id").is_unique())
I get this error when I import a class with a custom constraint using a
struct
that got this inherited from another class.Reproducible with:
Reproducible with: