From 77ee247a9018c6964642cf31a2690f3a4367649c Mon Sep 17 00:00:00 2001 From: Yobmod Date: Sat, 24 Jul 2021 22:19:57 +0100 Subject: change ordereddict to typing.ordereddict --- git/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'git') 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] -- cgit v1.2.1