擅长:python、mysql、java
<p>您应该遵循以下intellij过程:</p>
<p><a href="https://www.jetbrains.com/help/pycharm/type-hinting-in-product.html" rel="nofollow noreferrer">https://www.jetbrains.com/help/pycharm/type-hinting-in-product.html</a></p>
<p>示例:</p>
<pre><code>class SomeClass(object):
__logger = None # type: Logger
def __init__(self):
self.__logger = logging.getLogger('root')
def some_method:
self.__logger.info('hint completion is working here :P')
</code></pre>