VS代码中的Pylint抱怨问题代码“模块中没有名称”。虽然在执行脚本时可以正常运行

In VS code, I have this Python script:

from win32print import GetDefaultPrinter
print(GetDefaultPrinter())

pylint gives the following error in the problems section. However, the script works fine when executed.

{
    "owner": "python",
    "code": "no-name-in-module",
    "severity": 8,
    "message": "No name 'GetDefaultPrinter' in module 'win32print'",
    "source": "pylint"
}

将来如何忽略此错误和类似错误?