obj.fishbreath (fake autocomple by pycharm)
Ok, so some other programmer made a typo:
There is no "mispeled" on this object. I came along later and edited code far away from the render call, and pycharm helpfully autocompleted the typo:
Why was this so?
Should I have expected something different?
Should I have expected the inspection to find the misspelled attribute?
render(test=obj.mispeled)
There is no "mispeled" on this object. I came along later and edited code far away from the render call, and pycharm helpfully autocompleted the typo:
def PyCharmTest(obj): isinstance(obj, Gallery) obj.mis<tab> ...lots of other code... render(test=obj.mispeled)
Why was this so?
Should I have expected something different?
Should I have expected the inspection to find the misspelled attribute?
Please sign in to leave a comment.
Should that not set the type firmly, at least for the rest of the method?
Note it would be helpful if CTRL-Q showed the inferred type pycharm is detecting!
Ctrl-Q does show the infered type when it is known.