Replace EnvironT with MutableMapping[str, str]

This commit is contained in:
Anthony Sottile 2020-10-28 13:00:25 -07:00
parent a0c0870b87
commit 24dfeed89c
6 changed files with 17 additions and 19 deletions

View file

@ -16,7 +16,6 @@ from typing import IO
from typing import Optional
from typing import Tuple
from typing import Type
from typing import Union
import yaml
@ -29,8 +28,6 @@ else: # pragma: no cover (<PY37)
from importlib_resources import open_binary
from importlib_resources import read_text
EnvironT = Union[Dict[str, str], 'os._Environ']
Loader = getattr(yaml, 'CSafeLoader', yaml.SafeLoader)
yaml_load = functools.partial(yaml.load, Loader=Loader)
Dumper = getattr(yaml, 'CSafeDumper', yaml.SafeDumper)