Is it possible to highlight incorrect type references in docstring in PyCharm

PyCharm type hint is great. We widely use it in our projects. But from time to time, the type names in the docstrings methods are received with errors, and some errors that PyCharm warned about development time were missed.

Is it possible to get PyCharm to warn me about an incorrect reference to the parameter type in docstring? For example, if I make a typo like :type num: lomg instead of :type num: long , I want lomg be highlighted as a warning.

+5
source share
1 answer

Not sure if this is useful to you, but I was not able to add it as a comment due to my reputation points.

https://www.jetbrains.com/help/pycharm/2016.1/using-docstrings-to-specify-types.html

Also, if the class has a spelling or variable, etc. etc., I think it is highlighted? enter image description here

which version of pycharm are you using?

0
source

Source: https://habr.com/ru/post/1244329/


All Articles