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

Support for getting annotations from dmypy suggest #100

Open
chadrik opened this issue Apr 13, 2020 · 1 comment
Open

Support for getting annotations from dmypy suggest #100

chadrik opened this issue Apr 13, 2020 · 1 comment

Comments

@chadrik
Copy link
Contributor

chadrik commented Apr 13, 2020

I would love if pyannotate could fall back to dympy suggest if no type info is found for a function. I'd be happy to submit a PR for this (I've already created a prototype that works as expected).

If you'd rather do something more abstract/configurable, this could be implemented as a shell command to run as a fallback:

pyannotate --signature-cmd='dmypy suggest --json {filename}:{lineno}'  file1
@gvanrossum
Copy link
Contributor

Maybe @msullivan can answer this? IIRC we built a prototype of something that tied dmypy suggest and pyannotate together, using the output from dmypy suggest and piping it into the second half of pyannotate. But I don't recall the details and I don't remember if we ever released this in public or if it was just a Dropbox internal experiment. I do think you're close in suggesting that there's a connection!

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

No branches or pull requests

2 participants