mercurial/subrepoutil.py
changeset 51289 7bd7fcc711f2
parent 51287 f15cb5111a1e
child 51511 08913487ae80
--- a/mercurial/subrepoutil.py	Wed Dec 20 11:23:09 2023 +0100
+++ b/mercurial/subrepoutil.py	Wed Dec 20 16:39:03 2023 +0100
@@ -74,7 +74,7 @@
     to tuple: (source from .hgsub, revision from .hgsubstate, kind
     (key in types dict))
     """
-    p = config.config()
+    p: config.config = config.config()
     repo = ctx.repo()
 
     def read(f, sections=None, remap=None):
@@ -143,7 +143,7 @@
         return src
 
     state = {}
-    for path, src in p.items(b''):  # type: bytes
+    for path, src in p.items(b''):
         kind = b'hg'
         if src.startswith(b'['):
             if b']' not in src: