6

python 3.5.1 で。および git を使用した mypy の現在のインストールでは、mypy はエラー 1 と 2 をフラグしますが、3 は報告しません

これはバグですか、それとも既知の問題ですか?

import typing

def test_ordered_dict(od: typing.Dict[str,int]) -> typing.Dict[str,int]:
    return 1   #type error 1

a = test_ordered_dict(1)   #type error 2

def test_me():
    a = test_ordered_dict(1)  # type error 3 is not reported
4

1 に答える 1