mypy
a86be758 - Allow passing path/to/file.py:line instead of fully.qualified.name to dmypy suggest (#7483)

Commit
6 years ago
Allow passing path/to/file.py:line instead of fully.qualified.name to dmypy suggest (#7483) This should help with integrations with editors and IDEs, where getting line number of a function might be much easier than the full name. The implementation in mostly straightforward. I also did a little refactoring to reuse the existing logic efficiently. The only important difference that I introduced after few experiments is that I force reloading of the file before trying to search the function, since even the smallest edit can offset the line number and lead to some weird results.
Author
Parents
Loading