-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
tree_at
silently skips __check_init__
#872
Comments
This is intentional! As for why, it's common for these functions to be used to assert that certain invariants hold (e.g. So if we ran I'd be happy to take a PR clarifying the documentation on this. |
Hi @patrick-kidger! Here is a first proposal. I am not entirely convinced by my wording, but let me know what you think of it. Closes patrick-kidger#872
Thanks for your reply @patrick-kidger! I had doubts this was intentional, just wanted to have clarification and also think this deserves to be documented :-) I did a small PR to this end. |
Hi!
I guess this is probably a "feature" of
tree_at
, but I recently discovered that it does not run__check_init__
, which means it can bypass checks, leading to malformed data.I could not find any reference to this in the documentation, so (1) is it possible to still have
__check_init__
run after sometree_at
surgery, and (2) would it be possible to document that in the docstring of thetree_at
function?As always, thanks for your great tool :-)
The text was updated successfully, but these errors were encountered: