mercurial/sshpeer.py
changeset 52521 b52f2b365eff
parent 52520 1554bd50a1af
child 52640 24ee91ba9aa8
--- a/mercurial/sshpeer.py	Mon Dec 16 02:41:24 2024 -0500
+++ b/mercurial/sshpeer.py	Mon Dec 16 03:04:44 2024 -0500
@@ -8,6 +8,7 @@
 from __future__ import annotations
 
 import re
+import typing
 import uuid
 
 from .i18n import _
@@ -25,6 +26,11 @@
     urlutil,
 )
 
+if typing.TYPE_CHECKING:
+    from typing import (
+        Set,
+    )
+
 
 def _serverquote(s):
     """quote a string for the remote shell ... which we assume is sh"""
@@ -441,7 +447,7 @@
 
     # Begin of ipeercapabilities interface.
 
-    def capabilities(self):
+    def capabilities(self) -> Set[bytes]:
         return self._caps
 
     # End of ipeercapabilities interface.