You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I add property to ALLOWED_DESCRIPTOR_ACCESS in jedi/evaluate/compiled/access.py then I get the result I expect, however it seems this breaks test_property_error_oldstyle.
If this is intended behavior Is there a way I can keep my cached property attributes that are set up like this without breaking tab completion in IPython, or does jedi want me to define attributes at runtime in the __init__ methods of my objects?
The text was updated successfully, but these errors were encountered:
Thanks for checking the other tickets as well, that helps :) I guess it's kind of the same.
As I noted before, the problem with this is that Jedi wants to avoid code execution.
Would it help you if Jedi understood this properly:
def ca(self) -> CompleteAttrs:
I know this is a bit cumbersome to write and think about, but it would at least help with autocompletion. Another pending thing would be a flag to enable code execution, but I feel like that's just a bad idea.
Following on from #1027, I don't seem to get "foo" or "bar" printed out:
If I add
property
toALLOWED_DESCRIPTOR_ACCESS
injedi/evaluate/compiled/access.py
then I get the result I expect, however it seems this breakstest_property_error_oldstyle
.If this is intended behavior Is there a way I can keep my cached property attributes that are set up like this without breaking tab completion in IPython, or does jedi want me to define attributes at runtime in the
__init__
methods of my objects?The text was updated successfully, but these errors were encountered: