diff options
Diffstat (limited to 'pre_commit/yaml.py')
-rw-r--r-- | pre_commit/yaml.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pre_commit/yaml.py b/pre_commit/yaml.py index bdf4ec4..a5bbbc9 100644 --- a/pre_commit/yaml.py +++ b/pre_commit/yaml.py @@ -6,6 +6,7 @@ from typing import Any import yaml Loader = getattr(yaml, 'CSafeLoader', yaml.SafeLoader) +yaml_compose = functools.partial(yaml.compose, Loader=Loader) yaml_load = functools.partial(yaml.load, Loader=Loader) Dumper = getattr(yaml, 'CSafeDumper', yaml.SafeDumper) |