leinardi / mypy-pycharm

A plugin providing both real-time and on-demand scanning of Python files with Mypy from within PyCharm/IDEA.
Apache License 2.0
194 stars 31 forks source link

Provide more accurate type information from mypy #14

Open fakuivan opened 6 years ago

fakuivan commented 6 years ago

Is your feature request related to a problem? Please describe. PyCharm is one of the more mature python IDEs out there in terms of static type analysis, but sometimes it fails to infer types on some circumstances, generic descriptors for example, get resolved to their generic typevar T instead of the value it generalizes, amongst other things. MyPy will correctly handle more complex type inference cases (including generic descriptors), and given that at the end, MyPy will decide if your project passes the test suites or not (assuming you use it as a linter), it would make sense to gather type information from mypy instead of having a different logic doing the same job twice.

Describe the solution you'd like If possible, type information could be gathered from mypy cache files, and then presented to the user similar to how the Python Community Edition for idea does it.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had activity in the last 60 days.