Mercurial > public > mercurial-scm > hg
diff mercurial/localrepo.py @ 52521:b52f2b365eff
typing: add type hints to `ipeercapabilities.capabilities()`
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 16 Dec 2024 03:04:44 -0500 |
parents | 1554bd50a1af |
children | 24ee91ba9aa8 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Mon Dec 16 02:41:24 2024 -0500 +++ b/mercurial/localrepo.py Mon Dec 16 03:04:44 2024 -0500 @@ -20,6 +20,7 @@ from concurrent import futures from typing import ( Optional, + Set, ) from .i18n import _ @@ -341,7 +342,7 @@ # Begin of ipeercapabilities interface. - def capabilities(self): + def capabilities(self) -> Set[bytes]: return self._caps # End of ipeercapabilities interface.