I recently started using pydev. It seems healthy. One annoyance is that python is a dynamic language. Many autocomplete functions will work when pydev knows the type, so
f = open("foo.txt")
works fine, pydev can understand that f is a file and gives me great suggestions.
However, when dealing with parameters in my own functions, pydev obviously cannot determine the type information:
def bar(x,y):
So I obviously don't get any suggestions when I do x. .
It would be great to provide some kind of annotation that pydev can pick up to add suggestions as well as help me protect a bit better by warning me what I should. I know that I think someone is from a static language, but in most cases the type of argument should always be one and only one. Can I comment on my code to help pydev?
source share