Our Python Language Server uses iterative full-program analysis to track the types of all the variables in your project while simulating execution of all the code in your project.
You can also use type hints, should work for most IDEs.
Recently, I've only used PyCharm, which is great, but isn't good with completions. I imagine an IDE that can fully analyze a program to determine object types in a duck-typed language must add quite a bit of computational overhead to development, especially for really complex projects. Just guessing though.
1
u/anders987 Jul 20 '18
Some IDEs still know what it is. Works pretty well.
You can read more about it here: https://blogs.msdn.microsoft.com/pythonengineering/2018/07/18/introducing-the-python-language-server/
You can also use type hints, should work for most IDEs.