I am testing a Python 3.5 input module, noting a few of my functions.
I have a function that returns a list, although I get a warning in PyCharm.
The warning reads:
The class' ABCMeta 'does not define' __getitem__ ', therefore the operator []' cannot be used in its instances
from typing import List
def get_list() -> List[int]:
return [1, 2, 3]
Can anyone better interpret this message than I can?
thanks
source
share