Pycharm type hinting error.

So I am doing some leetcode stuff and just copied a problem from leetcode into pycharm. Then

 

Seems 'str' and 'int' are good, but 'List'

The problem is pretty straight forward, is there a way to get rid of it?

 

Even if I change the 'List' into 'list', it still shows the following error:

 

Thank you

 

 

Please sign in to leave a comment.