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:
parent
97d0cff93b
commit
563e1e8294
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user