我怎样才能让 flake8 捕捉到这个错误?

How can I get flake8 to catch this error?

关于这个测试程序:

def func():
    return 42

func(1, 2, 3)

pylint -E 它说:

E1121: Too many positional arguments for function call (too-many-function-args)

但是 flake8 表示没有错误或警告。这是一个明显的错误,为什么 flake8 没有发现这个?我需要某些标志吗?

pylint 2.5.2

flake8 3.8.2 (pyflakes 2.2.0)

Python 3.8.1 Mac

PyFlakes(flake8 使用的)不进行那种类型的检查。

我向 PyFlakes 项目提交了 an issue 并收到了快速回复:"pyflakes works entirely statically and does not do any type analysis (it does not follow imports or function calls, etc.). this design is chosen to keep pyflakes fast and simple ... If you're looking for type analysis, you're best to use a type checker such as mypy or a tool like pylint."

我问的是参数的数量真的"type analysis"他们说"in python, the shape of a callable is its type (number of parameters, kwonly, posonly, defaulted, collecting, etc.)"