Skip to content
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

Add support for type inferences #968

Closed
spyder-bot opened this issue Feb 17, 2015 · 3 comments
Closed

Add support for type inferences #968

spyder-bot opened this issue Feb 17, 2015 · 3 comments

Comments

@spyder-bot
Copy link
Collaborator

From [email protected] on 2012-03-09T17:42:50Z

Spyder Version: 2.2.0dev
Python Version: 2.7.2
Qt Version: 4.7.4, PyQt4 (API v1) 4.8.6 on Windows

What steps will reproduce the problem?

Type hints are not available in the following code scenario:
def function( x, y ):
z = MyType()
z. # Yay, call tips!
x. # No call tips here!

A few different IDEs seem to be using a similar approach to providing type inferences like such:
def function( x, y ):
z = MyType()
z. # Yay, call tips!
assert isinstance( x, MyOtherType )
x. # Yay, now I have call tips!

I started a thread previously about this issue here: http://groups.google.com/group/spyderlib/browse_thread/thread/90d7785c775bf0aa I also briefly asked about the possibility of this on the rope groups here: http://groups.google.com/group/rope-dev/browse_thread/thread/2c214d37df2f7242# Not knowing much about rope this didn't mean too much to me.

This is a very compelling feature to have!

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=968

@ccordoba12
Copy link
Member

This is related to #2162

@blink1073 blink1073 removed their assignment Mar 11, 2017
@CAM-Gerlach CAM-Gerlach added this to the todo milestone Feb 18, 2018
@ccordoba12 ccordoba12 modified the milestones: todo, Not sorted Oct 11, 2018
@goanpeca
Copy link
Member

This should be solved on the PyLS/Kite side of things. No @ccordoba12 ?

@ccordoba12
Copy link
Member

Yeah, it's not something we can solve here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants