-
-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guess we doin V now (a new validation framework) #459
base: main
Are you sure you want to change the base?
Conversation
@petergaultney this is very much experimental and a work-in-progress at this point ;) |
18fb2b8
to
56824bf
Compare
Is there an issue, or anything, describing what's going on? |
From a quick glance, this seems to be the new feature: hook = customize(
c,
Small,
V((fs := f(Small)).a).ensure(greater_than(10)),
V(fs.b).ensure(len_between(0, 10)),
) I'm pretty clueless as to what's going on, but may I suggest also supporting something like: hook = customize(
c,
Small,
V((fs := f(Small)).a) > 10 and
0 <= len(V(fs.b)) < 10,
) By overwriting the This would be similar to how libs like SQLAlchemy handle some queries. These operators could return the same that |
625f0e9
to
fd22d45
Compare
cfdfe68
to
5fe78ae
Compare
No description provided.