mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Replace EnvironT with MutableMapping[str, str]
This commit is contained in:
parent
a0c0870b87
commit
24dfeed89c
6 changed files with 17 additions and 19 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue