We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 156648f commit 3cf007fCopy full SHA for 3cf007f
docs/blog/validation-libs-2025/index.qmd
@@ -548,7 +548,7 @@ class UserSchema(dy.Schema):
548
549
# Use @dy.rule() for age range validation
550
@dy.rule()
551
- def age_in_range() -> pl.Expr:
+ def age_in_range(cls) -> pl.Expr:
552
return pl.col("age").is_between(18, 80, closed="both")
553
554
# Validate using the schema
0 commit comments