mypy不会忽略使用语法错误的mpi4py模块
在mypy.ini中,有
[mypy-mpi4py]
ignore_missing_imports = True
这个mypy会遇到以下错误,
Success: no issues found in 4 source files
s\d\L\.env\lib\site-packages\mpi4py\MPI.pyi:948: error:
invalid syntax [syntax]
def __new__(cls, buf: Buffer, /) -> memory: ...
^
Found 1 error in 1 file (errors prevented further checking)
Success: no issues found in 3 source files
如何设置配置以忽略模块?
In mypy.ini there is
[mypy-mpi4py]
ignore_missing_imports = True
With this mypy is getting the following error
Success: no issues found in 4 source files
s\d\L\.env\lib\site-packages\mpi4py\MPI.pyi:948: error:
invalid syntax [syntax]
def __new__(cls, buf: Buffer, /) -> memory: ...
^
Found 1 error in 1 file (errors prevented further checking)
Success: no issues found in 3 source files
How can I setup the config to ignore the module ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论