-
Notifications
You must be signed in to change notification settings - Fork 3
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
Improved autocomplete for most ehrql things #2337
Conversation
…e that return the same type as one of the arguments.
…ies (Event or Patient)
Deploying databuilder-docs with Cloudflare Pages
|
dc3094c
to
9548e3d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great!
The only part that gave me any pause was the @int_property
stuff just because I'm not completely clear on what problem it solves and how it does it. (I'm quite confident there is a problem and that it does solve it, I'd just like to understand it better.)
But it's a small and simple enough bit of code that I'd be happy to merge it now and understand it later.
In terms of testing I'll make a separate ticket to think about options there.
Having not looked at it since before my break I'm not sure I can remember! It was something to do with how the autocomplete interacted with the |
The type checker/autocomplete now knows:
patients.date_of_birth
is aDatePatientSeries
)clinical_events.numeric_value.sum_for_patient()
is aFloatPatientSeries
patients.date_of_birth.day
is aIntPatientSeries
)+
,-
,>
,/
etc.