You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually you can already do this in some sense. There is a hidden (or rather just not advertised as official) hot key Ctrl+Shift+Y that will launch a script at ./mypy/mypy-suggest (hardcoded) and pass it current file name and current line number and then reloads the doc. You can write a short script that essentially pipes dmypy suggest to pyannontate -w that will apply the suggestion in-place.
But yeah, making it on right click and more automated would be great.
Actually you can already do this in some sense. There is a hidden (or rather just not advertised as official) hot key Ctrl+Shift+Y that will launch a script at ./mypy/mypy-suggest (hardcoded) and pass it current file name and current line number and then reloads the doc.
I see. I tried this out and it failed with this error:
/bin/bash ./mypy/mypy-suggest: no such file or directory
I started pycharm from a shell where dmypy suggest -h works, and the mypy console in pycharm works correctly as well. Perhaps what's hardwired is not dmypy suggest?
On a related note, I've been playing around with dmypy suggest and it doesn't seem to take the current scope into consideration when generating annotations.
Would be great to make use of
dmypy suggest
to add annotations to existing code.The text was updated successfully, but these errors were encountered: