-
Notifications
You must be signed in to change notification settings - Fork 109
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
Better support for typing and mypy integration #112
Comments
@nazrulworld Would be happy to ideate and contribute if needed. Thanks |
@blazing-gig please have a look here #58 Any kind of contribution is always welcome 🙏 |
Hey @nazrulworld I read through #58 and it seems by and large that this decision was made to circumvent circular deps while defining the models. Is this correct or am I missing something ? |
Hey @nazrulworld could you pls revert to my previous comment ? Coz if circular refs is the only problem, it can be annotated properly using this and made compatible with mypy. I can open a PR for the same if we can come to consensus on this. Thanks! |
Has this been fixed yet? It is super annoying to have mypy errors all over the place and we have to manually cast to get around them... |
Description
I'd like to understand the thought process behind why the type of
Patient.address
in the Pydantic base model has been annotated withtyping.List[fhirtypes.AddressType]
rather than the actualtyping.List[fhirtypes.Address]
. This would also help make the package compatible with mypy.The text was updated successfully, but these errors were encountered: