changeset 51286 | 7bd7fcc711f2 |
parent 50926 | 18c8c18993f0 |
child 51859 | f4733654f144 |
--- a/mercurial/config.py Wed Dec 20 11:23:09 2023 +0100 +++ b/mercurial/config.py Wed Dec 20 16:39:03 2023 +0100 @@ -9,6 +9,11 @@ import errno import os +from typing import ( + List, + Tuple, +) + from .i18n import _ from . import ( encoding, @@ -107,7 +112,7 @@ def sections(self): return sorted(self._data.keys()) - def items(self, section): + def items(self, section: bytes) -> List[Tuple[bytes, bytes]]: items = self._data.get(section, {}).items() return [(k, v[0]) for (k, v) in items]