Pycharm usage question: why md5 can't click update ()

md5update()
Mar.31,2021

When

hashlib.md5 () is not running, pycharm does not speculate about the type of return value.
can specify the variable type through the method in pep-0484 , and pycharm understands it.

import hashlib
import _hashlib

md5 = hashlib.md5()  -sharp type: _hashlib.HASH
def lower(name: str) -> str:
    return name.lower()
Menu