In the following code:
from typing import List
def test() -> List[str]:
ret = ["Hi", "Hi"]
return ret
I'm receiving the following warning on the function definition line:
Expected type 'Integral", got 'str' instead
I can't see any reason why IntelliJ-IDEA's python module would interpret this simple function as returning an list of Integral rather than str. Is this a type checker bug?
Pycharm only have some preliminary support for type hints.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With