Mercurial > public > mercurial-scm > hg-stable
diff mercurial/interfaces/repository.py @ 52548: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 | 4cb75772818d |
line wrap: on
line diff
--- a/mercurial/interfaces/repository.py Mon Dec 16 02:41:24 2024 -0500 +++ b/mercurial/interfaces/repository.py Mon Dec 16 03:04:44 2024 -0500 @@ -205,7 +205,7 @@ """ @abc.abstractmethod - def capabilities(self): + def capabilities(self) -> Set[bytes]: """Obtain capabilities of the peer. Returns a set of string capabilities.