Search code examples
pythonpycharm

How to ignore Pycharm warning "TypedDict "" has no key '"?


I am getting the error erroneously in Pycharm:

TypedDict "RPCResponse" has no key 'elapsed_time' 

How can I ignore it?


Solution

  • Put

    # noinspection PyTypedDict
    

    above it.

    More info on the error: https://www.python.org/dev/peps/pep-0589/