diff options
author | Yobmod <yobmod@gmail.com> | 2021-07-24 22:19:57 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-07-24 22:19:57 +0100 |
commit | 77ee247a9018c6964642cf31a2690f3a4367649c (patch) | |
tree | edb394db87c766fdd1718338b350594408bdfd02 /git/config.py | |
parent | cb5688d65f4f7bc5735e5403e71094745e9a2a0b (diff) | |
download | gitpython-77ee247a9018c6964642cf31a2690f3a4367649c.tar.gz |
change ordereddict to typing.ordereddict
Diffstat (limited to 'git/config.py')
-rw-r--r-- | git/config.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git/config.py b/git/config.py index b0ac8ff5..17696fc5 100644 --- a/git/config.py +++ b/git/config.py @@ -7,6 +7,7 @@ configuration files""" import abc +from typing import OrderedDict from functools import wraps import inspect from io import BufferedReader, IOBase @@ -164,7 +165,7 @@ class SectionConstraint(Generic[T_ConfigParser]): self._config.__exit__(exception_type, exception_value, traceback) -class _OMD(Dict[str, List[_T]]): +class _OMD(OrderedDict[str, List[_T]]): """Ordered multi-dict.""" def __setitem__(self, key: str, value: _T) -> None: # type: ignore[override] |