mypy: Ignore yaml.CSafe{Loader,Dumper}

See https://github.com/python/typeshed/blob/master/third_party/2and3/yaml/__init__.pyi#L9
This commit is contained in:
Florian Bruhin 2018-11-22 13:56:30 +01:00
parent 97d0cff93b
commit 563e1e8294

View File

@ -41,7 +41,8 @@ from PyQt5.QtWidgets import QApplication
import pkg_resources
import yaml
try:
from yaml import CSafeLoader as YamlLoader, CSafeDumper as YamlDumper
from yaml import (CSafeLoader as YamlLoader, # type: ignore
CSafeDumper as YamlDumper)
YAML_C_EXT = True
except ImportError: # pragma: no cover
from yaml import SafeLoader as YamlLoader, SafeDumper as YamlDumper